@dbml/cli 10.4.0-alpha.1 → 10.4.0-alpha.3

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 (67) hide show
  1. package/__tests__/db2dbml/mssql/dbml-error.log +44 -0
  2. package/__tests__/db2dbml/mysql/dbml-error.log +12 -0
  3. package/__tests__/db2dbml/oracle/dbml-error.log +42 -0
  4. package/__tests__/db2dbml/postgres/dbml-error.log +21 -0
  5. package/__tests__/dbml2sql/filename --mysql --out-file/out-files/schema.sql +1 -1
  6. package/__tests__/dbml2sql/filename --oracle --out-file/out-files/schema.sql +3 -3
  7. package/__tests__/dbml2sql/filename --out-file/out-files/schema.sql +1 -1
  8. package/__tests__/dbml2sql/filename --postgres --out-file/out-files/schema.sql +1 -1
  9. package/__tests__/dbml2sql/filenames --mysql --out-file/out-files/schema.sql +1 -1
  10. package/__tests__/dbml2sql/filenames --oracle --out-file/out-files/schema.sql +1 -1
  11. package/__tests__/dbml2sql/filenames --out-file/out-files/schema.sql +1 -1
  12. package/__tests__/dbml2sql/filenames --postgres --out-file/out-files/schema.sql +1 -1
  13. package/__tests__/dbml2sql/multifile --postgres stdout/in-files/main.dbml +2 -0
  14. package/__tests__/dbml2sql/multifile --postgres stdout/in-files/sub/orders.dbml +6 -0
  15. package/__tests__/dbml2sql/multifile --postgres stdout/in-files/types.dbml +4 -0
  16. package/__tests__/dbml2sql/multifile --postgres stdout/options.json +6 -0
  17. package/__tests__/dbml2sql/multifile --postgres stdout/stdout.txt +12 -0
  18. package/__tests__/dbml2sql/multifile error entry-syntax-error/dbml-error.log +20 -0
  19. package/__tests__/dbml2sql/multifile error entry-syntax-error/stdout.txt +1 -1
  20. package/__tests__/dbml2sql/multifile error import-not-found/dbml-error.log +1784 -0
  21. package/__tests__/dbml2sql/multifile error imported-syntax-error/dbml-error.log +20 -0
  22. package/__tests__/dbml2sql/multifile error imported-syntax-error/stdout.txt +1 -1
  23. package/__tests__/dbml2sql/multifile error transitive-use-not-visible/dbml-error.log +16 -0
  24. package/__tests__/dbml2sql/multiple_schema_mssql/out-files/multiple_schema.out.sql +9 -9
  25. package/__tests__/dbml2sql/multiple_schema_mysql/out-files/multiple_schema.out.sql +1 -1
  26. package/__tests__/dbml2sql/multiple_schema_oracle/out-files/multiple_schema.out.sql +1 -1
  27. package/__tests__/dbml2sql/multiple_schema_pg/out-files/multiple_schema.out.sql +1 -1
  28. package/__tests__/dbml2sql/syntax-error/dbml-error.log +20 -0
  29. package/__tests__/dbml2sql/syntax-error/stdout.txt +1 -1
  30. package/__tests__/sql2dbml/custom-error-alter-table-column-not-found --oracle/dbml-error.log +16 -0
  31. package/__tests__/sql2dbml/custom-error-alter-table-column-not-found --oracle/stdout.txt +1 -1
  32. package/__tests__/sql2dbml/custom-error-alter-table-table-not-found --oracle/dbml-error.log +16 -0
  33. package/__tests__/sql2dbml/custom-error-column-comment-column-not-found --oracle/dbml-error.log +16 -0
  34. package/__tests__/sql2dbml/custom-error-column-comment-table-not-found --oracle/dbml-error.log +16 -0
  35. package/__tests__/sql2dbml/custom-error-create-index-table-not-found --oracle/dbml-error.log +16 -0
  36. package/__tests__/sql2dbml/custom-error-table-comment-table-not-found --oracle/dbml-error.log +16 -0
  37. package/__tests__/sql2dbml/filename --mysql --out-file/out-files/schema.dbml +6 -6
  38. package/__tests__/sql2dbml/filename --oracle --out-file/out-files/schema.dbml +12 -12
  39. package/__tests__/sql2dbml/filename --out-file/out-files/schema.dbml +6 -6
  40. package/__tests__/sql2dbml/filename --postgres --out-file/out-files/schema.dbml +6 -6
  41. package/__tests__/sql2dbml/filenames --mysql --out-file/out-files/schema.dbml +15 -15
  42. package/__tests__/sql2dbml/filenames --out-file/out-files/schema.dbml +15 -15
  43. package/__tests__/sql2dbml/filenames --postgres --out-file/out-files/schema.dbml +15 -15
  44. package/__tests__/sql2dbml/multiple_schema_mssql/out-files/multiple_schema.out.dbml +9 -9
  45. package/__tests__/sql2dbml/multiple_schema_mysql/out-files/multiple_schema.out.dbml +8 -8
  46. package/__tests__/sql2dbml/multiple_schema_pg/out-files/multiple_schema.out.dbml +7 -7
  47. package/__tests__/sql2dbml/syntax-error/dbml-error.log +16 -0
  48. package/__tests__/sql2dbml/syntax-error-duplicate-endpoints --mssql/dbml-error.log +16 -0
  49. package/__tests__/sql2dbml/syntax-error-duplicate-endpoints --mssql/stdout.txt +1 -1
  50. package/__tests__/sql2dbml/syntax-error-duplicate-endpoints --mysql/dbml-error.log +16 -0
  51. package/__tests__/sql2dbml/syntax-error-duplicate-endpoints --mysql/stdout.txt +1 -1
  52. package/__tests__/windows/multifile-backslash/in-files/main.dbml +2 -0
  53. package/__tests__/windows/multifile-backslash/in-files/sub/orders.dbml +6 -0
  54. package/__tests__/windows/multifile-backslash/in-files/types.dbml +4 -0
  55. package/__tests__/windows/multifile-backslash/options.json +6 -0
  56. package/__tests__/windows/multifile-backslash/stdout.txt +12 -0
  57. package/__tests__/windows/multifile-relative/in-files/main.dbml +2 -0
  58. package/__tests__/windows/multifile-relative/in-files/sub/orders.dbml +6 -0
  59. package/__tests__/windows/multifile-relative/in-files/types.dbml +4 -0
  60. package/__tests__/windows/multifile-relative/options.json +6 -0
  61. package/__tests__/windows/multifile-relative/stdout.txt +12 -0
  62. package/__tests__/windows.test.ts +34 -0
  63. package/lib/index.js +14 -9
  64. package/package.json +6 -6
  65. package/src/NodeProjectLayout.ts +9 -1
  66. package/src/cli/import.ts +4 -5
  67. package/src/cli/utils.ts +4 -3
@@ -53,3 +53,47 @@ ConnectionError: Failed to connect to localhost:1433 - Could not connect (sequen
53
53
  at /Users/xuantho573/projects/holistics/dbml/node_modules/tedious/lib/connection.js:1144:14
54
54
  at process.processTicksAndRejections (node:internal/process/task_queues:85:11)
55
55
 
56
+ 2026-10-19T04:22:26.231Z
57
+ ConnectionError: Failed to connect to localhost:1433 - Could not connect (sequence)
58
+ at /Users/xuantho573/projects/holistics/dbml/node_modules/mssql/lib/tedious/connection-pool.js:85:17
59
+ at Connection.onConnect (/Users/xuantho573/projects/holistics/dbml/node_modules/tedious/lib/connection.js:849:9)
60
+ at Object.onceWrapper (node:events:633:26)
61
+ at Connection.emit (node:events:518:28)
62
+ at Connection.emit (/Users/xuantho573/projects/holistics/dbml/node_modules/tedious/lib/connection.js:970:18)
63
+ at Connection.socketError (/Users/xuantho573/projects/holistics/dbml/node_modules/tedious/lib/connection.js:1351:12)
64
+ at /Users/xuantho573/projects/holistics/dbml/node_modules/tedious/lib/connection.js:1144:14
65
+ at process.processTicksAndRejections (node:internal/process/task_queues:85:11)
66
+
67
+ 2026-10-19T04:25:35.396Z
68
+ ConnectionError: Failed to connect to localhost:1433 - Could not connect (sequence)
69
+ at /Users/xuantho573/projects/holistics/dbml/node_modules/mssql/lib/tedious/connection-pool.js:85:17
70
+ at Connection.onConnect (/Users/xuantho573/projects/holistics/dbml/node_modules/tedious/lib/connection.js:849:9)
71
+ at Object.onceWrapper (node:events:633:26)
72
+ at Connection.emit (node:events:518:28)
73
+ at Connection.emit (/Users/xuantho573/projects/holistics/dbml/node_modules/tedious/lib/connection.js:970:18)
74
+ at Connection.socketError (/Users/xuantho573/projects/holistics/dbml/node_modules/tedious/lib/connection.js:1351:12)
75
+ at /Users/xuantho573/projects/holistics/dbml/node_modules/tedious/lib/connection.js:1144:14
76
+ at process.processTicksAndRejections (node:internal/process/task_queues:85:11)
77
+
78
+ 2026-10-19T08:38:07.192Z
79
+ ConnectionError: Failed to connect to localhost:1433 - Could not connect (sequence)
80
+ at /Users/xuantho573/projects/holistics/dbml/node_modules/mssql/lib/tedious/connection-pool.js:85:17
81
+ at Connection.onConnect (/Users/xuantho573/projects/holistics/dbml/node_modules/tedious/lib/connection.js:849:9)
82
+ at Object.onceWrapper (node:events:633:26)
83
+ at Connection.emit (node:events:518:28)
84
+ at Connection.emit (/Users/xuantho573/projects/holistics/dbml/node_modules/tedious/lib/connection.js:970:18)
85
+ at Connection.socketError (/Users/xuantho573/projects/holistics/dbml/node_modules/tedious/lib/connection.js:1351:12)
86
+ at /Users/xuantho573/projects/holistics/dbml/node_modules/tedious/lib/connection.js:1144:14
87
+ at process.processTicksAndRejections (node:internal/process/task_queues:85:11)
88
+
89
+ 2026-10-20T03:59:44.997Z
90
+ ConnectionError: Failed to connect to localhost:1433 - Could not connect (sequence)
91
+ at /Users/xuantho573/projects/holistics/dbml/node_modules/mssql/lib/tedious/connection-pool.js:85:17
92
+ at Connection.onConnect (/Users/xuantho573/projects/holistics/dbml/node_modules/tedious/lib/connection.js:849:9)
93
+ at Object.onceWrapper (node:events:633:26)
94
+ at Connection.emit (node:events:518:28)
95
+ at Connection.emit (/Users/xuantho573/projects/holistics/dbml/node_modules/tedious/lib/connection.js:970:18)
96
+ at Connection.socketError (/Users/xuantho573/projects/holistics/dbml/node_modules/tedious/lib/connection.js:1351:12)
97
+ at /Users/xuantho573/projects/holistics/dbml/node_modules/tedious/lib/connection.js:1144:14
98
+ at process.processTicksAndRejections (node:internal/process/task_queues:85:11)
99
+
@@ -13,3 +13,15 @@ Error
13
13
  2026-07-22T11:10:22.788Z
14
14
  Error
15
15
 
16
+ 2026-10-19T04:22:26.814Z
17
+ Error
18
+
19
+ 2026-10-19T04:25:35.977Z
20
+ Error
21
+
22
+ 2026-10-19T08:38:07.778Z
23
+ Error
24
+
25
+ 2026-10-20T03:59:45.648Z
26
+ Error
27
+
@@ -68,3 +68,45 @@ connect ECONNREFUSED 127.0.0.1:1521
68
68
  at async ThinConnectionImpl.connect (/Users/xuantho573/projects/holistics/dbml/node_modules/oracledb/lib/thin/connection.js:859:5)
69
69
  at async getConnection (/Users/xuantho573/projects/holistics/dbml/node_modules/oracledb/lib/oracledb.js:791:3)
70
70
 
71
+ 2026-10-19T04:22:27.431Z
72
+ Error: NJS-503: connection to host ::1 port 1521 could not be established. (CONNECTION_ID=cpApL75gmF7UuqDr+ju/MQ==)
73
+ connect ECONNREFUSED ::1:1521
74
+ at Object.throwErr (/Users/xuantho573/projects/holistics/dbml/node_modules/oracledb/lib/errors.js:776:10)
75
+ at NTTCP.ntConnect (/Users/xuantho573/projects/holistics/dbml/node_modules/oracledb/lib/thin/sqlnet/ntTcp.js:206:16)
76
+ at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
77
+ at async NTTCP.connect (/Users/xuantho573/projects/holistics/dbml/node_modules/oracledb/lib/thin/sqlnet/ntTcp.js:222:7)
78
+ at async NetworkSession.transportConnect (/Users/xuantho573/projects/holistics/dbml/node_modules/oracledb/lib/thin/sqlnet/networkSession.js:182:5)
79
+ at async NetworkSession.connect2 (/Users/xuantho573/projects/holistics/dbml/node_modules/oracledb/lib/thin/sqlnet/networkSession.js:222:7)
80
+ at async NetworkSession.connect1 (/Users/xuantho573/projects/holistics/dbml/node_modules/oracledb/lib/thin/sqlnet/networkSession.js:336:23)
81
+ at async NetworkSession.connect (/Users/xuantho573/projects/holistics/dbml/node_modules/oracledb/lib/thin/sqlnet/networkSession.js:623:5)
82
+ at async ThinConnectionImpl.connect (/Users/xuantho573/projects/holistics/dbml/node_modules/oracledb/lib/thin/connection.js:859:5)
83
+ at async getConnection (/Users/xuantho573/projects/holistics/dbml/node_modules/oracledb/lib/oracledb.js:791:3)
84
+
85
+ 2026-10-19T08:38:08.376Z
86
+ Error: NJS-503: connection to host ::1 port 1521 could not be established. (CONNECTION_ID=EW5syJ8RAaK6IywNgitLwg==)
87
+ connect ECONNREFUSED ::1:1521
88
+ at Object.throwErr (/Users/xuantho573/projects/holistics/dbml/node_modules/oracledb/lib/errors.js:776:10)
89
+ at NTTCP.ntConnect (/Users/xuantho573/projects/holistics/dbml/node_modules/oracledb/lib/thin/sqlnet/ntTcp.js:206:16)
90
+ at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
91
+ at async NTTCP.connect (/Users/xuantho573/projects/holistics/dbml/node_modules/oracledb/lib/thin/sqlnet/ntTcp.js:222:7)
92
+ at async NetworkSession.transportConnect (/Users/xuantho573/projects/holistics/dbml/node_modules/oracledb/lib/thin/sqlnet/networkSession.js:182:5)
93
+ at async NetworkSession.connect2 (/Users/xuantho573/projects/holistics/dbml/node_modules/oracledb/lib/thin/sqlnet/networkSession.js:222:7)
94
+ at async NetworkSession.connect1 (/Users/xuantho573/projects/holistics/dbml/node_modules/oracledb/lib/thin/sqlnet/networkSession.js:336:23)
95
+ at async NetworkSession.connect (/Users/xuantho573/projects/holistics/dbml/node_modules/oracledb/lib/thin/sqlnet/networkSession.js:623:5)
96
+ at async ThinConnectionImpl.connect (/Users/xuantho573/projects/holistics/dbml/node_modules/oracledb/lib/thin/connection.js:859:5)
97
+ at async getConnection (/Users/xuantho573/projects/holistics/dbml/node_modules/oracledb/lib/oracledb.js:791:3)
98
+
99
+ 2026-10-20T03:59:46.339Z
100
+ Error: NJS-503: connection to host ::1 port 1521 could not be established. (CONNECTION_ID=yUzioKroKb4gPHLVp1AJqA==)
101
+ connect ECONNREFUSED ::1:1521
102
+ at Object.throwErr (/Users/xuantho573/projects/holistics/dbml/node_modules/oracledb/lib/errors.js:776:10)
103
+ at NTTCP.ntConnect (/Users/xuantho573/projects/holistics/dbml/node_modules/oracledb/lib/thin/sqlnet/ntTcp.js:206:16)
104
+ at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
105
+ at async NTTCP.connect (/Users/xuantho573/projects/holistics/dbml/node_modules/oracledb/lib/thin/sqlnet/ntTcp.js:222:7)
106
+ at async NetworkSession.transportConnect (/Users/xuantho573/projects/holistics/dbml/node_modules/oracledb/lib/thin/sqlnet/networkSession.js:182:5)
107
+ at async NetworkSession.connect2 (/Users/xuantho573/projects/holistics/dbml/node_modules/oracledb/lib/thin/sqlnet/networkSession.js:222:7)
108
+ at async NetworkSession.connect1 (/Users/xuantho573/projects/holistics/dbml/node_modules/oracledb/lib/thin/sqlnet/networkSession.js:336:23)
109
+ at async NetworkSession.connect (/Users/xuantho573/projects/holistics/dbml/node_modules/oracledb/lib/thin/sqlnet/networkSession.js:623:5)
110
+ at async ThinConnectionImpl.connect (/Users/xuantho573/projects/holistics/dbml/node_modules/oracledb/lib/thin/connection.js:859:5)
111
+ at async getConnection (/Users/xuantho573/projects/holistics/dbml/node_modules/oracledb/lib/oracledb.js:791:3)
112
+
@@ -33,3 +33,24 @@ Error: PostgreSQL connection error: error: password authentication failed for us
33
33
  at async di (/Users/xuantho573/projects/holistics/dbml/packages/dbml-connector/dist/index.js:3701:279)
34
34
  at async connectionHandler (/Users/xuantho573/projects/holistics/dbml/packages/dbml-cli/lib/index.js:2630:22)
35
35
 
36
+ 2026-10-19T04:22:28.110Z
37
+ Error: PostgreSQL connection error: error: password authentication failed for user "dbml"
38
+ at ni (/Users/xuantho573/projects/holistics/dbml/packages/dbml-connector/dist/index.js:3484:2977)
39
+ at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
40
+ at async di (/Users/xuantho573/projects/holistics/dbml/packages/dbml-connector/dist/index.js:3701:279)
41
+ at async connectionHandler (/Users/xuantho573/projects/holistics/dbml/packages/dbml-cli/lib/index.js:2631:22)
42
+
43
+ 2026-10-19T08:38:09.036Z
44
+ Error: PostgreSQL connection error: error: password authentication failed for user "dbml"
45
+ at ni (/Users/xuantho573/projects/holistics/dbml/packages/dbml-connector/dist/index.js:3484:2977)
46
+ at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
47
+ at async di (/Users/xuantho573/projects/holistics/dbml/packages/dbml-connector/dist/index.js:3701:279)
48
+ at async connectionHandler (/Users/xuantho573/projects/holistics/dbml/packages/dbml-cli/lib/index.js:2631:22)
49
+
50
+ 2026-10-20T03:59:47.062Z
51
+ Error: PostgreSQL connection error: error: password authentication failed for user "dbml"
52
+ at ni (/Users/xuantho573/projects/holistics/dbml/packages/dbml-connector/dist/index.js:3484:2977)
53
+ at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
54
+ at async di (/Users/xuantho573/projects/holistics/dbml/packages/dbml-connector/dist/index.js:3701:279)
55
+ at async connectionHandler (/Users/xuantho573/projects/holistics/dbml/packages/dbml-cli/lib/index.js:2631:22)
56
+
@@ -1,6 +1,6 @@
1
1
  -- SQL dump generated using DBML (dbml.dbdiagram.io)
2
2
  -- Database: MySQL
3
- -- Generated at: 2026-07-22T11:09:39.163Z
3
+ -- Generated at: 2026-10-20T03:58:42.798Z
4
4
 
5
5
  CREATE TABLE `orders` (
6
6
  `id` int PRIMARY KEY AUTO_INCREMENT,
@@ -1,11 +1,11 @@
1
1
  -- SQL dump generated using DBML (dbml.dbdiagram.io)
2
2
  -- Database: Oracle
3
- -- Generated at: 2026-07-22T11:09:40.371Z
3
+ -- Generated at: 2026-10-20T03:58:52.786Z
4
4
 
5
5
  CREATE TABLE "orders" (
6
6
  "id" int GENERATED AS IDENTITY PRIMARY KEY,
7
7
  "user_id" int UNIQUE NOT NULL,
8
- "status" nvarchar2(255) NOT NULL CHECK ("status" IN ('created', 'running', 'done', 'failure'))
8
+ "status" nvarchar2(255) CHECK ("status" IN ('created', 'running', 'done', 'failure'))
9
9
  );
10
10
 
11
11
  CREATE TABLE "order_items" (
@@ -19,7 +19,7 @@ CREATE TABLE "products" (
19
19
  "name" nvarchar2(255),
20
20
  "merchant_id" int NOT NULL,
21
21
  "price" int,
22
- "status" nvarchar2(255) NOT NULL CHECK ("status" IN ('Out of Stock', 'In Stock')),
22
+ "status" nvarchar2(255) CHECK ("status" IN ('Out of Stock', 'In Stock')),
23
23
  "created_at" timestamp DEFAULT current_timestamp
24
24
  );
25
25
 
@@ -1,6 +1,6 @@
1
1
  -- SQL dump generated using DBML (dbml.dbdiagram.io)
2
2
  -- Database: PostgreSQL
3
- -- Generated at: 2026-07-22T11:09:41.573Z
3
+ -- Generated at: 2026-10-20T03:58:54.148Z
4
4
 
5
5
  CREATE TYPE "orders_status" AS ENUM (
6
6
  'created',
@@ -1,6 +1,6 @@
1
1
  -- SQL dump generated using DBML (dbml.dbdiagram.io)
2
2
  -- Database: PostgreSQL
3
- -- Generated at: 2026-07-22T11:09:42.173Z
3
+ -- Generated at: 2026-10-20T03:58:54.806Z
4
4
 
5
5
  CREATE TYPE "orders_status" AS ENUM (
6
6
  'created',
@@ -1,6 +1,6 @@
1
1
  -- SQL dump generated using DBML (dbml.dbdiagram.io)
2
2
  -- Database: MySQL
3
- -- Generated at: 2026-07-22T11:09:44.040Z
3
+ -- Generated at: 2026-10-20T03:58:56.749Z
4
4
 
5
5
  CREATE TABLE `staff` (
6
6
  `id` int PRIMARY KEY,
@@ -1,6 +1,6 @@
1
1
  -- SQL dump generated using DBML (dbml.dbdiagram.io)
2
2
  -- Database: Oracle
3
- -- Generated at: 2026-07-22T11:09:45.278Z
3
+ -- Generated at: 2026-10-20T03:58:58.172Z
4
4
 
5
5
  CREATE TABLE "staff" (
6
6
  "id" int PRIMARY KEY,
@@ -1,6 +1,6 @@
1
1
  -- SQL dump generated using DBML (dbml.dbdiagram.io)
2
2
  -- Database: PostgreSQL
3
- -- Generated at: 2026-07-22T11:09:46.511Z
3
+ -- Generated at: 2026-10-20T03:58:59.710Z
4
4
 
5
5
  CREATE TABLE "staff" (
6
6
  "id" int PRIMARY KEY,
@@ -1,6 +1,6 @@
1
1
  -- SQL dump generated using DBML (dbml.dbdiagram.io)
2
2
  -- Database: PostgreSQL
3
- -- Generated at: 2026-07-22T11:09:47.142Z
3
+ -- Generated at: 2026-10-20T03:59:00.454Z
4
4
 
5
5
  CREATE TABLE "staff" (
6
6
  "id" int PRIMARY KEY,
@@ -0,0 +1,2 @@
1
+ use { table users } from './types'
2
+ use { table orders } from './sub/orders'
@@ -0,0 +1,6 @@
1
+ use { table users } from '../types'
2
+
3
+ Table orders {
4
+ id int [pk]
5
+ user_id int [ref: > users.id]
6
+ }
@@ -0,0 +1,4 @@
1
+ Table users {
2
+ id int [pk]
3
+ name varchar
4
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "args": [
3
+ "./in-files/main.dbml",
4
+ "--postgres"
5
+ ]
6
+ }
@@ -0,0 +1,12 @@
1
+ CREATE TABLE "users" (
2
+ "id" int PRIMARY KEY,
3
+ "name" varchar
4
+ );
5
+
6
+ CREATE TABLE "orders" (
7
+ "id" int PRIMARY KEY,
8
+ "user_id" int
9
+ );
10
+
11
+ ALTER TABLE "orders" ADD FOREIGN KEY ("user_id") REFERENCES "users" ("id") DEFERRABLE INITIALLY IMMEDIATE;
12
+
@@ -23,3 +23,23 @@
23
23
  ./in-files/main.dbml(5,15): Expect an identifier
24
24
  ./in-files/main.dbml(5,21): Custom setting 'pk user_id int' must be a string or a color literal
25
25
 
26
+ 2026-10-19T04:21:55.099Z
27
+
28
+ ./in-files/main.dbml(5,15): Expect an identifier
29
+ ./in-files/main.dbml(5,21): Custom setting 'pk user_id int' must be a string or a color literal
30
+
31
+ 2026-10-19T04:25:05.305Z
32
+
33
+ ./in-files/main.dbml(5,15): Expect an identifier
34
+ ./in-files/main.dbml(5,21): Custom setting 'pk user_id int' must be a string or a color literal
35
+
36
+ 2026-10-19T08:37:36.762Z
37
+
38
+ ./in-files/main.dbml(5,15): Expect an identifier
39
+ ./in-files/main.dbml(5,21): Custom setting 'pk user_id int' must be a string, a color literal, a number literal, or a boolean literal
40
+
41
+ 2026-10-20T03:59:05.970Z
42
+
43
+ ./in-files/main.dbml(5,15): Expect an identifier
44
+ ./in-files/main.dbml(5,21): Custom setting 'pk user_id int' must be a string or a color literal
45
+
@@ -1,5 +1,5 @@
1
1
  ERROR:
2
2
  ./in-files/main.dbml(5,15): Expect an identifier
3
- ./in-files/main.dbml(5,21): Custom setting 'pk user_id int' must be a string or a color literal
3
+ ./in-files/main.dbml(5,21): Custom setting 'pk user_id int' must be a string, a color literal, a number literal, or a boolean literal
4
4
 
5
5
  A complete log can be found in: