dbdocs 0.14.3 → 0.15.0
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.
- package/README.md +0 -0
- package/bin/run.cmd +0 -0
- package/oclif.manifest.json +1 -1
- package/package.json +6 -5
- package/src/commands/build.js +0 -0
- package/src/commands/db2dbml.js +7 -1
- package/src/commands/login.js +0 -0
- package/src/commands/logout.js +0 -0
- package/src/commands/ls.js +0 -0
- package/src/commands/password.js +0 -0
- package/src/commands/remove.js +0 -0
- package/src/commands/rename.js +0 -0
- package/src/commands/set.js +0 -0
- package/src/commands/token.js +0 -0
- package/src/commands/validate.js +0 -0
- package/src/hooks/init/checkUpdate.js +0 -0
- package/src/hooks/init/loadEnv.js +0 -0
- package/src/hooks/prerun/checkVersion.js +0 -0
- package/src/hooks/prerun/helper.js +0 -0
- package/src/index.js +0 -0
- package/src/user_data.json +0 -0
- package/src/utils/constants.js +0 -0
- package/src/utils/data.js +0 -0
- package/src/utils/error-formatter.js +0 -0
- package/src/utils/feedback.js +0 -0
- package/src/utils/helper.js +0 -0
- package/src/utils/org.js +0 -0
- package/src/utils/output-writer.js +0 -0
- package/src/utils/parse.js +0 -0
- package/src/utils/parserWorker.js +0 -0
- package/src/utils/verifyToken.js +0 -0
- package/src/validators/email.js +0 -0
- package/src/validators/otp.js +0 -0
- package/src/validators/projectName.js +0 -0
- package/src/validators/url.js +0 -0
- package/src/validators/userName.js +0 -0
- package/src/vars.js +0 -0
- package/src/vars.js.staging +2 -2
package/README.md
CHANGED
|
File without changes
|
package/bin/run.cmd
CHANGED
|
File without changes
|
package/oclif.manifest.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"0.
|
|
1
|
+
{"version":"0.15.0","commands":{"build":{"id":"build","description":"build docs","strict":true,"pluginName":"dbdocs","pluginAlias":"dbdocs","pluginType":"core","aliases":[],"flags":{"project":{"name":"project","type":"option","description":"<username>/<project_name> or <project_name>","multiple":false},"public":{"name":"public","type":"boolean","description":"anyone with the URL can access","helpGroup":"sharing","allowNo":false,"exclusive":["private","password"]},"private":{"name":"private","type":"boolean","description":"only invited people can access","helpGroup":"sharing","allowNo":false,"exclusive":["public","password"]},"password":{"name":"password","type":"option","char":"p","description":"anyone with the URL + password can access","helpGroup":"sharing","multiple":false,"exclusive":["public","private"]}},"args":[{"name":"filepath","description":"dbml file path"}]},"db2dbml":{"id":"db2dbml","description":"Generate DBML directly from a database","strict":true,"pluginName":"dbdocs","pluginAlias":"dbdocs","pluginType":"core","aliases":[],"examples":"Postgres:\n $ db2dbml postgres 'postgresql://user:password@localhost:5432/dbname?schemas=schema1,schema2'\nMySQL:\n $ db2dbml mysql 'mysql://user:password@localhost:3306/dbname'\nMSSQL:\n $ db2dbml mssql 'Server=localhost,1433;Database=master;User Id=sa;Password=your_password;Encrypt=true;TrustServerCertificate=true;Schemas=schema1,schema2;'\nSnowflake:\n Password-based authentication:\n $ db2dbml snowflake 'SERVER=<account_identifier>.<region>;UID=<your_username>;PWD=<your_password>;DATABASE=<your_database>;WAREHOUSE=<your_warehouse>;ROLE=<your_role>;SCHEMAS=schema1,schema2;'\n Key pair authentication:\n $ db2dbml snowflake 'SERVER=<account_identifier>.<region>;UID=<your_username>;AUTHENTICATOR=SNOWFLAKE_JWT;PRIVATE_KEY_PATH=<path_to_your_private_key.p8>;PASSPHRASE=<your_private_key_passphrase>;DATABASE=<your_database>;WAREHOUSE=<your_warehouse>;ROLE=<your_role>;SCHEMAS=schema1,schema2;'\n \n Note: If you did not use passphrase to encrypt your private key, you can leave the \"PASSPHRASE\" empty.\n \nBigQuery:\n $ db2dbml bigquery /path_to_json_credential.json\n \n Note: Your JSON credential file must contain:\n {\n \"project_id\": \"your-project-id\",\n \"client_email\": \"your-client-email\",\n \"private_key\": \"your-private-key\",\n \"datasets\": [\"dataset_1\", \"dataset_2\", ...]\n }\n If \"datasets\" key is not provided or is empty, it will fetch all datasets.","flags":{"outFile":{"name":"outFile","type":"option","char":"o","description":"output file path","helpValue":"/path-to-your-file","multiple":false}},"args":[{"name":"database-type","description":"your database type (postgres, mysql, mssql, snowflake, bigquery)","required":true},{"name":"connection-string","description":"your database connection string (See below examples for more details)","required":true}]},"login":{"id":"login","description":"login to dbdocs\nlogin with your dbdocs credentials\n","strict":true,"pluginName":"dbdocs","pluginAlias":"dbdocs","pluginType":"core","aliases":[],"flags":{},"args":[]},"logout":{"id":"logout","description":"logout\nclears local login credentials\n","strict":true,"pluginName":"dbdocs","pluginAlias":"dbdocs","pluginType":"core","aliases":[],"flags":{},"args":[]},"ls":{"id":"ls","description":"list projects","strict":true,"pluginName":"dbdocs","pluginAlias":"dbdocs","pluginType":"core","aliases":[],"flags":{},"args":[]},"password":{"id":"password","description":"set password for your project or remove password","strict":true,"pluginName":"dbdocs","pluginAlias":"dbdocs","pluginType":"core","aliases":[],"flags":{"project":{"name":"project","type":"option","char":"p","description":"project name","helpValue":"project name","multiple":false},"set":{"name":"set","type":"option","char":"s","description":"password for your project","helpValue":"password","multiple":false},"remove":{"name":"remove","type":"boolean","char":"r","description":"remove password from your project","allowNo":false}},"args":[]},"remove":{"id":"remove","description":"remove project","strict":true,"pluginName":"dbdocs","pluginAlias":"dbdocs","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"project_name","description":"name of the project which you want to remove"}]},"rename":{"id":"rename","description":"change your username","strict":true,"pluginName":"dbdocs","pluginAlias":"dbdocs","pluginType":"core","aliases":[],"flags":{},"args":[]},"set":{"id":"set","description":"Set the Web URL and API URL of dbdocs self-hosted server","strict":true,"pluginName":"dbdocs","pluginAlias":"dbdocs","pluginType":"core","aliases":[],"examples":"$ dbdocs set --webUrl http://webserver.dev --apiUrl http://apiserver.dev","flags":{"webUrl":{"name":"webUrl","type":"option","description":"Self-hosted web url","required":true,"multiple":false},"apiUrl":{"name":"apiUrl","type":"option","description":"Self-hosted api url","required":true,"multiple":false}},"args":[]},"token":{"id":"token","description":"generate or revoke your authentication token","strict":true,"pluginName":"dbdocs","pluginAlias":"dbdocs","pluginType":"core","aliases":[],"flags":{"generate":{"name":"generate","type":"boolean","char":"g","description":"generate authentication token","allowNo":false},"revoke":{"name":"revoke","type":"boolean","char":"r","description":"revoke authentication token","allowNo":false}},"args":[]},"validate":{"id":"validate","description":"validate docs content","strict":true,"pluginName":"dbdocs","pluginAlias":"dbdocs","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"filepath","description":"dbml file path"}]}}}
|
package/package.json
CHANGED
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dbdocs",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.15.0",
|
|
4
4
|
"author": "@holistics",
|
|
5
5
|
"bin": {
|
|
6
6
|
"dbdocs": "./bin/run"
|
|
7
7
|
},
|
|
8
8
|
"resolutions": {
|
|
9
|
-
"oclif/**/ansi-regex": "^3.0.1"
|
|
9
|
+
"oclif/**/ansi-regex": "^3.0.1",
|
|
10
|
+
"oclif/**/@octokit/rest": "21.1.1"
|
|
10
11
|
},
|
|
11
12
|
"dependencies": {
|
|
12
|
-
"@dbml/connector": "3.
|
|
13
|
-
"@dbml/core": "3.
|
|
13
|
+
"@dbml/connector": "3.11.0",
|
|
14
|
+
"@dbml/core": "3.13.0",
|
|
14
15
|
"@oclif/core": "1.12.1",
|
|
15
16
|
"@oclif/plugin-help": "5.1.12",
|
|
16
|
-
"axios": "^1.
|
|
17
|
+
"axios": "^1.8.2",
|
|
17
18
|
"chalk": "^3.0.0",
|
|
18
19
|
"dotenv": "^8.2.0",
|
|
19
20
|
"inquirer": "^7.0.1",
|
package/src/commands/build.js
CHANGED
|
File without changes
|
package/src/commands/db2dbml.js
CHANGED
|
@@ -77,7 +77,13 @@ Db2dbmlCommand.examples = [
|
|
|
77
77
|
'MSSQL:',
|
|
78
78
|
" $ db2dbml mssql 'Server=localhost,1433;Database=master;User Id=sa;Password=your_password;Encrypt=true;TrustServerCertificate=true;Schemas=schema1,schema2;'",
|
|
79
79
|
'Snowflake:',
|
|
80
|
-
|
|
80
|
+
' Password-based authentication:',
|
|
81
|
+
" $ db2dbml snowflake 'SERVER=<account_identifier>.<region>;UID=<your_username>;PWD=<your_password>;DATABASE=<your_database>;WAREHOUSE=<your_warehouse>;ROLE=<your_role>;SCHEMAS=schema1,schema2;'",
|
|
82
|
+
' Key pair authentication:',
|
|
83
|
+
" $ db2dbml snowflake 'SERVER=<account_identifier>.<region>;UID=<your_username>;AUTHENTICATOR=SNOWFLAKE_JWT;PRIVATE_KEY_PATH=<path_to_your_private_key.p8>;PASSPHRASE=<your_private_key_passphrase>;DATABASE=<your_database>;WAREHOUSE=<your_warehouse>;ROLE=<your_role>;SCHEMAS=schema1,schema2;'",
|
|
84
|
+
' ',
|
|
85
|
+
' Note: If you did not use passphrase to encrypt your private key, you can leave the "PASSPHRASE" empty.',
|
|
86
|
+
' ',
|
|
81
87
|
'BigQuery:',
|
|
82
88
|
' $ db2dbml bigquery /path_to_json_credential.json',
|
|
83
89
|
' ',
|
package/src/commands/login.js
CHANGED
|
File without changes
|
package/src/commands/logout.js
CHANGED
|
File without changes
|
package/src/commands/ls.js
CHANGED
|
File without changes
|
package/src/commands/password.js
CHANGED
|
File without changes
|
package/src/commands/remove.js
CHANGED
|
File without changes
|
package/src/commands/rename.js
CHANGED
|
File without changes
|
package/src/commands/set.js
CHANGED
|
File without changes
|
package/src/commands/token.js
CHANGED
|
File without changes
|
package/src/commands/validate.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/src/index.js
CHANGED
|
File without changes
|
package/src/user_data.json
CHANGED
|
File without changes
|
package/src/utils/constants.js
CHANGED
|
File without changes
|
package/src/utils/data.js
CHANGED
|
File without changes
|
|
File without changes
|
package/src/utils/feedback.js
CHANGED
|
File without changes
|
package/src/utils/helper.js
CHANGED
|
File without changes
|
package/src/utils/org.js
CHANGED
|
File without changes
|
|
File without changes
|
package/src/utils/parse.js
CHANGED
|
File without changes
|
|
File without changes
|
package/src/utils/verifyToken.js
CHANGED
|
File without changes
|
package/src/validators/email.js
CHANGED
|
File without changes
|
package/src/validators/otp.js
CHANGED
|
File without changes
|
|
File without changes
|
package/src/validators/url.js
CHANGED
|
File without changes
|
|
File without changes
|
package/src/vars.js
CHANGED
|
File without changes
|
package/src/vars.js.staging
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
// Copied from `vars.js` and replace the 5th and 9th lines with staging's endpoints
|
|
3
3
|
class Vars {
|
|
4
4
|
get host () {
|
|
5
|
-
return
|
|
5
|
+
return 'staging.dbdocs.io';
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
get apiHost () {
|
|
9
|
-
return
|
|
9
|
+
return 'staging-api.dbdocs.io';
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
get hostUrl () {
|