@dbml/cli 3.6.2 → 3.7.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 (295) hide show
  1. package/.babelrc +0 -0
  2. package/LICENSE +0 -0
  3. package/README.md +0 -0
  4. package/__test__/cli.test.js +7 -1
  5. package/__test__/db2dbml/mssql/dbml-error.log +467 -0
  6. package/__test__/db2dbml/mssql/expect-out-files/schema.dbml +190 -0
  7. package/__test__/db2dbml/mssql/options.json +8 -0
  8. package/__test__/db2dbml/mssql/schema.sql +296 -0
  9. package/__test__/db2dbml/mssql/stdout.txt +1 -0
  10. package/__test__/db2dbml/mysql/dbml-error.log +281 -0
  11. package/__test__/db2dbml/mysql/expect-out-files/schema.dbml +180 -0
  12. package/__test__/db2dbml/mysql/options.json +8 -0
  13. package/__test__/db2dbml/mysql/out-files/schema.dbml +180 -0
  14. package/__test__/db2dbml/mysql/schema.sql +141 -0
  15. package/__test__/db2dbml/mysql/stdout.txt +1 -0
  16. package/__test__/db2dbml/postgres/dbml-error.log +252 -0
  17. package/__test__/db2dbml/postgres/expect-out-files/schema.dbml +140 -0
  18. package/__test__/db2dbml/postgres/options.json +8 -0
  19. package/__test__/db2dbml/postgres/out-files/schema.dbml +140 -0
  20. package/__test__/db2dbml/postgres/schema.sql +156 -0
  21. package/__test__/db2dbml/postgres/stdout.txt +1 -0
  22. package/__test__/db2dbml_bin.js +5 -0
  23. package/__test__/dbml2sql/filename --mysql --out-file/dbml-error.log +0 -36
  24. package/__test__/dbml2sql/filename --mysql --out-file/expect-out-files/schema.sql +0 -0
  25. package/__test__/dbml2sql/filename --mysql --out-file/in-files/schema.dbml +0 -0
  26. package/__test__/dbml2sql/filename --mysql --out-file/options.json +0 -0
  27. package/__test__/dbml2sql/filename --mysql --out-file/out-files/schema.sql +1 -1
  28. package/__test__/dbml2sql/filename --mysql --out-file/stdout.txt +0 -0
  29. package/__test__/dbml2sql/filename --mysql stdout/dbml-error.log +0 -0
  30. package/__test__/dbml2sql/filename --mysql stdout/in-files/schema.dbml +0 -0
  31. package/__test__/dbml2sql/filename --mysql stdout/options.json +0 -0
  32. package/__test__/dbml2sql/filename --mysql stdout/stdout.txt +0 -0
  33. package/__test__/dbml2sql/filename --oracle --out-file/dbml-error.log +0 -0
  34. package/__test__/dbml2sql/filename --oracle --out-file/expect-out-files/schema.sql +0 -0
  35. package/__test__/dbml2sql/filename --oracle --out-file/in-files/schema.dbml +0 -0
  36. package/__test__/dbml2sql/filename --oracle --out-file/options.json +0 -0
  37. package/__test__/dbml2sql/filename --oracle --out-file/out-files/schema.sql +1 -1
  38. package/__test__/dbml2sql/filename --oracle --out-file/stdout.txt +0 -0
  39. package/__test__/dbml2sql/filename --oracle stdout/dbml-error.log +0 -0
  40. package/__test__/dbml2sql/filename --oracle stdout/in-files/schema.dbml +0 -0
  41. package/__test__/dbml2sql/filename --oracle stdout/options.json +0 -0
  42. package/__test__/dbml2sql/filename --oracle stdout/stdout.txt +0 -0
  43. package/__test__/dbml2sql/filename --out-file/dbml-error.log +0 -36
  44. package/__test__/dbml2sql/filename --out-file/expect-out-files/schema.sql +0 -0
  45. package/__test__/dbml2sql/filename --out-file/in-files/schema.dbml +0 -0
  46. package/__test__/dbml2sql/filename --out-file/options.json +0 -0
  47. package/__test__/dbml2sql/filename --out-file/out-files/schema.sql +1 -1
  48. package/__test__/dbml2sql/filename --out-file/stdout.txt +0 -0
  49. package/__test__/dbml2sql/filename --postgres --out-file/dbml-error.log +0 -24
  50. package/__test__/dbml2sql/filename --postgres --out-file/expect-out-files/schema.sql +0 -0
  51. package/__test__/dbml2sql/filename --postgres --out-file/in-files/schema.dbml +0 -0
  52. package/__test__/dbml2sql/filename --postgres --out-file/options.json +0 -0
  53. package/__test__/dbml2sql/filename --postgres --out-file/out-files/schema.sql +1 -1
  54. package/__test__/dbml2sql/filename --postgres --out-file/stdout.txt +0 -0
  55. package/__test__/dbml2sql/filename --postgres stdout/dbml-error.log +0 -0
  56. package/__test__/dbml2sql/filename --postgres stdout/in-files/schema.dbml +0 -0
  57. package/__test__/dbml2sql/filename --postgres stdout/options.json +0 -0
  58. package/__test__/dbml2sql/filename --postgres stdout/stdout.txt +0 -0
  59. package/__test__/dbml2sql/filename stdout/dbml-error.log +0 -0
  60. package/__test__/dbml2sql/filename stdout/in-files/schema.dbml +0 -0
  61. package/__test__/dbml2sql/filename stdout/options.json +0 -0
  62. package/__test__/dbml2sql/filename stdout/stdout.txt +0 -0
  63. package/__test__/dbml2sql/filenames --mysql --out-file/dbml-error.log +0 -24
  64. package/__test__/dbml2sql/filenames --mysql --out-file/expect-out-files/schema.sql +0 -0
  65. package/__test__/dbml2sql/filenames --mysql --out-file/in-files/business.dbml +0 -0
  66. package/__test__/dbml2sql/filenames --mysql --out-file/in-files/customer.dbml +0 -0
  67. package/__test__/dbml2sql/filenames --mysql --out-file/in-files/inventory.dbml +0 -0
  68. package/__test__/dbml2sql/filenames --mysql --out-file/options.json +0 -0
  69. package/__test__/dbml2sql/filenames --mysql --out-file/out-files/schema.sql +1 -1
  70. package/__test__/dbml2sql/filenames --mysql --out-file/stdout.txt +0 -0
  71. package/__test__/dbml2sql/filenames --mysql stdout/dbml-error.log +0 -0
  72. package/__test__/dbml2sql/filenames --mysql stdout/in-files/business.dbml +0 -0
  73. package/__test__/dbml2sql/filenames --mysql stdout/in-files/customer.dbml +0 -0
  74. package/__test__/dbml2sql/filenames --mysql stdout/in-files/inventory.dbml +0 -0
  75. package/__test__/dbml2sql/filenames --mysql stdout/options.json +0 -0
  76. package/__test__/dbml2sql/filenames --mysql stdout/stdout.txt +0 -0
  77. package/__test__/dbml2sql/filenames --oracle --out-file/dbml-error.log +0 -0
  78. package/__test__/dbml2sql/filenames --oracle --out-file/expect-out-files/schema.sql +0 -0
  79. package/__test__/dbml2sql/filenames --oracle --out-file/in-files/business.dbml +0 -0
  80. package/__test__/dbml2sql/filenames --oracle --out-file/in-files/customer.dbml +0 -0
  81. package/__test__/dbml2sql/filenames --oracle --out-file/in-files/inventory.dbml +0 -0
  82. package/__test__/dbml2sql/filenames --oracle --out-file/options.json +0 -0
  83. package/__test__/dbml2sql/filenames --oracle --out-file/out-files/schema.sql +1 -1
  84. package/__test__/dbml2sql/filenames --oracle --out-file/stdout.txt +0 -0
  85. package/__test__/dbml2sql/filenames --oracle stdout/dbml-error.log +0 -0
  86. package/__test__/dbml2sql/filenames --oracle stdout/in-files/business.dbml +0 -0
  87. package/__test__/dbml2sql/filenames --oracle stdout/in-files/customer.dbml +0 -0
  88. package/__test__/dbml2sql/filenames --oracle stdout/in-files/inventory.dbml +0 -0
  89. package/__test__/dbml2sql/filenames --oracle stdout/options.json +0 -0
  90. package/__test__/dbml2sql/filenames --oracle stdout/stdout.txt +0 -0
  91. package/__test__/dbml2sql/filenames --out-file/dbml-error.log +0 -24
  92. package/__test__/dbml2sql/filenames --out-file/expect-out-files/schema.sql +0 -0
  93. package/__test__/dbml2sql/filenames --out-file/in-files/business.dbml +0 -0
  94. package/__test__/dbml2sql/filenames --out-file/in-files/customer.dbml +0 -0
  95. package/__test__/dbml2sql/filenames --out-file/in-files/inventory.dbml +0 -0
  96. package/__test__/dbml2sql/filenames --out-file/options.json +0 -0
  97. package/__test__/dbml2sql/filenames --out-file/out-files/schema.sql +1 -1
  98. package/__test__/dbml2sql/filenames --out-file/stdout.txt +0 -0
  99. package/__test__/dbml2sql/filenames --postgres --out-file/dbml-error.log +0 -24
  100. package/__test__/dbml2sql/filenames --postgres --out-file/expect-out-files/schema.sql +0 -0
  101. package/__test__/dbml2sql/filenames --postgres --out-file/in-files/business.dbml +0 -0
  102. package/__test__/dbml2sql/filenames --postgres --out-file/in-files/customer.dbml +0 -0
  103. package/__test__/dbml2sql/filenames --postgres --out-file/in-files/inventory.dbml +0 -0
  104. package/__test__/dbml2sql/filenames --postgres --out-file/options.json +0 -0
  105. package/__test__/dbml2sql/filenames --postgres --out-file/out-files/schema.sql +1 -1
  106. package/__test__/dbml2sql/filenames --postgres --out-file/stdout.txt +0 -0
  107. package/__test__/dbml2sql/filenames --postgres stdout/dbml-error.log +0 -0
  108. package/__test__/dbml2sql/filenames --postgres stdout/in-files/business.dbml +0 -0
  109. package/__test__/dbml2sql/filenames --postgres stdout/in-files/customer.dbml +0 -0
  110. package/__test__/dbml2sql/filenames --postgres stdout/in-files/inventory.dbml +0 -0
  111. package/__test__/dbml2sql/filenames --postgres stdout/options.json +0 -0
  112. package/__test__/dbml2sql/filenames --postgres stdout/stdout.txt +0 -0
  113. package/__test__/dbml2sql/filenames stdout/dbml-error.log +0 -0
  114. package/__test__/dbml2sql/filenames stdout/in-files/business.dbml +0 -0
  115. package/__test__/dbml2sql/filenames stdout/in-files/customer.dbml +0 -0
  116. package/__test__/dbml2sql/filenames stdout/in-files/inventory.dbml +0 -0
  117. package/__test__/dbml2sql/filenames stdout/options.json +0 -0
  118. package/__test__/dbml2sql/filenames stdout/stdout.txt +0 -0
  119. package/__test__/dbml2sql/multiple_schema_mssql/dbml-error.log +0 -24
  120. package/__test__/dbml2sql/multiple_schema_mssql/expect-out-files/multiple_schema.out.sql +0 -0
  121. package/__test__/dbml2sql/multiple_schema_mssql/in-files/multiple_schema.in.dbml +0 -0
  122. package/__test__/dbml2sql/multiple_schema_mssql/options.json +0 -0
  123. package/__test__/dbml2sql/multiple_schema_mssql/out-files/multiple_schema.out.sql +1 -1
  124. package/__test__/dbml2sql/multiple_schema_mssql/stdout.txt +0 -0
  125. package/__test__/dbml2sql/multiple_schema_mysql/dbml-error.log +0 -24
  126. package/__test__/dbml2sql/multiple_schema_mysql/expect-out-files/multiple_schema.out.sql +0 -0
  127. package/__test__/dbml2sql/multiple_schema_mysql/in-files/multiple_schema.in.dbml +0 -0
  128. package/__test__/dbml2sql/multiple_schema_mysql/options.json +0 -0
  129. package/__test__/dbml2sql/multiple_schema_mysql/out-files/multiple_schema.out.sql +1 -1
  130. package/__test__/dbml2sql/multiple_schema_mysql/stdout.txt +0 -0
  131. package/__test__/dbml2sql/multiple_schema_oracle/dbml-error.log +0 -0
  132. package/__test__/dbml2sql/multiple_schema_oracle/expect-out-files/multiple_schema.out.sql +0 -0
  133. package/__test__/dbml2sql/multiple_schema_oracle/in-files/multiple_schema.in.dbml +0 -0
  134. package/__test__/dbml2sql/multiple_schema_oracle/options.json +0 -0
  135. package/__test__/dbml2sql/multiple_schema_oracle/out-files/multiple_schema.out.sql +1 -1
  136. package/__test__/dbml2sql/multiple_schema_oracle/stdout.txt +0 -0
  137. package/__test__/dbml2sql/multiple_schema_pg/dbml-error.log +0 -24
  138. package/__test__/dbml2sql/multiple_schema_pg/expect-out-files/multiple_schema.out.sql +0 -0
  139. package/__test__/dbml2sql/multiple_schema_pg/in-files/multiple_schema.in.dbml +0 -0
  140. package/__test__/dbml2sql/multiple_schema_pg/options.json +0 -0
  141. package/__test__/dbml2sql/multiple_schema_pg/out-files/multiple_schema.out.sql +1 -1
  142. package/__test__/dbml2sql/multiple_schema_pg/stdout.txt +0 -0
  143. package/__test__/dbml2sql/syntax-error/dbml-error.log +7 -2104
  144. package/__test__/dbml2sql/syntax-error/in-files/ecommerce.dbml +0 -0
  145. package/__test__/dbml2sql/syntax-error/options.json +0 -0
  146. package/__test__/dbml2sql/syntax-error/stdout.txt +0 -0
  147. package/__test__/dbml2sql_bin.js +0 -0
  148. package/__test__/sql2dbml/filename --mssql --out-file/dbml-error.log +0 -51
  149. package/__test__/sql2dbml/filename --mssql --out-file/expect-out-files/schema.dbml +0 -0
  150. package/__test__/sql2dbml/filename --mssql --out-file/in-files/schema.sql +0 -0
  151. package/__test__/sql2dbml/filename --mssql --out-file/options.json +0 -0
  152. package/__test__/sql2dbml/filename --mssql --out-file/out-files/schema.dbml +0 -0
  153. package/__test__/sql2dbml/filename --mssql --out-file/stdout.txt +0 -0
  154. package/__test__/sql2dbml/filename --mysql --out-file/dbml-error.log +0 -24
  155. package/__test__/sql2dbml/filename --mysql --out-file/expect-out-files/schema.dbml +0 -0
  156. package/__test__/sql2dbml/filename --mysql --out-file/in-files/schema.sql +0 -0
  157. package/__test__/sql2dbml/filename --mysql --out-file/options.json +0 -0
  158. package/__test__/sql2dbml/filename --mysql --out-file/out-files/schema.dbml +0 -0
  159. package/__test__/sql2dbml/filename --mysql --out-file/stdout.txt +0 -0
  160. package/__test__/sql2dbml/filename --mysql stdout/dbml-error.log +0 -0
  161. package/__test__/sql2dbml/filename --mysql stdout/in-files/schema.sql +0 -0
  162. package/__test__/sql2dbml/filename --mysql stdout/options.json +0 -0
  163. package/__test__/sql2dbml/filename --mysql stdout/stdout.txt +0 -0
  164. package/__test__/sql2dbml/filename --out-file/dbml-error.log +0 -24
  165. package/__test__/sql2dbml/filename --out-file/expect-out-files/schema.dbml +0 -0
  166. package/__test__/sql2dbml/filename --out-file/in-files/schema.sql +0 -0
  167. package/__test__/sql2dbml/filename --out-file/options.json +0 -0
  168. package/__test__/sql2dbml/filename --out-file/out-files/schema.dbml +0 -0
  169. package/__test__/sql2dbml/filename --out-file/stdout.txt +0 -0
  170. package/__test__/sql2dbml/filename --postgres --out-file/dbml-error.log +0 -24
  171. package/__test__/sql2dbml/filename --postgres --out-file/expect-out-files/schema.dbml +0 -0
  172. package/__test__/sql2dbml/filename --postgres --out-file/in-files/schema.sql +0 -0
  173. package/__test__/sql2dbml/filename --postgres --out-file/options.json +0 -0
  174. package/__test__/sql2dbml/filename --postgres --out-file/out-files/schema.dbml +0 -0
  175. package/__test__/sql2dbml/filename --postgres --out-file/stdout.txt +0 -0
  176. package/__test__/sql2dbml/filename --postgres stdout/dbml-error.log +0 -0
  177. package/__test__/sql2dbml/filename --postgres stdout/in-files/schema.sql +0 -0
  178. package/__test__/sql2dbml/filename --postgres stdout/options.json +0 -0
  179. package/__test__/sql2dbml/filename --postgres stdout/stdout.txt +0 -0
  180. package/__test__/sql2dbml/filename --snowflake stdout/dbml-error.log +0 -54
  181. package/__test__/sql2dbml/filename --snowflake stdout/in-files/schema.sql +0 -0
  182. package/__test__/sql2dbml/filename --snowflake stdout/options.json +0 -0
  183. package/__test__/sql2dbml/filename --snowflake stdout/stdout.txt +6 -6
  184. package/__test__/sql2dbml/filename stdout/dbml-error.log +0 -0
  185. package/__test__/sql2dbml/filename stdout/in-files/schema.sql +0 -0
  186. package/__test__/sql2dbml/filename stdout/options.json +0 -0
  187. package/__test__/sql2dbml/filename stdout/stdout.txt +0 -0
  188. package/__test__/sql2dbml/filenames --mysql --out-file/dbml-error.log +0 -24
  189. package/__test__/sql2dbml/filenames --mysql --out-file/expect-out-files/schema.dbml +0 -0
  190. package/__test__/sql2dbml/filenames --mysql --out-file/in-files/business.sql +0 -0
  191. package/__test__/sql2dbml/filenames --mysql --out-file/in-files/customer.sql +0 -0
  192. package/__test__/sql2dbml/filenames --mysql --out-file/in-files/inventory.sql +0 -0
  193. package/__test__/sql2dbml/filenames --mysql --out-file/options.json +0 -0
  194. package/__test__/sql2dbml/filenames --mysql --out-file/out-files/schema.dbml +0 -0
  195. package/__test__/sql2dbml/filenames --mysql --out-file/stdout.txt +0 -0
  196. package/__test__/sql2dbml/filenames --mysql stdout/dbml-error.log +0 -0
  197. package/__test__/sql2dbml/filenames --mysql stdout/in-files/business.sql +0 -0
  198. package/__test__/sql2dbml/filenames --mysql stdout/in-files/customer.sql +0 -0
  199. package/__test__/sql2dbml/filenames --mysql stdout/in-files/inventory.sql +0 -0
  200. package/__test__/sql2dbml/filenames --mysql stdout/options.json +0 -0
  201. package/__test__/sql2dbml/filenames --mysql stdout/stdout.txt +0 -0
  202. package/__test__/sql2dbml/filenames --out-file/dbml-error.log +0 -24
  203. package/__test__/sql2dbml/filenames --out-file/expect-out-files/schema.dbml +0 -0
  204. package/__test__/sql2dbml/filenames --out-file/in-files/business.sql +0 -0
  205. package/__test__/sql2dbml/filenames --out-file/in-files/customer.sql +0 -0
  206. package/__test__/sql2dbml/filenames --out-file/in-files/inventory.sql +0 -0
  207. package/__test__/sql2dbml/filenames --out-file/options.json +0 -0
  208. package/__test__/sql2dbml/filenames --out-file/out-files/schema.dbml +0 -0
  209. package/__test__/sql2dbml/filenames --out-file/stdout.txt +0 -0
  210. package/__test__/sql2dbml/filenames --postgres --out-file/dbml-error.log +0 -24
  211. package/__test__/sql2dbml/filenames --postgres --out-file/expect-out-files/schema.dbml +0 -0
  212. package/__test__/sql2dbml/filenames --postgres --out-file/in-files/business.sql +0 -0
  213. package/__test__/sql2dbml/filenames --postgres --out-file/in-files/customer.sql +0 -0
  214. package/__test__/sql2dbml/filenames --postgres --out-file/in-files/inventory.sql +0 -0
  215. package/__test__/sql2dbml/filenames --postgres --out-file/options.json +0 -0
  216. package/__test__/sql2dbml/filenames --postgres --out-file/out-files/schema.dbml +0 -0
  217. package/__test__/sql2dbml/filenames --postgres --out-file/stdout.txt +0 -0
  218. package/__test__/sql2dbml/filenames --postgres stdout/dbml-error.log +0 -0
  219. package/__test__/sql2dbml/filenames --postgres stdout/in-files/business.sql +0 -0
  220. package/__test__/sql2dbml/filenames --postgres stdout/in-files/customer.sql +0 -0
  221. package/__test__/sql2dbml/filenames --postgres stdout/in-files/inventory.sql +0 -0
  222. package/__test__/sql2dbml/filenames --postgres stdout/options.json +0 -0
  223. package/__test__/sql2dbml/filenames --postgres stdout/stdout.txt +0 -0
  224. package/__test__/sql2dbml/filenames stdout/dbml-error.log +0 -0
  225. package/__test__/sql2dbml/filenames stdout/in-files/business.sql +0 -0
  226. package/__test__/sql2dbml/filenames stdout/in-files/customer.sql +0 -0
  227. package/__test__/sql2dbml/filenames stdout/in-files/inventory.sql +0 -0
  228. package/__test__/sql2dbml/filenames stdout/options.json +0 -0
  229. package/__test__/sql2dbml/filenames stdout/stdout.txt +0 -0
  230. package/__test__/sql2dbml/multiple_schema_mssql/dbml-error.log +0 -121
  231. package/__test__/sql2dbml/multiple_schema_mssql/expect-out-files/multiple_schema.out.dbml +0 -0
  232. package/__test__/sql2dbml/multiple_schema_mssql/in-files/multiple_schema.in.sql +0 -0
  233. package/__test__/sql2dbml/multiple_schema_mssql/options.json +0 -0
  234. package/__test__/sql2dbml/multiple_schema_mssql/out-files/multiple_schema.out.dbml +0 -0
  235. package/__test__/sql2dbml/multiple_schema_mssql/stdout.txt +0 -0
  236. package/__test__/sql2dbml/multiple_schema_mysql/dbml-error.log +0 -104
  237. package/__test__/sql2dbml/multiple_schema_mysql/expect-out-files/multiple_schema.out.dbml +0 -0
  238. package/__test__/sql2dbml/multiple_schema_mysql/in-files/multiple_schema.in.sql +0 -0
  239. package/__test__/sql2dbml/multiple_schema_mysql/options.json +0 -0
  240. package/__test__/sql2dbml/multiple_schema_mysql/out-files/multiple_schema.out.dbml +0 -0
  241. package/__test__/sql2dbml/multiple_schema_mysql/stdout.txt +0 -0
  242. package/__test__/sql2dbml/multiple_schema_pg/dbml-error.log +0 -131
  243. package/__test__/sql2dbml/multiple_schema_pg/expect-out-files/multiple_schema.out.dbml +0 -0
  244. package/__test__/sql2dbml/multiple_schema_pg/in-files/multiple_schema.in.sql +0 -0
  245. package/__test__/sql2dbml/multiple_schema_pg/options.json +0 -0
  246. package/__test__/sql2dbml/multiple_schema_pg/out-files/multiple_schema.out.dbml +0 -0
  247. package/__test__/sql2dbml/multiple_schema_pg/stdout.txt +0 -0
  248. package/__test__/sql2dbml/syntax-error/dbml-error.log +7 -2077
  249. package/__test__/sql2dbml/syntax-error/in-files/business.sql +0 -0
  250. package/__test__/sql2dbml/syntax-error/options.json +0 -0
  251. package/__test__/sql2dbml/syntax-error/stdout.txt +0 -0
  252. package/__test__/sql2dbml/syntax-error-duplicate-endpoints --mssql/dbml-error.log +9 -27
  253. package/__test__/sql2dbml/syntax-error-duplicate-endpoints --mssql/in-files/schema.sql +0 -0
  254. package/__test__/sql2dbml/syntax-error-duplicate-endpoints --mssql/options.json +0 -0
  255. package/__test__/sql2dbml/syntax-error-duplicate-endpoints --mssql/stdout.txt +0 -0
  256. package/__test__/sql2dbml/syntax-error-duplicate-endpoints --mysql/dbml-error.log +7 -28
  257. package/__test__/sql2dbml/syntax-error-duplicate-endpoints --mysql/in-files/schema.sql +0 -0
  258. package/__test__/sql2dbml/syntax-error-duplicate-endpoints --mysql/options.json +0 -0
  259. package/__test__/sql2dbml/syntax-error-duplicate-endpoints --mysql/stdout.txt +0 -0
  260. package/__test__/sql2dbml_bin.js +0 -0
  261. package/bin/db2dbml.js +4 -0
  262. package/dbml-error.log +52 -279
  263. package/jestHelpers.js +0 -0
  264. package/lib/cli/config.js +0 -0
  265. package/lib/cli/connector.js +6 -7
  266. package/lib/cli/export.js +0 -0
  267. package/lib/cli/import.js +0 -0
  268. package/lib/cli/index.js +28 -0
  269. package/lib/cli/outputPlugins/outputConsolePlugin.js +0 -0
  270. package/lib/cli/outputPlugins/outputFilePlugin.js +0 -0
  271. package/lib/cli/utils.js +20 -0
  272. package/lib/cli/validatePlugins/validatePlugins.js +0 -0
  273. package/lib/connectors/Connector.js +19 -0
  274. package/lib/connectors/MssqlConnector.js +483 -0
  275. package/lib/connectors/PostgresConnector.js +450 -0
  276. package/lib/errors/domainError.js +0 -0
  277. package/lib/errors/index.js +0 -0
  278. package/lib/errors/syntaxError.js +0 -0
  279. package/lib/helpers/logger.js +0 -0
  280. package/lib/index.js +6 -0
  281. package/package.json +5 -4
  282. package/src/cli/config.js +0 -0
  283. package/src/cli/connector.js +31 -0
  284. package/src/cli/export.js +0 -0
  285. package/src/cli/import.js +0 -0
  286. package/src/cli/index.js +35 -0
  287. package/src/cli/outputPlugins/outputConsolePlugin.js +0 -0
  288. package/src/cli/outputPlugins/outputFilePlugin.js +0 -0
  289. package/src/cli/utils.js +23 -0
  290. package/src/cli/validatePlugins/validatePlugins.js +0 -0
  291. package/src/errors/domainError.js +0 -0
  292. package/src/errors/index.js +0 -0
  293. package/src/errors/syntaxError.js +0 -0
  294. package/src/helpers/logger.js +0 -0
  295. package/src/index.js +2 -1
@@ -0,0 +1,156 @@
1
+ -- Create users table
2
+ CREATE TABLE users (
3
+ user_id SERIAL PRIMARY KEY,
4
+ username VARCHAR(50) UNIQUE NOT NULL,
5
+ email VARCHAR(100) UNIQUE NOT NULL,
6
+ password_hash VARCHAR(255) NOT NULL,
7
+ first_name VARCHAR(50),
8
+ last_name VARCHAR(50),
9
+ full_name VARCHAR(100),
10
+ date_of_birth DATE,
11
+ created_at TIMESTAMP WITH TIME ZONE DEFAULT CURRENT_TIMESTAMP,
12
+ last_login TIMESTAMP WITH TIME ZONE,
13
+ is_active BOOLEAN DEFAULT TRUE,
14
+ CONSTRAINT chk_email_format CHECK (email ~* '^[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Z|a-z]{2,}$'),
15
+ CONSTRAINT chk_age CHECK (date_of_birth <= CURRENT_DATE - INTERVAL '13 years')
16
+ );
17
+
18
+ -- Create an index on the email column for faster lookups
19
+ CREATE INDEX idx_users_email ON users (email);
20
+
21
+ CREATE UNIQUE INDEX ON "users" ("user_id");
22
+
23
+ CREATE INDEX "User Name" ON "users" ("full_name");
24
+
25
+ CREATE INDEX ON "users" ("is_active", ((lower(full_name))));
26
+
27
+ -- Create products table
28
+ CREATE TABLE products (
29
+ product_id SERIAL PRIMARY KEY,
30
+ name VARCHAR(100) NOT NULL,
31
+ description TEXT,
32
+ price DECIMAL(10, 2) NOT NULL,
33
+ stock_quantity INTEGER NOT NULL DEFAULT 0,
34
+ category VARCHAR(50),
35
+ created_at TIMESTAMP WITH TIME ZONE DEFAULT CURRENT_TIMESTAMP,
36
+ updated_at TIMESTAMP WITH TIME ZONE DEFAULT CURRENT_TIMESTAMP,
37
+ is_available BOOLEAN DEFAULT TRUE,
38
+ CONSTRAINT chk_price_positive CHECK (price > 0),
39
+ CONSTRAINT chk_stock_non_negative CHECK (stock_quantity >= 0)
40
+ );
41
+
42
+ -- Create an index on the category column for faster filtering
43
+ CREATE INDEX idx_products_category ON products (category);
44
+
45
+ -- Create orders table
46
+ CREATE TABLE orders (
47
+ order_id SERIAL PRIMARY KEY,
48
+ user_id INTEGER NOT NULL,
49
+ order_date TIMESTAMP WITH TIME ZONE DEFAULT CURRENT_TIMESTAMP,
50
+ total_amount DECIMAL(12, 2) NOT NULL,
51
+ status VARCHAR(20) DEFAULT 'pending',
52
+ shipping_address TEXT NOT NULL,
53
+ billing_address TEXT NOT NULL,
54
+ CONSTRAINT fk_user FOREIGN KEY (user_id) REFERENCES users(user_id) ON DELETE CASCADE,
55
+ CONSTRAINT chk_total_amount_positive CHECK (total_amount > 0),
56
+ CONSTRAINT chk_status CHECK (status IN ('pending', 'processing', 'shipped', 'delivered', 'cancelled'))
57
+ );
58
+
59
+ -- Create an index on the user_id and order_date columns for faster querying
60
+ CREATE INDEX idx_orders_user_date ON orders (user_id, order_date);
61
+
62
+ -- Create order_items table
63
+ CREATE TABLE order_items (
64
+ order_item_id SERIAL PRIMARY KEY,
65
+ order_id INTEGER NOT NULL,
66
+ product_id INTEGER NOT NULL,
67
+ quantity INTEGER NOT NULL,
68
+ unit_price DECIMAL(10, 2) NOT NULL,
69
+ CONSTRAINT fk_order FOREIGN KEY (order_id) REFERENCES orders(order_id) ON DELETE CASCADE,
70
+ CONSTRAINT fk_product FOREIGN KEY (product_id) REFERENCES products(product_id) ON DELETE CASCADE,
71
+ CONSTRAINT chk_quantity_positive CHECK (quantity > 0),
72
+ CONSTRAINT chk_unit_price_positive CHECK (unit_price > 0),
73
+ CONSTRAINT uq_order_product UNIQUE (order_id, product_id)
74
+ );
75
+
76
+ -- Create a composite index on order_id and product_id for faster joins
77
+ CREATE INDEX idx_order_items_order_product ON order_items (order_id, product_id);
78
+
79
+ -- Create a table with default values for string types
80
+ CREATE TABLE all_string_types (
81
+ text_col TEXT DEFAULT 'default_text',
82
+ varchar_col VARCHAR(100) DEFAULT 'default_varchar',
83
+ char_col CHAR(10) DEFAULT 'default_char',
84
+ character_varying_col CHARACTER VARYING(50) DEFAULT 'default_character_varying',
85
+ character_col CHARACTER(5) DEFAULT 'default_character',
86
+ name_col NAME DEFAULT 'default_name',
87
+ bpchar_col BPCHAR(15) DEFAULT 'default_bpchar',
88
+ text_array_col TEXT[] DEFAULT ARRAY['default_text1', 'default_text2'],
89
+ json_col JSON DEFAULT '{"default_key": "default_value"}',
90
+ jsonb_col JSONB DEFAULT '{"default_key": "default_value"}'
91
+ );
92
+
93
+ -- Create a table with default value for number type, boolean type, date type
94
+ CREATE TABLE all_default_values (
95
+ id SERIAL PRIMARY KEY, -- A primary key column
96
+ boolean_col BOOLEAN DEFAULT TRUE, -- BOOLEAN type with default value
97
+ integer_col INTEGER DEFAULT 42, -- INTEGER type with default value
98
+ numeric_col NUMERIC(10, 2) DEFAULT 99.99, -- NUMERIC type with default value
99
+ date_col DATE DEFAULT CURRENT_DATE, -- DATE type with default value
100
+ date_col_specific DATE DEFAULT '2024-01-01', -- DATE with a specific default value
101
+ timestamp_col TIMESTAMP DEFAULT CURRENT_TIMESTAMP, -- TIMESTAMP with default value
102
+ timestamp_col_specific TIMESTAMP DEFAULT '2024-01-01 12:00:00', -- TIMESTAMP with a specific default value
103
+ -- New columns that calculate default values based on formulas
104
+ date_plus_7_days DATE DEFAULT (CURRENT_DATE + INTERVAL '7 days'), -- 7 days from current date
105
+ date_minus_30_days DATE DEFAULT (CURRENT_DATE - INTERVAL '30 days'), -- 30 days before current date
106
+ timestamp_plus_1_hour TIMESTAMP DEFAULT (CURRENT_TIMESTAMP + INTERVAL '1 hour'), -- 1 hour from current timestamp
107
+ timestamp_minus_15_minutes TIMESTAMP DEFAULT (CURRENT_TIMESTAMP - INTERVAL '15 minutes') -- 15 minutes before current timestamp
108
+ );
109
+
110
+ -- Create a table with user-defined data types
111
+ CREATE TYPE gender_type AS ENUM ('Male', 'Female', 'Other');
112
+
113
+ CREATE TABLE user_define_data_types (
114
+ id SERIAL PRIMARY KEY,
115
+ name VARCHAR(50),
116
+ gender gender_type,
117
+ age int4range, -- Using built-in int4range for age range
118
+ height FLOAT,
119
+ weight FLOAT
120
+ );
121
+
122
+ -- Create table with comments
123
+ CREATE TABLE table_with_comments (
124
+ id SERIAL PRIMARY KEY,
125
+ name VARCHAR(100),
126
+ description TEXT,
127
+ created_at TIMESTAMP WITH TIME ZONE DEFAULT CURRENT_TIMESTAMP
128
+ );
129
+
130
+ -- Add comments
131
+ COMMENT ON TABLE table_with_comments IS 'This table stores information about various items.';
132
+ COMMENT ON COLUMN table_with_comments.id IS 'Unique identifier for each item.';
133
+ COMMENT ON COLUMN table_with_comments.name IS 'Name of the item.';
134
+ COMMENT ON COLUMN table_with_comments.description IS 'Detailed description of the item.';
135
+ COMMENT ON COLUMN table_with_comments.created_at IS 'Timestamp when the item was created.';
136
+
137
+ -- Create Authors table
138
+ CREATE TABLE Authors (
139
+ AuthorID SERIAL,
140
+ NationalityID INT,
141
+ AuthorName VARCHAR(100),
142
+ BirthYear INT,
143
+ PRIMARY KEY (AuthorID, NationalityID) -- Use composite primary key
144
+ );
145
+
146
+ -- Create Books table
147
+ CREATE TABLE Books (
148
+ BookID SERIAL PRIMARY KEY,
149
+ AuthorID INT,
150
+ NationalityID INT,
151
+ ISBN VARCHAR(20),
152
+ Title VARCHAR(200),
153
+ UNIQUE (ISBN),
154
+ CONSTRAINT FK_AuthorNationality FOREIGN KEY (AuthorID, NationalityID)
155
+ REFERENCES Authors (AuthorID, NationalityID) ON DELETE CASCADE
156
+ );
@@ -0,0 +1 @@
1
+ ✔ Generated DBML file from database's connection: schema.dbml
@@ -0,0 +1,5 @@
1
+ // eslint-disable-next-line
2
+ require = require('esm')(module);
3
+ const { db2dbml } = require('../src');
4
+
5
+ db2dbml(process.argv);
@@ -1,36 +0,0 @@
1
- 2021-07-13T12:37:40.734Z
2
- TypeError: Cannot read property 'tick' of undefined
3
- at exportHandler (C:\Users\Inspiron101\Desktop\Holistics\dbml\packages\dbml-cli\src\cli\export.js:37:56)
4
- at dbml2sql (C:\Users\Inspiron101\Desktop\Holistics\dbml\packages\dbml-cli\src\cli\index.js:19:3)
5
- at Object.<anonymous> (C:\Users\Inspiron101\Desktop\Holistics\dbml\packages\dbml-cli\__test__\dbml2sql_bin.js:5:1)
6
- at Module._compile (internal/modules/cjs/loader.js:1085:14)
7
- at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
8
- at Module.load (internal/modules/cjs/loader.js:950:32)
9
- at Function.Module._load (internal/modules/cjs/loader.js:790:14)
10
- at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:76:12)
11
- at internal/main/run_main_module.js:17:47
12
-
13
- 2021-07-13T12:47:15.905Z
14
- TypeError: Cannot read property 'tick' of undefined
15
- at exportHandler (C:\Users\Inspiron101\Desktop\Holistics\dbml\packages\dbml-cli\src\cli\export.js:37:56)
16
- at dbml2sql (C:\Users\Inspiron101\Desktop\Holistics\dbml\packages\dbml-cli\src\cli\index.js:19:3)
17
- at Object.<anonymous> (C:\Users\Inspiron101\Desktop\Holistics\dbml\packages\dbml-cli\__test__\dbml2sql_bin.js:5:1)
18
- at Module._compile (internal/modules/cjs/loader.js:1085:14)
19
- at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
20
- at Module.load (internal/modules/cjs/loader.js:950:32)
21
- at Function.Module._load (internal/modules/cjs/loader.js:790:14)
22
- at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:76:12)
23
- at internal/main/run_main_module.js:17:47
24
-
25
- 2021-07-13T12:58:20.418Z
26
- TypeError: Cannot read property 'tick' of undefined
27
- at exportHandler (C:\Users\Inspiron101\Desktop\Holistics\dbml\packages\dbml-cli\src\cli\export.js:37:49)
28
- at dbml2sql (C:\Users\Inspiron101\Desktop\Holistics\dbml\packages\dbml-cli\src\cli\index.js:19:3)
29
- at Object.<anonymous> (C:\Users\Inspiron101\Desktop\Holistics\dbml\packages\dbml-cli\__test__\dbml2sql_bin.js:5:1)
30
- at Module._compile (internal/modules/cjs/loader.js:1085:14)
31
- at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
32
- at Module.load (internal/modules/cjs/loader.js:950:32)
33
- at Function.Module._load (internal/modules/cjs/loader.js:790:14)
34
- at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:76:12)
35
- at internal/main/run_main_module.js:17:47
36
-
@@ -1,6 +1,6 @@
1
1
  -- SQL dump generated using DBML (dbml.dbdiagram.io)
2
2
  -- Database: MySQL
3
- -- Generated at: 2024-07-16T10:01:37.588Z
3
+ -- Generated at: 2024-08-11T02:27:52.128Z
4
4
 
5
5
  CREATE TABLE `orders` (
6
6
  `id` int PRIMARY KEY AUTO_INCREMENT,
@@ -1,6 +1,6 @@
1
1
  -- SQL dump generated using DBML (dbml.dbdiagram.io)
2
2
  -- Database: Oracle
3
- -- Generated at: 2024-07-16T09:30:56.955Z
3
+ -- Generated at: 2024-08-11T02:27:53.200Z
4
4
 
5
5
  CREATE TABLE "orders" (
6
6
  "id" int GENERATED AS IDENTITY PRIMARY KEY,
@@ -1,36 +0,0 @@
1
- 2021-07-13T12:37:43.283Z
2
- TypeError: Cannot read property 'tick' of undefined
3
- at exportHandler (C:\Users\Inspiron101\Desktop\Holistics\dbml\packages\dbml-cli\src\cli\export.js:37:56)
4
- at dbml2sql (C:\Users\Inspiron101\Desktop\Holistics\dbml\packages\dbml-cli\src\cli\index.js:19:3)
5
- at Object.<anonymous> (C:\Users\Inspiron101\Desktop\Holistics\dbml\packages\dbml-cli\__test__\dbml2sql_bin.js:5:1)
6
- at Module._compile (internal/modules/cjs/loader.js:1085:14)
7
- at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
8
- at Module.load (internal/modules/cjs/loader.js:950:32)
9
- at Function.Module._load (internal/modules/cjs/loader.js:790:14)
10
- at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:76:12)
11
- at internal/main/run_main_module.js:17:47
12
-
13
- 2021-07-13T12:47:19.039Z
14
- TypeError: Cannot read property 'tick' of undefined
15
- at exportHandler (C:\Users\Inspiron101\Desktop\Holistics\dbml\packages\dbml-cli\src\cli\export.js:37:56)
16
- at dbml2sql (C:\Users\Inspiron101\Desktop\Holistics\dbml\packages\dbml-cli\src\cli\index.js:19:3)
17
- at Object.<anonymous> (C:\Users\Inspiron101\Desktop\Holistics\dbml\packages\dbml-cli\__test__\dbml2sql_bin.js:5:1)
18
- at Module._compile (internal/modules/cjs/loader.js:1085:14)
19
- at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
20
- at Module.load (internal/modules/cjs/loader.js:950:32)
21
- at Function.Module._load (internal/modules/cjs/loader.js:790:14)
22
- at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:76:12)
23
- at internal/main/run_main_module.js:17:47
24
-
25
- 2021-07-13T12:58:22.994Z
26
- TypeError: Cannot read property 'tick' of undefined
27
- at exportHandler (C:\Users\Inspiron101\Desktop\Holistics\dbml\packages\dbml-cli\src\cli\export.js:37:49)
28
- at dbml2sql (C:\Users\Inspiron101\Desktop\Holistics\dbml\packages\dbml-cli\src\cli\index.js:19:3)
29
- at Object.<anonymous> (C:\Users\Inspiron101\Desktop\Holistics\dbml\packages\dbml-cli\__test__\dbml2sql_bin.js:5:1)
30
- at Module._compile (internal/modules/cjs/loader.js:1085:14)
31
- at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
32
- at Module.load (internal/modules/cjs/loader.js:950:32)
33
- at Function.Module._load (internal/modules/cjs/loader.js:790:14)
34
- at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:76:12)
35
- at internal/main/run_main_module.js:17:47
36
-
@@ -1,6 +1,6 @@
1
1
  -- SQL dump generated using DBML (dbml.dbdiagram.io)
2
2
  -- Database: PostgreSQL
3
- -- Generated at: 2024-07-16T09:30:57.887Z
3
+ -- Generated at: 2024-08-11T02:27:54.276Z
4
4
 
5
5
  CREATE TYPE "orders_status" AS ENUM (
6
6
  'created',
File without changes
@@ -1,24 +0,0 @@
1
- 2021-07-13T12:37:44.406Z
2
- TypeError: Cannot read property 'tick' of undefined
3
- at exportHandler (C:\Users\Inspiron101\Desktop\Holistics\dbml\packages\dbml-cli\src\cli\export.js:37:56)
4
- at dbml2sql (C:\Users\Inspiron101\Desktop\Holistics\dbml\packages\dbml-cli\src\cli\index.js:19:3)
5
- at Object.<anonymous> (C:\Users\Inspiron101\Desktop\Holistics\dbml\packages\dbml-cli\__test__\dbml2sql_bin.js:5:1)
6
- at Module._compile (internal/modules/cjs/loader.js:1085:14)
7
- at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
8
- at Module.load (internal/modules/cjs/loader.js:950:32)
9
- at Function.Module._load (internal/modules/cjs/loader.js:790:14)
10
- at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:76:12)
11
- at internal/main/run_main_module.js:17:47
12
-
13
- 2021-07-13T12:58:23.999Z
14
- TypeError: Cannot read property 'tick' of undefined
15
- at exportHandler (C:\Users\Inspiron101\Desktop\Holistics\dbml\packages\dbml-cli\src\cli\export.js:37:49)
16
- at dbml2sql (C:\Users\Inspiron101\Desktop\Holistics\dbml\packages\dbml-cli\src\cli\index.js:19:3)
17
- at Object.<anonymous> (C:\Users\Inspiron101\Desktop\Holistics\dbml\packages\dbml-cli\__test__\dbml2sql_bin.js:5:1)
18
- at Module._compile (internal/modules/cjs/loader.js:1085:14)
19
- at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
20
- at Module.load (internal/modules/cjs/loader.js:950:32)
21
- at Function.Module._load (internal/modules/cjs/loader.js:790:14)
22
- at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:76:12)
23
- at internal/main/run_main_module.js:17:47
24
-
@@ -1,6 +1,6 @@
1
1
  -- SQL dump generated using DBML (dbml.dbdiagram.io)
2
2
  -- Database: PostgreSQL
3
- -- Generated at: 2024-07-16T09:30:58.370Z
3
+ -- Generated at: 2024-08-11T02:27:54.808Z
4
4
 
5
5
  CREATE TYPE "orders_status" AS ENUM (
6
6
  'created',
File without changes
File without changes
File without changes
@@ -1,24 +0,0 @@
1
- 2021-07-13T12:37:47.900Z
2
- TypeError: Cannot read property 'tick' of undefined
3
- at exportHandler (C:\Users\Inspiron101\Desktop\Holistics\dbml\packages\dbml-cli\src\cli\export.js:37:56)
4
- at dbml2sql (C:\Users\Inspiron101\Desktop\Holistics\dbml\packages\dbml-cli\src\cli\index.js:19:3)
5
- at Object.<anonymous> (C:\Users\Inspiron101\Desktop\Holistics\dbml\packages\dbml-cli\__test__\dbml2sql_bin.js:5:1)
6
- at Module._compile (internal/modules/cjs/loader.js:1085:14)
7
- at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
8
- at Module.load (internal/modules/cjs/loader.js:950:32)
9
- at Function.Module._load (internal/modules/cjs/loader.js:790:14)
10
- at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:76:12)
11
- at internal/main/run_main_module.js:17:47
12
-
13
- 2021-07-13T12:58:26.936Z
14
- TypeError: Cannot read property 'tick' of undefined
15
- at exportHandler (C:\Users\Inspiron101\Desktop\Holistics\dbml\packages\dbml-cli\src\cli\export.js:37:49)
16
- at dbml2sql (C:\Users\Inspiron101\Desktop\Holistics\dbml\packages\dbml-cli\src\cli\index.js:19:3)
17
- at Object.<anonymous> (C:\Users\Inspiron101\Desktop\Holistics\dbml\packages\dbml-cli\__test__\dbml2sql_bin.js:5:1)
18
- at Module._compile (internal/modules/cjs/loader.js:1085:14)
19
- at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
20
- at Module.load (internal/modules/cjs/loader.js:950:32)
21
- at Function.Module._load (internal/modules/cjs/loader.js:790:14)
22
- at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:76:12)
23
- at internal/main/run_main_module.js:17:47
24
-
@@ -1,6 +1,6 @@
1
1
  -- SQL dump generated using DBML (dbml.dbdiagram.io)
2
2
  -- Database: MySQL
3
- -- Generated at: 2024-07-16T10:01:38.471Z
3
+ -- Generated at: 2024-08-11T02:27:56.421Z
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: 2024-07-16T09:31:00.732Z
3
+ -- Generated at: 2024-08-11T02:27:57.507Z
4
4
 
5
5
  CREATE TABLE "staff" (
6
6
  "id" int PRIMARY KEY,
@@ -1,24 +0,0 @@
1
- 2021-07-13T12:37:50.404Z
2
- TypeError: Cannot read property 'tick' of undefined
3
- at exportHandler (C:\Users\Inspiron101\Desktop\Holistics\dbml\packages\dbml-cli\src\cli\export.js:37:56)
4
- at dbml2sql (C:\Users\Inspiron101\Desktop\Holistics\dbml\packages\dbml-cli\src\cli\index.js:19:3)
5
- at Object.<anonymous> (C:\Users\Inspiron101\Desktop\Holistics\dbml\packages\dbml-cli\__test__\dbml2sql_bin.js:5:1)
6
- at Module._compile (internal/modules/cjs/loader.js:1085:14)
7
- at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
8
- at Module.load (internal/modules/cjs/loader.js:950:32)
9
- at Function.Module._load (internal/modules/cjs/loader.js:790:14)
10
- at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:76:12)
11
- at internal/main/run_main_module.js:17:47
12
-
13
- 2021-07-13T12:58:29.075Z
14
- TypeError: Cannot read property 'tick' of undefined
15
- at exportHandler (C:\Users\Inspiron101\Desktop\Holistics\dbml\packages\dbml-cli\src\cli\export.js:37:49)
16
- at dbml2sql (C:\Users\Inspiron101\Desktop\Holistics\dbml\packages\dbml-cli\src\cli\index.js:19:3)
17
- at Object.<anonymous> (C:\Users\Inspiron101\Desktop\Holistics\dbml\packages\dbml-cli\__test__\dbml2sql_bin.js:5:1)
18
- at Module._compile (internal/modules/cjs/loader.js:1085:14)
19
- at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
20
- at Module.load (internal/modules/cjs/loader.js:950:32)
21
- at Function.Module._load (internal/modules/cjs/loader.js:790:14)
22
- at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:76:12)
23
- at internal/main/run_main_module.js:17:47
24
-
@@ -1,6 +1,6 @@
1
1
  -- SQL dump generated using DBML (dbml.dbdiagram.io)
2
2
  -- Database: PostgreSQL
3
- -- Generated at: 2024-07-16T09:31:01.687Z
3
+ -- Generated at: 2024-08-11T02:27:58.615Z
4
4
 
5
5
  CREATE TABLE "staff" (
6
6
  "id" int PRIMARY KEY,
File without changes
@@ -1,24 +0,0 @@
1
- 2021-07-13T12:37:51.477Z
2
- TypeError: Cannot read property 'tick' of undefined
3
- at exportHandler (C:\Users\Inspiron101\Desktop\Holistics\dbml\packages\dbml-cli\src\cli\export.js:37:56)
4
- at dbml2sql (C:\Users\Inspiron101\Desktop\Holistics\dbml\packages\dbml-cli\src\cli\index.js:19:3)
5
- at Object.<anonymous> (C:\Users\Inspiron101\Desktop\Holistics\dbml\packages\dbml-cli\__test__\dbml2sql_bin.js:5:1)
6
- at Module._compile (internal/modules/cjs/loader.js:1085:14)
7
- at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
8
- at Module.load (internal/modules/cjs/loader.js:950:32)
9
- at Function.Module._load (internal/modules/cjs/loader.js:790:14)
10
- at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:76:12)
11
- at internal/main/run_main_module.js:17:47
12
-
13
- 2021-07-13T12:58:30.073Z
14
- TypeError: Cannot read property 'tick' of undefined
15
- at exportHandler (C:\Users\Inspiron101\Desktop\Holistics\dbml\packages\dbml-cli\src\cli\export.js:37:49)
16
- at dbml2sql (C:\Users\Inspiron101\Desktop\Holistics\dbml\packages\dbml-cli\src\cli\index.js:19:3)
17
- at Object.<anonymous> (C:\Users\Inspiron101\Desktop\Holistics\dbml\packages\dbml-cli\__test__\dbml2sql_bin.js:5:1)
18
- at Module._compile (internal/modules/cjs/loader.js:1085:14)
19
- at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
20
- at Module.load (internal/modules/cjs/loader.js:950:32)
21
- at Function.Module._load (internal/modules/cjs/loader.js:790:14)
22
- at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:76:12)
23
- at internal/main/run_main_module.js:17:47
24
-
@@ -1,6 +1,6 @@
1
1
  -- SQL dump generated using DBML (dbml.dbdiagram.io)
2
2
  -- Database: PostgreSQL
3
- -- Generated at: 2024-07-16T09:31:02.136Z
3
+ -- Generated at: 2024-08-11T02:27:59.155Z
4
4
 
5
5
  CREATE TABLE "staff" (
6
6
  "id" int PRIMARY KEY,
File without changes