mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-27 16:06:23 +00:00
readme
This commit is contained in:
15
README.md
15
README.md
@@ -21,6 +21,7 @@ DbGate is fast and efficient database administration tool. It is focused to work
|
|||||||
* Archives - backup your data in JSON files on local filesystem (or on DbGate server, when using web application)
|
* Archives - backup your data in JSON files on local filesystem (or on DbGate server, when using web application)
|
||||||
* Light and dark theme
|
* Light and dark theme
|
||||||
* For detailed info, how to run DbGate in docker container, visit [docker hub](https://hub.docker.com/r/dbgate/dbgate)
|
* For detailed info, how to run DbGate in docker container, visit [docker hub](https://hub.docker.com/r/dbgate/dbgate)
|
||||||
|
* Extensible plugin architecture
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
@@ -34,14 +35,23 @@ DbGate is fast and efficient database administration tool. It is focused to work
|
|||||||
* There is plan to incorporate SQLite to support work with local datasets
|
* 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
|
* 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](https://www.npmjs.com).
|
||||||
|
See all [existing DbGate plugins](https://www.npmjs.com/search?q=keywords:dbgateplugin).
|
||||||
|
Visit [dbgate generator homepage](https://github.com/dbshell/generator-dbgate) to see, how to create your own plugin.
|
||||||
|
|
||||||
|
Currently following extensions can be implemented using plugins:
|
||||||
|
- File format parsers/writers
|
||||||
|
- Database engine connectors
|
||||||
|
|
||||||
## How Can I Contribute?
|
## How Can I Contribute?
|
||||||
You're welcome to contribute to this project! Below are some ideas, how to contribute:
|
You're welcome to contribute to this project! Below are some ideas, how to contribute:
|
||||||
|
|
||||||
|
* Create plugins for new import/export formats
|
||||||
* Bug fixing
|
* Bug fixing
|
||||||
* Test Mac edition
|
* Test Mac edition
|
||||||
* Improve linux package build, add to APT repository
|
* Improve linux package build, add to APT repository
|
||||||
* Auto-upgrade of electron application
|
* Auto-upgrade of electron application
|
||||||
* Support for new import/export formats
|
|
||||||
|
|
||||||
Any help is appreciated!
|
Any help is appreciated!
|
||||||
|
|
||||||
@@ -99,9 +109,10 @@ Some dbgate packages can be used also without DbGate. You can find them on [NPM
|
|||||||
* [api](https://github.com/dbshell/dbgate/tree/master/packages/api) - backend, Javascript, ExpressJS [](https://www.npmjs.com/package/dbgate-api)
|
* [api](https://github.com/dbshell/dbgate/tree/master/packages/api) - backend, Javascript, ExpressJS [](https://www.npmjs.com/package/dbgate-api)
|
||||||
* [datalib](https://github.com/dbshell/dbgate/tree/master/packages/datalib) - TypeScript library for utility classes
|
* [datalib](https://github.com/dbshell/dbgate/tree/master/packages/datalib) - TypeScript library for utility classes
|
||||||
* [app](https://github.com/dbshell/dbgate/tree/master/app) - application (JavaScript)
|
* [app](https://github.com/dbshell/dbgate/tree/master/app) - application (JavaScript)
|
||||||
* [engines](https://github.com/dbshell/dbgate/tree/master/packages/engines) - drivers for database engine (mssql, mysql, postgres), analysing database structure, creating specific queries (JavaScript) [](https://www.npmjs.com/package/dbgate-engines)
|
structure, creating specific queries (JavaScript) [](https://www.npmjs.com/package/dbgate-engines)
|
||||||
* [filterparser](https://github.com/dbshell/dbgate/tree/master/packages/filterparser) - TypeScript library for parsing data filter expressions using parsimmon
|
* [filterparser](https://github.com/dbshell/dbgate/tree/master/packages/filterparser) - TypeScript library for parsing data filter expressions using parsimmon
|
||||||
* [sqltree](https://github.com/dbshell/dbgate/tree/master/packages/sqltree) - JSON representation of SQL query, functions converting to SQL (TypeScript) [](https://www.npmjs.com/package/dbgate-sqltree)
|
* [sqltree](https://github.com/dbshell/dbgate/tree/master/packages/sqltree) - JSON representation of SQL query, functions converting to SQL (TypeScript) [](https://www.npmjs.com/package/dbgate-sqltree)
|
||||||
* [types](https://github.com/dbshell/dbgate/tree/master/packages/types) - common TypeScript definitions [](https://www.npmjs.com/package/dbgate-types)
|
* [types](https://github.com/dbshell/dbgate/tree/master/packages/types) - common TypeScript definitions [](https://www.npmjs.com/package/dbgate-types)
|
||||||
* [web](https://github.com/dbshell/dbgate/tree/master/packages/web) - frontend in React (JavaScript)
|
* [web](https://github.com/dbshell/dbgate/tree/master/packages/web) - frontend in React (JavaScript)
|
||||||
* [tools](https://github.com/dbshell/dbgate/tree/master/packages/tools) - various tools [](https://www.npmjs.com/package/dbgate-tools)
|
* [tools](https://github.com/dbshell/dbgate/tree/master/packages/tools) - various tools [](https://www.npmjs.com/package/dbgate-tools)
|
||||||
|
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ This example exports table Customer info CSV file.
|
|||||||
```javascript
|
```javascript
|
||||||
const dbgateApi = require('dbgate-api');
|
const dbgateApi = require('dbgate-api');
|
||||||
const dbgatePluginMssql = require("dbgate-plugin-mssql");
|
const dbgatePluginMssql = require("dbgate-plugin-mssql");
|
||||||
|
const dbgatePluginCsv = require("dbgate-plugin-csv");
|
||||||
|
|
||||||
dbgateApi.registerPlugins(dbgatePluginMssql);
|
dbgateApi.registerPlugins(dbgatePluginMssql);
|
||||||
|
|
||||||
@@ -22,7 +23,7 @@ async function run() {
|
|||||||
schemaName: 'dbo',
|
schemaName: 'dbo',
|
||||||
pureName: 'Customer',
|
pureName: 'Customer',
|
||||||
});
|
});
|
||||||
const writer = await dbgateApi.csvWriter({ fileName: 'Customer.csv' });
|
const writer = await dbgatePluginCsv.shellApi.writer({ fileName: 'Customer.csv' });
|
||||||
await dbgateApi.copyStream(reader, writer);
|
await dbgateApi.copyStream(reader, writer);
|
||||||
|
|
||||||
console.log('Finished job script');
|
console.log('Finished job script');
|
||||||
|
|||||||
Reference in New Issue
Block a user