Giter Club home page Giter Club logo

inquery's Introduction

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].

inquery's People

Contributors

ciminelli avatar mpatin avatar akshayawate avatar handotdev avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.