Skip to content
forked from sqlpad/sqlpad

A sql editor run in your own private cloud. Supports MySQL, Postgres, SQL Server and Vertica

License

Notifications You must be signed in to change notification settings

anti-work/sqlpad

 
 

Repository files navigation

SqlPad

A Node.js web app for writing and running SQL queries and visualizing the results. Supports Postgres, MySQL, SQL Server and Vertica.

SqlPad Query Editor

SqlPad is meant to be run on an internal network for a single team. All connections added to the app can be used by all individuals with access to the SqlPad server. All queries written can be run and edited by everyone on the server.

If you want to be bold and daring, you can expose your SqlPad instance to the outside world. Please make sure you fully understand the risks associated with doing this and use SSL.

Installation & Usage

First, install Node.js and then

npm install sqlpad -g

For more info visit the project page at http://rickbergfalk.github.io/sqlpad/.

Configuration

Change query result record limit

To change the maximum records returned by a SQL query, add a new item with key "queryResultMaxRows" and set the value to the max number of rows you would like returned. If the key is missing or set to a non-number, SqlPad will return a maximum of 50,000 rows.

Disable CSV download

To disable CSV downloads, visit the "Configuration" page and add a new item with key allowCsvDownload and value false. If the key is missing or set to any other value, CSV downloads will be enabled.

Development Setup

If you want to hack on SqlPad, here's a guide as to what my workflow has been like:

First clone or download this repo. Then install dependencies.

npm install

Install nodemon for automatic server restarts when developing

npm install nodemon -g

Install browserify to compile client-side scripts

npm install browserify -g

Optionally install watchify to automatically browserify your client-side scripts

npm install watchify -g

To start SqlPad on port 3000 with datafiles in ./db run

npm start

To bundle client-side scripts run

npm run bundle

or to auto-browserify as changes happen

npm run watchify

License

MIT

About

A sql editor run in your own private cloud. Supports MySQL, Postgres, SQL Server and Vertica

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 97.2%
  • CSS 2.8%