A web app for writing and running SQL queries and visualizing the results. Supports Postgres, MySQL, SQL Server, Crate, Vertica, Presto, and SAP HANA. Other databases potentially supported via unix odbc support.
Heads up! New v3 branch has been started for new/breaking development
If you are working on a feature, or want to run the cutting edge, look to that branch. Expect breakage until things are finalized. See v3 branch for more details.
Installation, Usage, Screenshots
Visit project page at http://rickbergfalk.github.io/sqlpad/.
Using Docker Image
The docker image runs on port 3000 and uses
/var/lib/sqlpad for the embedded database directory.
Some configuration is exposed via environment variables. See configItems.js for details on environment variables considered (
See docker-validation folder for example docker-compose setup with SQL Server.
- Clone/download repo
- Install node 6 or later (nvm recommended)
- Install npm5 via
npm i npm -g
- Install npm modules by running
At this point you should have both backend and front-end development servers running.
Both front-end/back-end should auto-refresh/auto-reload on file change.
To build front-end production files run
npm run build.
A docker-compose file with is provided to provide an empty postgres database to test with. If you have docker installed you can do the following:
# Bring database containers up in backgrounddocker-compose up -d# To bring database downdocker-compose down# To remove dangling containers volumes etcdocker system prune
To connect to the database within SQLPad during development use the following settings:
driver: postgres host: localhost database: sqlpad username: sqlpad password: sqlpad