Go to file
2024-09-19 17:36:23 +02:00
.github fix 2024-09-16 10:25:52 +02:00
.vscode added restore-terminals config 2022-08-19 15:47:55 +02:00
app shorter update messages 2024-09-10 09:08:30 +02:00
docker reverted ubuntu upgrade 2024-05-13 14:47:32 +02:00
img screenshot 2022-09-05 20:53:46 +02:00
integration-tests schema test revert 2024-09-19 17:36:23 +02:00
misc new icon 2024-08-23 09:14:11 +02:00
packages postgre analyser supports compisite db names 2024-09-19 17:16:19 +02:00
plugins postgre analyser supports compisite db names 2024-09-19 17:16:19 +02:00
test #228 use nginx as proxy 2022-02-26 09:54:14 +01:00
.gitignore fix 2024-09-03 13:46:43 +02:00
.node-version chore(app): add node version 2022-11-03 09:13:54 +01:00
adjustPackageJson.js use oracledb purejs client 2024-05-31 10:17:48 +02:00
CHANGELOG.md changelog 2024-09-10 09:42:00 +02:00
docker-compose.yaml renamed dbgate-data to .dbgate #248 2022-05-17 21:05:48 +02:00
fillNativeModules.js oracle thick mode support #843 2024-07-31 11:20:31 +02:00
fillPackagedPlugins.js Revert "don't include redis in output bundle" 2022-03-24 18:52:34 +01:00
generatePadFile.js fix 2021-01-07 17:01:14 +01:00
LICENSE Update LICENSE 2024-06-25 21:23:50 +02:00
LICENSE-OLD old license 2024-06-25 21:28:12 +02:00
package.json v5.4.5-beta.7 2024-09-17 17:17:32 +02:00
prettier.config.js fix 2021-01-21 13:54:14 +01:00
printSecrets.js add gist upload secret 2024-05-24 14:18:57 +02:00
README.md changelog 2024-09-03 15:17:58 +02:00
resetPackagedPlugins.js [ackaged plugins for electron optimalization 2021-05-20 10:22:08 +02:00
screenshot800.png screenshot 800x600 2021-01-21 17:53:52 +01:00
screenshot.png updated readme 2021-12-10 20:42:35 +01:00
setCurrentVersion.js clickhouse plugin version 2024-09-13 13:36:37 +02:00
setUpdaterChannel.js builder - updater channel 2024-09-05 10:20:39 +02:00
start.bat Oracle driver first data 2022-10-11 17:04:38 +02:00
yarn.lock JSON import 2024-09-17 12:16:59 +02:00

NPM version GitHub All Releases dbgate dbgate styled with prettier

DbGate - (no)SQL database client

DbGate is cross-platform database manager. It's designed to be simple to use and effective, when working with more databases simultaneously. But there are also many advanced features like schema compare, visual query designer, chart visualisation or batch export and import.

DbGate is licensed under GPL-3.0 license and is free to use for any purpose.

Supported databases

  • MySQL
  • PostgreSQL
  • SQL Server
  • Oracle
  • MongoDB
  • Redis
  • SQLite
  • Amazon Redshift
  • CockroachDB
  • MariaDB
  • CosmosDB (Premium)

Features

  • Table data editing, with SQL change script preview
  • Edit table schema, indexes, primary and foreign keys
  • Compare and synchronize database structure
  • ER diagram
  • Light and dark theme
  • Master/detail views, foreign key lookups
  • Query designer
  • Form view for comfortable work with tables with many columns
  • JSON view on MongoDB collections
  • Explore tables, views, procedures, functions, MongoDB collections
  • SQL editor
    • execute SQL script
    • SQL code formatter
    • SQL code completion
    • Add SQL LEFT/INNER/RIGHT join utility
  • Mongo JavaScript editor, execute Mongo script (with NodeJs syntax)
  • Redis tree view, generate script from keys, run Redis script
  • Runs as application for Windows, Linux and Mac. Or in Docker container on server and in web Browser on client.
  • Import, export from/to CSV, Excel, JSON, NDJSON, XML
  • Free table editor - quick table data editing (cleanup data after import/before export, prototype tables etc.)
  • Archives - backup your data in NDJSON files on local filesystem (or on DbGate server, when using web application)
  • Charts, export chart to HTML page
  • For detailed info, how to run DbGate in docker container, visit docker hub
  • Extensible plugin architecture
  • Perspectives - nested table view over complex relational data, query designer on MongoDB databases

How to contribute

Any contributions are welcome. If you want to contribute without coding, consider following:

  • Tell your friends about DbGate or share on social networks - when more people will use DbGate, it will grow to be better
  • Write review on Slant.co or G2
  • Create issue, if you find problem in app, or you have idea to new feature. If issue already exists, you could leave comment on it, to prioritise most wanted issues
  • Create some tutorial video on youtube
  • Become a backer on GitHub sponsors or Open collective
  • Where a small coding is acceptable for you, you could create plugin. Plugins for new themes can be created actually without JS coding

Thank you!

Why is DbGate different

There are many database managers now, so why DbGate?

  • Works everywhere - Windows, Linux, Mac, Web browser (+mobile web is planned), without compromises in features
  • Based on standalone NPM packages, scripts can be run without DbGate (example - CSV export )
  • Many data browsing functions based using foreign keys - master/detail, expand columns, expandable form view

Design goals

  • Application simplicity - DbGate takes the best and only the best from old DbGate, DatAdmin, DbMouse and SQL Database Studio
  • Minimal dependencies
    • Frontend - Svelte
    • Backend - NodeJs, ExpressJs, database connection drivers
    • JavaScript + TypeScript
    • App - electron
  • Platform independent - runs as web application in single docker container on server, or as application using Electron platform on Linux, Windows and Mac

How to run development environment

Simple variant - runs WEB application:

yarn
yarn start

If you want more control, run WEB application:

yarn # install NPM packages

And than run following 3 commands concurrently in 3 terminals:

yarn start:api # run API on port 3000
yarn start:web # run web on port 5001
yarn lib # watch typescript libraries and plugins modifications

This runs API on port 3000 and web application on port 5001
Open http://localhost:5001 in your browser

If you want to run electron app:

yarn # install NPM packages
cd app
yarn # install NPM packages for electron

And than run following 3 commands concurrently in 3 terminals:

yarn start:web # run web on port 5001 (only static JS and HTML files)
yarn lib # watch typescript libraries and plugins modifications
yarn start:app # run electron app

How to run built electron app locally

This mode is very similar to production run of electron app. Electron doesn't use localhost:5001.

cd app
yarn
yarn
yarn build:app:local
yarn start:app:local

How to create plugin

Creating plugin is described in documentation

But it is very simple:

npm install -g yo # install yeoman
npm install -g generator-dbgate # install dbgate generator
cd dbgate-plugin-my-new-plugin # this directory is created by wizard, edit, what you need to change
yarn plugin # this compiles plugin and copies it into existing DbGate installation

After restarting DbGate, you could use your new plugin from DbGate.

Logging

DbGate uses pinomin logger. So by default, it produces JSON log messages into console and log files. If you want to see formatted logs, please use pino-pretty log formatter.