@dbml/cli 5.2.0 → 5.3.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.
Files changed (47) hide show
  1. package/__tests__/db2dbml/mssql/dbml-error.log +39 -6
  2. package/__tests__/db2dbml/mysql/dbml-error.log +10 -1
  3. package/__tests__/db2dbml/oracle/dbml-error.log +91 -0
  4. package/__tests__/db2dbml/oracle/expect-out-files/schema.dbml +419 -0
  5. package/__tests__/db2dbml/oracle/options.json +8 -0
  6. package/__tests__/db2dbml/oracle/out-files/schema.dbml +419 -0
  7. package/__tests__/db2dbml/oracle/schema.sql +529 -0
  8. package/__tests__/db2dbml/oracle/stdout.txt +1 -0
  9. package/__tests__/db2dbml/postgres/dbml-error.log +25 -4
  10. package/__tests__/dbml2sql/filename --mysql --out-file/out-files/schema.sql +1 -1
  11. package/__tests__/dbml2sql/filename --oracle --out-file/out-files/schema.sql +1 -1
  12. package/__tests__/dbml2sql/filename --out-file/out-files/schema.sql +1 -1
  13. package/__tests__/dbml2sql/filename --postgres --out-file/out-files/schema.sql +1 -1
  14. package/__tests__/dbml2sql/filenames --mysql --out-file/out-files/schema.sql +1 -1
  15. package/__tests__/dbml2sql/filenames --oracle --out-file/out-files/schema.sql +1 -1
  16. package/__tests__/dbml2sql/filenames --out-file/out-files/schema.sql +1 -1
  17. package/__tests__/dbml2sql/filenames --postgres --out-file/out-files/schema.sql +1 -1
  18. package/__tests__/dbml2sql/multiple_schema_mssql/out-files/multiple_schema.out.sql +1 -1
  19. package/__tests__/dbml2sql/multiple_schema_mysql/out-files/multiple_schema.out.sql +1 -1
  20. package/__tests__/dbml2sql/multiple_schema_oracle/out-files/multiple_schema.out.sql +1 -1
  21. package/__tests__/dbml2sql/multiple_schema_pg/out-files/multiple_schema.out.sql +1 -1
  22. package/__tests__/dbml2sql/syntax-error/dbml-error.log +9 -3
  23. package/__tests__/sql2dbml/custom-error-alter-table-column-not-found --oracle/dbml-error.log +51 -0
  24. package/__tests__/sql2dbml/custom-error-alter-table-column-not-found --oracle/out-files/schema.dbml +0 -0
  25. package/__tests__/sql2dbml/custom-error-alter-table-table-not-found --oracle/dbml-error.log +51 -0
  26. package/__tests__/sql2dbml/custom-error-alter-table-table-not-found --oracle/out-files/schema.dbml +0 -0
  27. package/__tests__/sql2dbml/custom-error-column-comment-column-not-found --oracle/dbml-error.log +51 -0
  28. package/__tests__/sql2dbml/custom-error-column-comment-column-not-found --oracle/out-files/schema.dbml +0 -0
  29. package/__tests__/sql2dbml/custom-error-column-comment-table-not-found --oracle/dbml-error.log +51 -0
  30. package/__tests__/sql2dbml/custom-error-column-comment-table-not-found --oracle/out-files/schema.dbml +0 -0
  31. package/__tests__/sql2dbml/custom-error-create-index-table-not-found --oracle/dbml-error.log +51 -0
  32. package/__tests__/sql2dbml/custom-error-create-index-table-not-found --oracle/out-files/schema.dbml +0 -0
  33. package/__tests__/sql2dbml/custom-error-table-comment-table-not-found --oracle/dbml-error.log +27 -0
  34. package/__tests__/sql2dbml/custom-error-table-comment-table-not-found --oracle/out-files/schema.dbml +0 -0
  35. package/__tests__/sql2dbml/filename --oracle --out-file/dbml-error.log +0 -0
  36. package/__tests__/sql2dbml/filename --oracle --out-file/out-files/schema.dbml +83 -0
  37. package/__tests__/sql2dbml/syntax-error/dbml-error.log +45 -3
  38. package/__tests__/sql2dbml/syntax-error-duplicate-endpoints --mssql/dbml-error.log +45 -3
  39. package/__tests__/sql2dbml/syntax-error-duplicate-endpoints --mysql/dbml-error.log +45 -3
  40. package/lib/cli/index.js +1 -0
  41. package/lib/cli/utils.js +1 -1
  42. package/package.json +4 -4
  43. package/src/cli/index.js +1 -0
  44. package/src/cli/utils.js +1 -1
  45. package/__tests__/db2dbml/mssql/out-files/schema.dbml +0 -219
  46. package/__tests__/db2dbml/mysql/out-files/schema.dbml +0 -188
  47. package/__tests__/db2dbml/postgres/out-files/schema.dbml +0 -184
@@ -1,9 +1,15 @@
1
- 2025-11-17T09:11:54.568Z
1
+ 2025-11-06T03:11:43.673Z
2
2
  undefined
3
3
 
4
- 2025-11-17T09:51:53.546Z
4
+ 2025-11-06T03:15:42.915Z
5
5
  undefined
6
6
 
7
- 2025-11-17T14:37:45.981Z
7
+ 2025-11-18T08:12:28.350Z
8
+ undefined
9
+
10
+ 2025-11-18T09:03:45.137Z
11
+ undefined
12
+
13
+ 2025-11-27T14:14:30.123Z
8
14
  undefined
9
15
 
@@ -0,0 +1,51 @@
1
+ 2025-11-18T08:12:29.492Z
2
+ undefined
3
+
4
+ 2025-11-18T08:14:33.875Z
5
+ undefined
6
+
7
+ 2025-11-18T08:23:39.616Z
8
+ undefined
9
+
10
+ 2025-11-18T08:28:47.260Z
11
+ undefined
12
+
13
+ 2025-11-18T08:38:01.623Z
14
+ undefined
15
+
16
+ 2025-11-18T08:42:29.552Z
17
+ undefined
18
+
19
+ 2025-11-18T08:43:23.493Z
20
+ undefined
21
+
22
+ 2025-11-18T08:46:56.197Z
23
+ undefined
24
+
25
+ 2025-11-18T08:48:20.819Z
26
+ undefined
27
+
28
+ 2025-11-18T08:50:09.657Z
29
+ undefined
30
+
31
+ 2025-11-18T08:52:47.558Z
32
+ undefined
33
+
34
+ 2025-11-18T08:55:15.409Z
35
+ undefined
36
+
37
+ 2025-11-18T09:00:09.222Z
38
+ undefined
39
+
40
+ 2025-11-18T09:03:46.520Z
41
+ undefined
42
+
43
+ 2025-11-18T09:10:23.813Z
44
+ undefined
45
+
46
+ 2025-11-18T09:11:46.702Z
47
+ undefined
48
+
49
+ 2025-11-27T14:14:31.398Z
50
+ undefined
51
+
@@ -0,0 +1,51 @@
1
+ 2025-11-18T08:12:30.510Z
2
+ undefined
3
+
4
+ 2025-11-18T08:14:34.904Z
5
+ undefined
6
+
7
+ 2025-11-18T08:23:40.799Z
8
+ undefined
9
+
10
+ 2025-11-18T08:28:48.434Z
11
+ undefined
12
+
13
+ 2025-11-18T08:38:02.896Z
14
+ undefined
15
+
16
+ 2025-11-18T08:42:30.739Z
17
+ undefined
18
+
19
+ 2025-11-18T08:43:24.684Z
20
+ undefined
21
+
22
+ 2025-11-18T08:46:57.368Z
23
+ undefined
24
+
25
+ 2025-11-18T08:48:22.118Z
26
+ undefined
27
+
28
+ 2025-11-18T08:50:10.892Z
29
+ undefined
30
+
31
+ 2025-11-18T08:52:48.753Z
32
+ undefined
33
+
34
+ 2025-11-18T08:55:16.595Z
35
+ undefined
36
+
37
+ 2025-11-18T09:00:10.462Z
38
+ undefined
39
+
40
+ 2025-11-18T09:03:47.823Z
41
+ undefined
42
+
43
+ 2025-11-18T09:10:25.012Z
44
+ undefined
45
+
46
+ 2025-11-18T09:11:47.919Z
47
+ undefined
48
+
49
+ 2025-11-27T14:14:32.640Z
50
+ undefined
51
+
@@ -0,0 +1,51 @@
1
+ 2025-11-18T08:12:31.657Z
2
+ undefined
3
+
4
+ 2025-11-18T08:14:36.094Z
5
+ undefined
6
+
7
+ 2025-11-18T08:23:41.995Z
8
+ undefined
9
+
10
+ 2025-11-18T08:28:49.664Z
11
+ undefined
12
+
13
+ 2025-11-18T08:38:04.087Z
14
+ undefined
15
+
16
+ 2025-11-18T08:42:31.955Z
17
+ undefined
18
+
19
+ 2025-11-18T08:43:25.889Z
20
+ undefined
21
+
22
+ 2025-11-18T08:46:58.542Z
23
+ undefined
24
+
25
+ 2025-11-18T08:48:23.441Z
26
+ undefined
27
+
28
+ 2025-11-18T08:50:12.174Z
29
+ undefined
30
+
31
+ 2025-11-18T08:52:49.945Z
32
+ undefined
33
+
34
+ 2025-11-18T08:55:17.845Z
35
+ undefined
36
+
37
+ 2025-11-18T09:00:11.692Z
38
+ undefined
39
+
40
+ 2025-11-18T09:03:49.076Z
41
+ undefined
42
+
43
+ 2025-11-18T09:10:26.208Z
44
+ undefined
45
+
46
+ 2025-11-18T09:11:49.167Z
47
+ undefined
48
+
49
+ 2025-11-27T14:14:33.948Z
50
+ undefined
51
+
@@ -0,0 +1,51 @@
1
+ 2025-11-18T08:12:32.822Z
2
+ undefined
3
+
4
+ 2025-11-18T08:14:37.294Z
5
+ undefined
6
+
7
+ 2025-11-18T08:23:43.173Z
8
+ undefined
9
+
10
+ 2025-11-18T08:28:50.856Z
11
+ undefined
12
+
13
+ 2025-11-18T08:38:05.345Z
14
+ undefined
15
+
16
+ 2025-11-18T08:42:33.234Z
17
+ undefined
18
+
19
+ 2025-11-18T08:43:27.131Z
20
+ undefined
21
+
22
+ 2025-11-18T08:46:59.730Z
23
+ undefined
24
+
25
+ 2025-11-18T08:48:24.746Z
26
+ undefined
27
+
28
+ 2025-11-18T08:50:13.494Z
29
+ undefined
30
+
31
+ 2025-11-18T08:52:51.142Z
32
+ undefined
33
+
34
+ 2025-11-18T08:55:19.150Z
35
+ undefined
36
+
37
+ 2025-11-18T09:00:12.892Z
38
+ undefined
39
+
40
+ 2025-11-18T09:03:50.379Z
41
+ undefined
42
+
43
+ 2025-11-18T09:10:27.439Z
44
+ undefined
45
+
46
+ 2025-11-18T09:11:50.420Z
47
+ undefined
48
+
49
+ 2025-11-27T14:14:35.253Z
50
+ undefined
51
+
@@ -0,0 +1,51 @@
1
+ 2025-11-18T08:12:33.998Z
2
+ undefined
3
+
4
+ 2025-11-18T08:14:38.516Z
5
+ undefined
6
+
7
+ 2025-11-18T08:23:44.339Z
8
+ undefined
9
+
10
+ 2025-11-18T08:28:52.015Z
11
+ undefined
12
+
13
+ 2025-11-18T08:38:06.688Z
14
+ undefined
15
+
16
+ 2025-11-18T08:42:34.475Z
17
+ undefined
18
+
19
+ 2025-11-18T08:43:28.361Z
20
+ undefined
21
+
22
+ 2025-11-18T08:47:00.981Z
23
+ undefined
24
+
25
+ 2025-11-18T08:48:25.998Z
26
+ undefined
27
+
28
+ 2025-11-18T08:50:14.809Z
29
+ undefined
30
+
31
+ 2025-11-18T08:52:52.343Z
32
+ undefined
33
+
34
+ 2025-11-18T08:55:20.353Z
35
+ undefined
36
+
37
+ 2025-11-18T09:00:14.092Z
38
+ undefined
39
+
40
+ 2025-11-18T09:03:51.581Z
41
+ undefined
42
+
43
+ 2025-11-18T09:10:28.798Z
44
+ undefined
45
+
46
+ 2025-11-18T09:11:51.755Z
47
+ undefined
48
+
49
+ 2025-11-27T14:14:36.530Z
50
+ undefined
51
+
@@ -0,0 +1,27 @@
1
+ 2025-11-18T08:48:27.204Z
2
+ undefined
3
+
4
+ 2025-11-18T08:50:16.039Z
5
+ undefined
6
+
7
+ 2025-11-18T08:52:53.618Z
8
+ undefined
9
+
10
+ 2025-11-18T08:55:21.561Z
11
+ undefined
12
+
13
+ 2025-11-18T09:00:15.407Z
14
+ undefined
15
+
16
+ 2025-11-18T09:03:52.793Z
17
+ undefined
18
+
19
+ 2025-11-18T09:10:30.048Z
20
+ undefined
21
+
22
+ 2025-11-18T09:11:52.975Z
23
+ undefined
24
+
25
+ 2025-11-27T14:14:37.756Z
26
+ undefined
27
+
@@ -0,0 +1,83 @@
1
+ Table "departments" {
2
+ "dept_id" NUMBER(10) [pk]
3
+ "dept_name" VARCHAR2(100)
4
+ "location_id" NUMBER(10)
5
+ "manager_id" NUMBER(10)
6
+ }
7
+
8
+ Table "locations" {
9
+ "location_id" NUMBER(10) [pk]
10
+ "city" VARCHAR2(100)
11
+ "country_code" CHAR(2)
12
+ }
13
+
14
+ Table "countries" {
15
+ "country_code" CHAR(2) [pk]
16
+ "country_name" VARCHAR2(100)
17
+ }
18
+
19
+ Table "employees" {
20
+ "emp_id" NUMBER(10) [pk]
21
+ "emp_name" VARCHAR2(100)
22
+ "department_id" NUMBER(10)
23
+ "manager_id" NUMBER(10)
24
+ "hire_date" DATE
25
+ "location_id" NUMBER(10)
26
+ }
27
+
28
+ Table "projects" {
29
+ "project_id" NUMBER(10) [pk]
30
+ "project_name" VARCHAR2(200)
31
+ "dept_id" NUMBER(10)
32
+ "lead_emp_id" NUMBER(10)
33
+ "backup_emp_id" NUMBER(10)
34
+ }
35
+
36
+ Table "assignments" {
37
+ "assignment_id" NUMBER(10) [pk]
38
+ "emp_id" NUMBER(10)
39
+ "project_id" NUMBER(10)
40
+ "start_date" DATE
41
+ }
42
+
43
+ Table "project_tasks" {
44
+ "project_id" NUMBER(10)
45
+ "task_id" NUMBER(10)
46
+ "task_name" VARCHAR2(200)
47
+ "assigned_emp_id" NUMBER(10)
48
+
49
+ Indexes {
50
+ (project_id, task_id) [pk]
51
+ }
52
+ }
53
+
54
+ Table "task_hours" {
55
+ "hour_id" NUMBER(10) [pk]
56
+ "project_id" NUMBER(10)
57
+ "task_id" NUMBER(10)
58
+ "hours_worked" NUMBER(5,2)
59
+ }
60
+
61
+ Ref "fk_emp_dept":"departments"."dept_id" < "employees"."department_id"
62
+
63
+ Ref "fk_dept_location":"locations"."location_id" < "departments"."location_id"
64
+
65
+ Ref "fk_loc_country":"countries"."country_code" < "locations"."country_code"
66
+
67
+ Ref "fk_emp_manager":"employees"."emp_id" < "employees"."manager_id"
68
+
69
+ Ref "fk_dept_manager":"employees"."emp_id" < "departments"."manager_id"
70
+
71
+ Ref:"departments"."dept_id" < "projects"."dept_id"
72
+
73
+ Ref:"employees"."emp_id" < "assignments"."emp_id"
74
+
75
+ Ref:"projects"."project_id" < "assignments"."project_id"
76
+
77
+ Ref "fk_task_hours_project_task":"project_tasks".("project_id", "task_id") < "task_hours".("project_id", "task_id")
78
+
79
+ Ref "fk_proj_lead_emp":"employees"."emp_id" < "projects"."lead_emp_id"
80
+
81
+ Ref "fk_proj_backup_emp":"employees"."emp_id" < "projects"."backup_emp_id"
82
+
83
+ Ref "fk_task_assigned_emp":"employees"."emp_id" < "project_tasks"."assigned_emp_id"
@@ -1,9 +1,51 @@
1
- 2025-11-17T09:12:23.657Z
1
+ 2025-11-06T03:16:04.647Z
2
2
  undefined
3
3
 
4
- 2025-11-17T09:52:17.717Z
4
+ 2025-11-18T08:13:05.436Z
5
5
  undefined
6
6
 
7
- 2025-11-17T14:38:11.691Z
7
+ 2025-11-18T08:15:10.563Z
8
+ undefined
9
+
10
+ 2025-11-18T08:24:16.816Z
11
+ undefined
12
+
13
+ 2025-11-18T08:29:24.356Z
14
+ undefined
15
+
16
+ 2025-11-18T08:38:40.637Z
17
+ undefined
18
+
19
+ 2025-11-18T08:43:07.658Z
20
+ undefined
21
+
22
+ 2025-11-18T08:43:59.584Z
23
+ undefined
24
+
25
+ 2025-11-18T08:47:32.836Z
26
+ undefined
27
+
28
+ 2025-11-18T08:49:00.343Z
29
+ undefined
30
+
31
+ 2025-11-18T08:50:48.052Z
32
+ undefined
33
+
34
+ 2025-11-18T08:53:25.297Z
35
+ undefined
36
+
37
+ 2025-11-18T09:00:46.751Z
38
+ undefined
39
+
40
+ 2025-11-18T09:04:25.496Z
41
+ undefined
42
+
43
+ 2025-11-18T09:11:01.383Z
44
+ undefined
45
+
46
+ 2025-11-18T09:12:25.634Z
47
+ undefined
48
+
49
+ 2025-11-27T14:15:09.494Z
8
50
  undefined
9
51
 
@@ -1,9 +1,51 @@
1
- 2025-11-17T09:12:24.842Z
1
+ 2025-11-06T03:16:05.656Z
2
2
  undefined
3
3
 
4
- 2025-11-17T09:52:18.833Z
4
+ 2025-11-18T08:13:06.818Z
5
5
  undefined
6
6
 
7
- 2025-11-17T14:38:12.931Z
7
+ 2025-11-18T08:15:11.950Z
8
+ undefined
9
+
10
+ 2025-11-18T08:24:18.153Z
11
+ undefined
12
+
13
+ 2025-11-18T08:29:25.741Z
14
+ undefined
15
+
16
+ 2025-11-18T08:38:41.996Z
17
+ undefined
18
+
19
+ 2025-11-18T08:43:08.963Z
20
+ undefined
21
+
22
+ 2025-11-18T08:44:00.740Z
23
+ undefined
24
+
25
+ 2025-11-18T08:47:34.240Z
26
+ undefined
27
+
28
+ 2025-11-18T08:49:01.829Z
29
+ undefined
30
+
31
+ 2025-11-18T08:50:49.395Z
32
+ undefined
33
+
34
+ 2025-11-18T08:53:26.784Z
35
+ undefined
36
+
37
+ 2025-11-18T09:00:48.153Z
38
+ undefined
39
+
40
+ 2025-11-18T09:04:26.928Z
41
+ undefined
42
+
43
+ 2025-11-18T09:11:02.751Z
44
+ undefined
45
+
46
+ 2025-11-18T09:12:26.991Z
47
+ undefined
48
+
49
+ 2025-11-27T14:15:10.912Z
8
50
  undefined
9
51
 
@@ -1,9 +1,51 @@
1
- 2025-11-17T09:12:25.985Z
1
+ 2025-11-06T03:16:06.556Z
2
2
  undefined
3
3
 
4
- 2025-11-17T09:52:19.827Z
4
+ 2025-11-18T08:13:08.010Z
5
5
  undefined
6
6
 
7
- 2025-11-17T14:38:13.982Z
7
+ 2025-11-18T08:15:13.192Z
8
+ undefined
9
+
10
+ 2025-11-18T08:24:19.338Z
11
+ undefined
12
+
13
+ 2025-11-18T08:29:27.033Z
14
+ undefined
15
+
16
+ 2025-11-18T08:38:43.240Z
17
+ undefined
18
+
19
+ 2025-11-18T08:43:10.230Z
20
+ undefined
21
+
22
+ 2025-11-18T08:44:01.781Z
23
+ undefined
24
+
25
+ 2025-11-18T08:47:35.442Z
26
+ undefined
27
+
28
+ 2025-11-18T08:49:03.205Z
29
+ undefined
30
+
31
+ 2025-11-18T08:50:50.561Z
32
+ undefined
33
+
34
+ 2025-11-18T08:53:27.983Z
35
+ undefined
36
+
37
+ 2025-11-18T09:00:49.327Z
38
+ undefined
39
+
40
+ 2025-11-18T09:04:28.191Z
41
+ undefined
42
+
43
+ 2025-11-18T09:11:03.998Z
44
+ undefined
45
+
46
+ 2025-11-18T09:12:28.214Z
47
+ undefined
48
+
49
+ 2025-11-27T14:15:12.145Z
8
50
  undefined
9
51
 
package/lib/cli/index.js CHANGED
@@ -41,6 +41,7 @@ function db2dbml(args) {
41
41
  - postgres: 'postgresql://user:password@localhost:5432/dbname?schemas=schema1,schema2,schema3'
42
42
  - mysql: 'mysql://user:password@localhost:3306/dbname'
43
43
  - mssql: 'Server=localhost,1433;Database=master;User Id=sa;Password=your_password;Encrypt=true;TrustServerCertificate=true;Schemas=schema1,schema2,schema3;'
44
+ - oracle: 'username/password@[//]host[:port][/service_name]'
44
45
  - snowflake:
45
46
  - password-based authentication: 'SERVER=<account_identifier>.<region>;UID=<your_username>;PWD=<your_password>;DATABASE=<your_database>;WAREHOUSE=<your_warehouse>;ROLE=<your_role>;SCHEMAS=schema1,schema2,schema3;'
46
47
  - key pair authentication: '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,schema3;'
package/lib/cli/utils.js CHANGED
@@ -38,7 +38,7 @@ function getFormatOpt(opts) {
38
38
  return format;
39
39
  }
40
40
  function getConnectionOpt(args) {
41
- const supportedDatabases = ['postgres', 'mysql', 'mssql', 'snowflake', 'bigquery'];
41
+ const supportedDatabases = ['postgres', 'mysql', 'mssql', 'snowflake', 'bigquery', 'oracle'];
42
42
  const defaultConnectionOpt = {
43
43
  connection: args[0],
44
44
  databaseType: 'unknown'
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package",
3
3
  "name": "@dbml/cli",
4
- "version": "5.2.0",
4
+ "version": "5.3.0",
5
5
  "description": "",
6
6
  "main": "lib/index.js",
7
7
  "license": "Apache-2.0",
@@ -29,8 +29,8 @@
29
29
  ],
30
30
  "dependencies": {
31
31
  "@babel/cli": "^7.21.0",
32
- "@dbml/connector": "^5.2.0",
33
- "@dbml/core": "^5.2.0",
32
+ "@dbml/connector": "^5.3.0",
33
+ "@dbml/core": "^5.3.0",
34
34
  "bluebird": "^3.5.5",
35
35
  "chalk": "^2.4.2",
36
36
  "commander": "^2.20.0",
@@ -58,7 +58,7 @@
58
58
  "typescript": "^5.9.3",
59
59
  "typescript-eslint": "^8.46.3"
60
60
  },
61
- "gitHead": "20d556a6e6baad8a989c730e2afd3b65dedcea89",
61
+ "gitHead": "c8e67b627584b81d18c16a6f2983a92d75a326d9",
62
62
  "engines": {
63
63
  "node": ">=18"
64
64
  }
package/src/cli/index.js CHANGED
@@ -57,6 +57,7 @@ function db2dbml (args) {
57
57
  - postgres: 'postgresql://user:password@localhost:5432/dbname?schemas=schema1,schema2,schema3'
58
58
  - mysql: 'mysql://user:password@localhost:3306/dbname'
59
59
  - mssql: 'Server=localhost,1433;Database=master;User Id=sa;Password=your_password;Encrypt=true;TrustServerCertificate=true;Schemas=schema1,schema2,schema3;'
60
+ - oracle: 'username/password@[//]host[:port][/service_name]'
60
61
  - snowflake:
61
62
  - password-based authentication: 'SERVER=<account_identifier>.<region>;UID=<your_username>;PWD=<your_password>;DATABASE=<your_database>;WAREHOUSE=<your_warehouse>;ROLE=<your_role>;SCHEMAS=schema1,schema2,schema3;'
62
63
  - key pair authentication: '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,schema3;'
package/src/cli/utils.js CHANGED
@@ -34,7 +34,7 @@ function getFormatOpt (opts) {
34
34
  }
35
35
 
36
36
  function getConnectionOpt (args) {
37
- const supportedDatabases = ['postgres', 'mysql', 'mssql', 'snowflake', 'bigquery'];
37
+ const supportedDatabases = ['postgres', 'mysql', 'mssql', 'snowflake', 'bigquery', 'oracle'];
38
38
  const defaultConnectionOpt = {
39
39
  connection: args[0],
40
40
  databaseType: 'unknown',