dbmodel 5.2.2-alpha.11 → 5.2.2-alpha.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +15 -1
  2. package/package.json +12 -11
package/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # dbmodel
2
- Deploy, load or build script from model of SQL database. Can be used as command-line tool or as javascript functions
2
+ Deploy, load or build script from model of SQL database. Can be used as command-line tool. Uses [DbGate](https://dbgate.org) tooling and plugins for connecting many different databases.
3
+
4
+ If you want to use this tool from JavaScript interface, please use [dbgate-api](https://www.npmjs.com/package/dbgate-api) package.
3
5
 
4
6
  Model is stored as a collection of files:
5
7
  * tables - stored as YAML files
@@ -52,6 +54,18 @@ dbmodel deploy -s localhost -u USERNAME -p PASSWORD -d DATABASE -e mssql@dbgate-
52
54
  dbmodel build -e mssql@dbgate-plugin-mssql PROJECT_FOLDER OUTPUT_FILE.sql
53
55
  ```
54
56
 
57
+ Parameter -e (or --engine) specifies database dialect and connection driver to be used
58
+ Supported databases:
59
+ - MySQL - `-e mysql@dbgate-plugin-mysql`
60
+ - MS SQL Server - `-e mssql@dbgate-plugin-mssql`
61
+ - PostgreSQL - `-e postgres@dbgate-plugin-postgres`
62
+ - SQLite - `-e sqlite@dbgate-plugin-sqlite`
63
+ - Oracle - `-e oracle@dbgate-plugin-oracle`
64
+ - MariaDB - `-e mariadb@dbgate-plugin-mysql`
65
+ - CockroachDB - `-e cockroach@dbgate-plugin-postgres`
66
+ - Amazon Redshift - `-e redshift@dbgate-plugin-postgres`
67
+
68
+
55
69
  ## Table yaml file documentation
56
70
 
57
71
  ```yaml
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dbmodel",
3
- "version": "5.2.2-alpha.11",
3
+ "version": "5.2.2-alpha.13",
4
4
  "homepage": "https://dbgate.org/",
5
5
  "repository": {
6
6
  "type": "git",
@@ -10,7 +10,7 @@
10
10
  "author": "Jan Prochazka",
11
11
  "license": "MIT",
12
12
  "bin": {
13
- "dbgate-serve": "./bin/dbmodel.js"
13
+ "dbmodel": "./bin/dbmodel.js"
14
14
  },
15
15
  "keywords": [
16
16
  "sql",
@@ -30,15 +30,16 @@
30
30
  ],
31
31
  "dependencies": {
32
32
  "commander": "^10.0.0",
33
- "dbgate-api": "^5.2.2-alpha.11",
34
- "dbgate-plugin-csv": "^5.2.2-alpha.11",
35
- "dbgate-plugin-excel": "^5.2.2-alpha.11",
36
- "dbgate-plugin-mongo": "^5.2.2-alpha.11",
37
- "dbgate-plugin-mssql": "^5.2.2-alpha.11",
38
- "dbgate-plugin-mysql": "^5.2.2-alpha.11",
39
- "dbgate-plugin-postgres": "^5.2.2-alpha.11",
40
- "dbgate-plugin-xml": "^5.2.2-alpha.11",
41
- "dbgate-web": "^5.2.2-alpha.11",
33
+ "dbgate-api": "^5.2.2-alpha.13",
34
+ "dbgate-plugin-csv": "^5.2.2-alpha.13",
35
+ "dbgate-plugin-excel": "^5.2.2-alpha.13",
36
+ "dbgate-plugin-mongo": "^5.2.2-alpha.13",
37
+ "dbgate-plugin-mssql": "^5.2.2-alpha.13",
38
+ "dbgate-plugin-mysql": "^5.2.2-alpha.13",
39
+ "dbgate-plugin-postgres": "^5.2.2-alpha.13",
40
+ "dbgate-plugin-xml": "^5.2.2-alpha.13",
41
+ "dbgate-plugin-oracle": "^5.2.2-alpha.13",
42
+ "dbgate-web": "^5.2.2-alpha.13",
42
43
  "dotenv": "^16.0.0",
43
44
  "pinomin": "^1.0.1"
44
45
  }