Skip to content
forked from dbgate/dbgate

Database manager for MySQL, PostgreSQL, SQL Server and MongoDB. Runs under Windows, Linux, Mac or as web application

License

Notifications You must be signed in to change notification settings

akbarsha03/dbgate

 
 

Repository files navigation

NPM version dbgate dbgate styled with prettier

DbGate - database administration tool

DbGate modern, fast and easy to use database manager

Supported databases:

  • MySQL
  • PostgreSQL
  • SQL Server
  • MongoDB

Screenshot

Features

  • Connect to Microsoft SQL Server, Postgre SQL, MySQL, MongoDB
  • Table data editing, with SQL change script preview
  • Master/detail views
  • 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, SQL join wizard
  • Mongo JavaScript editor, execute Mongo script (with NodeJs syntax)
  • 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
  • Free table editor - quick table data editing (cleanup data after import/before export, prototype tables etc.)
  • Archives - backup your data in JSON files on local filesystem (or on DbGate server, when using web application)
  • Light and dark theme
  • Charts
  • For detailed info, how to run DbGate in docker container, visit docker hub
  • Extensible plugin architecture

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 (on screenshot above)

Design goals

  • Application simplicity - DbGate takes the best and only the best from old DbGate, DatAdmin and DbMouse .
  • Minimal dependencies
    • Frontend - Svelte, socket.io
    • Backend - NodeJs, ExpressJs, socket.io, database connection drivers
    • JavaScript + TypeScript
    • App - electron
    • There is plan to incorporate SQLite to support work with local datasets
  • Platform independed - will run as web application in single docker container on server, or as application using Electron platform on Linux, Windows and Mac

Plugins

Plugins are standard NPM packages published on npmjs.com.
See all existing DbGate plugins.
Visit dbgate generator homepage to see, how to create your own plugin.

Currently following extensions can be implemented using plugins:

  • File format parsers/writers
  • Database engine connectors

Basic set of plugins is part of DbGate git repository and is installed with app. Additional plugins pust be downloaded from NPM (this task is handled by DbGate)

How to run development environment

yarn
yarn start

If you want to make modifications in libraries or plugins, run library compiler in watch mode in the second terminal:

yarn lib

Open https://localhost:5000 in your browser

You could run electron app (requires running localhost:5000):

cd app
yarn
yarn start

How to run built electron app locally

This mode is very similar to production run of electron app. Electron app forks process with API on dynamically allocated port, works with compiled javascript files and uses compiled version of plugins (doesn't use localhost:5000)

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

Packages

Some dbgate packages can be used also without DbGate. You can find them on NPM repository

  • api - backend, Javascript, ExpressJS NPM version
  • datalib - TypeScript library for utility classes NPM version
  • app - application (JavaScript) structure, creating specific queries (JavaScript)
  • filterparser - TypeScript library for parsing data filter expressions using parsimmon NPM version
  • sqltree - JSON representation of SQL query, functions converting to SQL (TypeScript) NPM version
  • types - common TypeScript definitions NPM version
  • web - frontend in Svelte (JavaScript) NPM version
  • tools - various tools NPM version

About

Database manager for MySQL, PostgreSQL, SQL Server and MongoDB. Runs under Windows, Linux, Mac or as web application

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Svelte 48.4%
  • TypeScript 27.3%
  • JavaScript 23.8%
  • CSS 0.4%
  • HTML 0.1%
  • Dockerfile 0.0%