Skip to content

WorldsOrg/inquery

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Inquery

Superpowers for your SQL database

Twitter GitHub Repo stars

Inquery is an open-source toolkit for SQL databases, starting with PostgreSQL

Alerts

Alerts can be used to send notifications when a database change is made (INSERT, UPDATE, DELETE).

  • Send notifications to Slack, email, or any other webhook
  • Filter-out changes made by application users to only see manual updates
  • Use template strings (column values, user, etc.) to see what was changed and by who

How It Works

  1. Data is modified in a Postgres table (INSERT, UPDATE, DELETE)
  2. A Postgres trigger notifies the Inquery web server via a websocket message
  3. Inquery formats, filters, and sends the data to configured webhook(s)

Inquery Create Slack Notification

Audit History (beta)

View all manual data updates that occurred in your Postgres database, even those that weren't initiated through the Inquery UI.

Query Preview (coming soon)

Before executing a query, check which tables and rows will be affected. View exactly which columns will be updated and their new value. Explore the visual query plan generated from EXPLAIN.

Approval Flow (coming soon)

Submit a query for approval by teammates instead of running them directly against the production database. Auto-approval rules can be configured based on the number of rows changed, the table being updated, or the user's role.

Inquery Approval Flow Mockup

Get Started

Run Inquery locally

You can run Inquery locally with Docker.

git clone --depth 1 https://github.com/inqueryio/inquery.git
cd inquery
docker-compose up -d

Then open http://localhost:3000 to access Inquery.

Note: When connecting your database, if your Postgres host is localhost, you must use host.docker.internal instead to access it when running with Docker.

Run Inquery on AWS (EC2)

Note: Make sure this instance is only accessible within your VPC.
Note: Make sure your local machine is able to connect to the server on port 3000 (the web server) and 3003 (the API server) over HTTP.
Note: These instructions are for Amazon Linux 2 AMI (HVM).

  1. To install Docker, run the following command in your SSH session on the instance terminal:
sudo yum update -y
sudo yum install -y docker
sudo service docker start
sudo usermod -a -G docker $USER
logout # Needed to close the SSH session so Docker does not have to be run as root
  1. To install docker-compose, run the following command in your ssh session on the instance terminal:
sudo curl -L "https://github.com/docker/compose/releases/download/v2.16.0/docker-compose-$(uname -s)-$(uname -m)"  -o /usr/local/bin/docker-compose
sudo mv /usr/local/bin/docker-compose /usr/bin/docker-compose
sudo chmod +x /usr/bin/docker-compose
docker-compose version
  1. Install and run Inquery
mkdir inquery && cd inquery
wget https://raw.githubusercontent.com/inqueryio/inquery/main/{.env,docker-compose.yml,.dockerignore,frontend.env}
docker-compose up -d

Run Inquery Cloud (Beta)

Sign up for Inquery Cloud early access and get a managed, cloud-hosted instance.

Get In Touch

Let us know your feedback or feature requests! You can submit a GitHub issue or contact us at [email protected].

About

Superpowers for PostgreSQL

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 39.0%
  • JavaScript 36.4%
  • SCSS 22.6%
  • HTML 1.4%
  • Dockerfile 0.6%