@dbml/cli 5.1.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.
- package/.babelrc +2 -2
- package/{__test__ → __tests__}/cli.test.js +3 -4
- package/__tests__/db2dbml/mssql/dbml-error.log +44 -0
- package/{__test__ → __tests__}/db2dbml/mssql/expect-out-files/schema.dbml +7 -0
- package/{__test__ → __tests__}/db2dbml/mssql/schema.sql +11 -0
- package/__tests__/db2dbml/mysql/dbml-error.log +12 -0
- package/{__test__ → __tests__}/db2dbml/mysql/expect-out-files/schema.dbml +12 -0
- package/{__test__ → __tests__}/db2dbml/mysql/schema.sql +9 -0
- package/__tests__/db2dbml/oracle/dbml-error.log +91 -0
- package/__tests__/db2dbml/oracle/expect-out-files/schema.dbml +419 -0
- package/__tests__/db2dbml/oracle/options.json +8 -0
- package/__tests__/db2dbml/oracle/out-files/schema.dbml +419 -0
- package/__tests__/db2dbml/oracle/schema.sql +529 -0
- package/__tests__/db2dbml/postgres/dbml-error.log +28 -0
- package/{__test__ → __tests__}/db2dbml/postgres/expect-out-files/schema.dbml +14 -2
- package/{__test__ → __tests__}/db2dbml/postgres/schema.sql +10 -0
- package/__tests__/db2dbml/postgres/stdout.txt +1 -0
- package/{__test__ → __tests__}/db2dbml_bin.js +0 -1
- package/__tests__/dbml2sql/filename --mysql --out-file/dbml-error.log +0 -0
- package/__tests__/dbml2sql/filename --mysql --out-file/out-files/schema.sql +65 -0
- package/__tests__/dbml2sql/filename --mysql stdout/dbml-error.log +0 -0
- package/__tests__/dbml2sql/filename --oracle --out-file/dbml-error.log +0 -0
- package/__tests__/dbml2sql/filename --oracle --out-file/out-files/schema.sql +61 -0
- package/__tests__/dbml2sql/filename --oracle stdout/dbml-error.log +0 -0
- package/__tests__/dbml2sql/filename --out-file/dbml-error.log +0 -0
- package/__tests__/dbml2sql/filename --out-file/out-files/schema.sql +77 -0
- package/__tests__/dbml2sql/filename --postgres --out-file/dbml-error.log +0 -0
- package/__tests__/dbml2sql/filename --postgres --out-file/out-files/schema.sql +77 -0
- package/__tests__/dbml2sql/filename --postgres stdout/dbml-error.log +0 -0
- package/__tests__/dbml2sql/filename stdout/dbml-error.log +0 -0
- package/__tests__/dbml2sql/filenames --mysql --out-file/dbml-error.log +0 -0
- package/__tests__/dbml2sql/filenames --mysql --out-file/out-files/schema.sql +172 -0
- package/__tests__/dbml2sql/filenames --mysql stdout/dbml-error.log +0 -0
- package/__tests__/dbml2sql/filenames --oracle --out-file/dbml-error.log +0 -0
- package/__tests__/dbml2sql/filenames --oracle --out-file/out-files/schema.sql +172 -0
- package/__tests__/dbml2sql/filenames --oracle stdout/dbml-error.log +0 -0
- package/__tests__/dbml2sql/filenames --out-file/dbml-error.log +0 -0
- package/__tests__/dbml2sql/filenames --out-file/out-files/schema.sql +172 -0
- package/__tests__/dbml2sql/filenames --postgres --out-file/dbml-error.log +0 -0
- package/__tests__/dbml2sql/filenames --postgres --out-file/out-files/schema.sql +172 -0
- package/__tests__/dbml2sql/filenames --postgres stdout/dbml-error.log +0 -0
- package/__tests__/dbml2sql/filenames stdout/dbml-error.log +0 -0
- package/__tests__/dbml2sql/multiple_schema_mssql/dbml-error.log +0 -0
- package/__tests__/dbml2sql/multiple_schema_mssql/out-files/multiple_schema.out.sql +62 -0
- package/__tests__/dbml2sql/multiple_schema_mysql/dbml-error.log +0 -0
- package/__tests__/dbml2sql/multiple_schema_mysql/out-files/multiple_schema.out.sql +50 -0
- package/__tests__/dbml2sql/multiple_schema_oracle/dbml-error.log +0 -0
- package/__tests__/dbml2sql/multiple_schema_oracle/out-files/multiple_schema.out.sql +88 -0
- package/__tests__/dbml2sql/multiple_schema_pg/dbml-error.log +0 -0
- package/__tests__/dbml2sql/multiple_schema_pg/out-files/multiple_schema.out.sql +67 -0
- package/__tests__/dbml2sql/syntax-error/dbml-error.log +15 -0
- package/{__test__ → __tests__}/dbml2sql_bin.js +0 -1
- package/__tests__/sql2dbml/custom-error-alter-table-column-not-found --oracle/dbml-error.log +51 -0
- package/__tests__/sql2dbml/custom-error-alter-table-column-not-found --oracle/in-files/schema.sql +6 -0
- package/__tests__/sql2dbml/custom-error-alter-table-column-not-found --oracle/options.json +8 -0
- package/__tests__/sql2dbml/custom-error-alter-table-column-not-found --oracle/out-files/schema.dbml +0 -0
- package/__tests__/sql2dbml/custom-error-alter-table-column-not-found --oracle/stdout.txt +4 -0
- package/__tests__/sql2dbml/custom-error-alter-table-table-not-found --oracle/dbml-error.log +51 -0
- package/__tests__/sql2dbml/custom-error-alter-table-table-not-found --oracle/in-files/schema.sql +2 -0
- package/__tests__/sql2dbml/custom-error-alter-table-table-not-found --oracle/options.json +8 -0
- package/__tests__/sql2dbml/custom-error-alter-table-table-not-found --oracle/out-files/schema.dbml +0 -0
- package/__tests__/sql2dbml/custom-error-alter-table-table-not-found --oracle/stdout.txt +4 -0
- package/__tests__/sql2dbml/custom-error-column-comment-column-not-found --oracle/dbml-error.log +51 -0
- package/__tests__/sql2dbml/custom-error-column-comment-column-not-found --oracle/in-files/schema.sql +6 -0
- package/__tests__/sql2dbml/custom-error-column-comment-column-not-found --oracle/options.json +8 -0
- package/__tests__/sql2dbml/custom-error-column-comment-column-not-found --oracle/out-files/schema.dbml +0 -0
- package/__tests__/sql2dbml/custom-error-column-comment-column-not-found --oracle/stdout.txt +4 -0
- package/__tests__/sql2dbml/custom-error-column-comment-table-not-found --oracle/dbml-error.log +51 -0
- package/__tests__/sql2dbml/custom-error-column-comment-table-not-found --oracle/in-files/schema.sql +5 -0
- package/__tests__/sql2dbml/custom-error-column-comment-table-not-found --oracle/options.json +8 -0
- package/__tests__/sql2dbml/custom-error-column-comment-table-not-found --oracle/out-files/schema.dbml +0 -0
- package/__tests__/sql2dbml/custom-error-column-comment-table-not-found --oracle/stdout.txt +4 -0
- package/__tests__/sql2dbml/custom-error-create-index-table-not-found --oracle/dbml-error.log +51 -0
- package/__tests__/sql2dbml/custom-error-create-index-table-not-found --oracle/in-files/schema.sql +1 -0
- package/__tests__/sql2dbml/custom-error-create-index-table-not-found --oracle/options.json +8 -0
- package/__tests__/sql2dbml/custom-error-create-index-table-not-found --oracle/out-files/schema.dbml +0 -0
- package/__tests__/sql2dbml/custom-error-create-index-table-not-found --oracle/stdout.txt +4 -0
- package/__tests__/sql2dbml/custom-error-table-comment-table-not-found --oracle/dbml-error.log +27 -0
- package/__tests__/sql2dbml/custom-error-table-comment-table-not-found --oracle/in-files/schema.sql +5 -0
- package/__tests__/sql2dbml/custom-error-table-comment-table-not-found --oracle/options.json +8 -0
- package/__tests__/sql2dbml/custom-error-table-comment-table-not-found --oracle/out-files/schema.dbml +0 -0
- package/__tests__/sql2dbml/custom-error-table-comment-table-not-found --oracle/stdout.txt +4 -0
- package/__tests__/sql2dbml/filename --mssql --out-file/dbml-error.log +0 -0
- package/__tests__/sql2dbml/filename --mssql --out-file/out-files/schema.dbml +25 -0
- package/__tests__/sql2dbml/filename --mysql --out-file/dbml-error.log +0 -0
- package/__tests__/sql2dbml/filename --mysql --out-file/out-files/schema.dbml +74 -0
- package/__tests__/sql2dbml/filename --mysql stdout/dbml-error.log +0 -0
- package/__tests__/sql2dbml/filename --oracle --out-file/dbml-error.log +0 -0
- package/__tests__/sql2dbml/filename --oracle --out-file/expect-out-files/schema.dbml +83 -0
- package/__tests__/sql2dbml/filename --oracle --out-file/in-files/schema.sql +147 -0
- package/__tests__/sql2dbml/filename --oracle --out-file/options.json +8 -0
- package/__tests__/sql2dbml/filename --oracle --out-file/out-files/schema.dbml +83 -0
- package/__tests__/sql2dbml/filename --oracle --out-file/stdout.txt +1 -0
- package/__tests__/sql2dbml/filename --out-file/dbml-error.log +0 -0
- package/__tests__/sql2dbml/filename --postgres --out-file/dbml-error.log +0 -0
- package/__tests__/sql2dbml/filename --postgres --out-file/expect-out-files/schema.dbml +74 -0
- package/__tests__/sql2dbml/filename --postgres --out-file/out-files/schema.dbml +74 -0
- package/__tests__/sql2dbml/filename --postgres stdout/dbml-error.log +0 -0
- package/__tests__/sql2dbml/filename --snowflake stdout/dbml-error.log +0 -0
- package/__tests__/sql2dbml/filename stdout/dbml-error.log +0 -0
- package/__tests__/sql2dbml/filenames --mysql --out-file/dbml-error.log +0 -0
- package/__tests__/sql2dbml/filenames --mysql --out-file/out-files/schema.dbml +170 -0
- package/__tests__/sql2dbml/filenames --mysql stdout/dbml-error.log +0 -0
- package/__tests__/sql2dbml/filenames --out-file/dbml-error.log +0 -0
- package/__tests__/sql2dbml/filenames --postgres --out-file/dbml-error.log +0 -0
- package/__tests__/sql2dbml/filenames --postgres --out-file/expect-out-files/schema.dbml +170 -0
- package/__tests__/sql2dbml/filenames --postgres --out-file/out-files/schema.dbml +170 -0
- package/__tests__/sql2dbml/filenames --postgres stdout/dbml-error.log +0 -0
- package/__tests__/sql2dbml/filenames stdout/dbml-error.log +0 -0
- package/__tests__/sql2dbml/multiple_schema_mssql/dbml-error.log +0 -0
- package/__tests__/sql2dbml/multiple_schema_mssql/out-files/multiple_schema.out.dbml +58 -0
- package/__tests__/sql2dbml/multiple_schema_mysql/dbml-error.log +0 -0
- package/__tests__/sql2dbml/multiple_schema_mysql/out-files/multiple_schema.out.dbml +136 -0
- package/__tests__/sql2dbml/multiple_schema_pg/dbml-error.log +0 -0
- package/__tests__/sql2dbml/multiple_schema_pg/out-files/multiple_schema.out.dbml +101 -0
- package/__tests__/sql2dbml/syntax-error/dbml-error.log +51 -0
- package/__tests__/sql2dbml/syntax-error-duplicate-endpoints --mssql/dbml-error.log +51 -0
- package/__tests__/sql2dbml/syntax-error-duplicate-endpoints --mysql/dbml-error.log +51 -0
- package/{__test__ → __tests__}/sql2dbml_bin.js +0 -1
- package/bin/db2dbml.js +0 -1
- package/bin/dbml2sql.js +0 -1
- package/bin/sql2dbml.js +0 -1
- package/eslint.config.ts +96 -0
- package/jest.config.ts +13 -0
- package/lib/cli/index.js +2 -3
- package/lib/cli/utils.js +9 -7
- package/lib/helpers/logger.js +0 -2
- package/package.json +17 -14
- package/src/cli/index.js +2 -1
- package/src/cli/utils.js +6 -2
- package/src/helpers/logger.js +0 -1
- package/tsconfig.json +13 -5
- /package/{__test__ → __tests__}/db2dbml/mssql/options.json +0 -0
- /package/{__test__ → __tests__}/db2dbml/mssql/stdout.txt +0 -0
- /package/{__test__ → __tests__}/db2dbml/mysql/options.json +0 -0
- /package/{__test__ → __tests__}/db2dbml/mysql/stdout.txt +0 -0
- /package/{__test__/db2dbml/postgres → __tests__/db2dbml/oracle}/stdout.txt +0 -0
- /package/{__test__ → __tests__}/db2dbml/postgres/options.json +0 -0
- /package/{__test__ → __tests__}/dbml2sql/filename --mysql --out-file/expect-out-files/schema.sql +0 -0
- /package/{__test__ → __tests__}/dbml2sql/filename --mysql --out-file/in-files/schema.dbml +0 -0
- /package/{__test__ → __tests__}/dbml2sql/filename --mysql --out-file/options.json +0 -0
- /package/{__test__ → __tests__}/dbml2sql/filename --mysql --out-file/stdout.txt +0 -0
- /package/{__test__ → __tests__}/dbml2sql/filename --mysql stdout/in-files/schema.dbml +0 -0
- /package/{__test__ → __tests__}/dbml2sql/filename --mysql stdout/options.json +0 -0
- /package/{__test__ → __tests__}/dbml2sql/filename --mysql stdout/stdout.txt +0 -0
- /package/{__test__ → __tests__}/dbml2sql/filename --oracle --out-file/expect-out-files/schema.sql +0 -0
- /package/{__test__ → __tests__}/dbml2sql/filename --oracle --out-file/in-files/schema.dbml +0 -0
- /package/{__test__ → __tests__}/dbml2sql/filename --oracle --out-file/options.json +0 -0
- /package/{__test__ → __tests__}/dbml2sql/filename --oracle --out-file/stdout.txt +0 -0
- /package/{__test__ → __tests__}/dbml2sql/filename --oracle stdout/in-files/schema.dbml +0 -0
- /package/{__test__ → __tests__}/dbml2sql/filename --oracle stdout/options.json +0 -0
- /package/{__test__ → __tests__}/dbml2sql/filename --oracle stdout/stdout.txt +0 -0
- /package/{__test__ → __tests__}/dbml2sql/filename --out-file/expect-out-files/schema.sql +0 -0
- /package/{__test__ → __tests__}/dbml2sql/filename --out-file/in-files/schema.dbml +0 -0
- /package/{__test__ → __tests__}/dbml2sql/filename --out-file/options.json +0 -0
- /package/{__test__ → __tests__}/dbml2sql/filename --out-file/stdout.txt +0 -0
- /package/{__test__ → __tests__}/dbml2sql/filename --postgres --out-file/expect-out-files/schema.sql +0 -0
- /package/{__test__ → __tests__}/dbml2sql/filename --postgres --out-file/in-files/schema.dbml +0 -0
- /package/{__test__ → __tests__}/dbml2sql/filename --postgres --out-file/options.json +0 -0
- /package/{__test__ → __tests__}/dbml2sql/filename --postgres --out-file/stdout.txt +0 -0
- /package/{__test__ → __tests__}/dbml2sql/filename --postgres stdout/in-files/schema.dbml +0 -0
- /package/{__test__ → __tests__}/dbml2sql/filename --postgres stdout/options.json +0 -0
- /package/{__test__ → __tests__}/dbml2sql/filename --postgres stdout/stdout.txt +0 -0
- /package/{__test__ → __tests__}/dbml2sql/filename stdout/in-files/schema.dbml +0 -0
- /package/{__test__ → __tests__}/dbml2sql/filename stdout/options.json +0 -0
- /package/{__test__ → __tests__}/dbml2sql/filename stdout/stdout.txt +0 -0
- /package/{__test__ → __tests__}/dbml2sql/filenames --mysql --out-file/expect-out-files/schema.sql +0 -0
- /package/{__test__ → __tests__}/dbml2sql/filenames --mysql --out-file/in-files/business.dbml +0 -0
- /package/{__test__ → __tests__}/dbml2sql/filenames --mysql --out-file/in-files/customer.dbml +0 -0
- /package/{__test__ → __tests__}/dbml2sql/filenames --mysql --out-file/in-files/inventory.dbml +0 -0
- /package/{__test__ → __tests__}/dbml2sql/filenames --mysql --out-file/options.json +0 -0
- /package/{__test__ → __tests__}/dbml2sql/filenames --mysql --out-file/stdout.txt +0 -0
- /package/{__test__ → __tests__}/dbml2sql/filenames --mysql stdout/in-files/business.dbml +0 -0
- /package/{__test__ → __tests__}/dbml2sql/filenames --mysql stdout/in-files/customer.dbml +0 -0
- /package/{__test__ → __tests__}/dbml2sql/filenames --mysql stdout/in-files/inventory.dbml +0 -0
- /package/{__test__ → __tests__}/dbml2sql/filenames --mysql stdout/options.json +0 -0
- /package/{__test__ → __tests__}/dbml2sql/filenames --mysql stdout/stdout.txt +0 -0
- /package/{__test__ → __tests__}/dbml2sql/filenames --oracle --out-file/expect-out-files/schema.sql +0 -0
- /package/{__test__ → __tests__}/dbml2sql/filenames --oracle --out-file/in-files/business.dbml +0 -0
- /package/{__test__ → __tests__}/dbml2sql/filenames --oracle --out-file/in-files/customer.dbml +0 -0
- /package/{__test__ → __tests__}/dbml2sql/filenames --oracle --out-file/in-files/inventory.dbml +0 -0
- /package/{__test__ → __tests__}/dbml2sql/filenames --oracle --out-file/options.json +0 -0
- /package/{__test__ → __tests__}/dbml2sql/filenames --oracle --out-file/stdout.txt +0 -0
- /package/{__test__ → __tests__}/dbml2sql/filenames --oracle stdout/in-files/business.dbml +0 -0
- /package/{__test__ → __tests__}/dbml2sql/filenames --oracle stdout/in-files/customer.dbml +0 -0
- /package/{__test__ → __tests__}/dbml2sql/filenames --oracle stdout/in-files/inventory.dbml +0 -0
- /package/{__test__ → __tests__}/dbml2sql/filenames --oracle stdout/options.json +0 -0
- /package/{__test__ → __tests__}/dbml2sql/filenames --oracle stdout/stdout.txt +0 -0
- /package/{__test__ → __tests__}/dbml2sql/filenames --out-file/expect-out-files/schema.sql +0 -0
- /package/{__test__ → __tests__}/dbml2sql/filenames --out-file/in-files/business.dbml +0 -0
- /package/{__test__ → __tests__}/dbml2sql/filenames --out-file/in-files/customer.dbml +0 -0
- /package/{__test__ → __tests__}/dbml2sql/filenames --out-file/in-files/inventory.dbml +0 -0
- /package/{__test__ → __tests__}/dbml2sql/filenames --out-file/options.json +0 -0
- /package/{__test__ → __tests__}/dbml2sql/filenames --out-file/stdout.txt +0 -0
- /package/{__test__ → __tests__}/dbml2sql/filenames --postgres --out-file/expect-out-files/schema.sql +0 -0
- /package/{__test__ → __tests__}/dbml2sql/filenames --postgres --out-file/in-files/business.dbml +0 -0
- /package/{__test__ → __tests__}/dbml2sql/filenames --postgres --out-file/in-files/customer.dbml +0 -0
- /package/{__test__ → __tests__}/dbml2sql/filenames --postgres --out-file/in-files/inventory.dbml +0 -0
- /package/{__test__ → __tests__}/dbml2sql/filenames --postgres --out-file/options.json +0 -0
- /package/{__test__ → __tests__}/dbml2sql/filenames --postgres --out-file/stdout.txt +0 -0
- /package/{__test__ → __tests__}/dbml2sql/filenames --postgres stdout/in-files/business.dbml +0 -0
- /package/{__test__ → __tests__}/dbml2sql/filenames --postgres stdout/in-files/customer.dbml +0 -0
- /package/{__test__ → __tests__}/dbml2sql/filenames --postgres stdout/in-files/inventory.dbml +0 -0
- /package/{__test__ → __tests__}/dbml2sql/filenames --postgres stdout/options.json +0 -0
- /package/{__test__ → __tests__}/dbml2sql/filenames --postgres stdout/stdout.txt +0 -0
- /package/{__test__ → __tests__}/dbml2sql/filenames stdout/in-files/business.dbml +0 -0
- /package/{__test__ → __tests__}/dbml2sql/filenames stdout/in-files/customer.dbml +0 -0
- /package/{__test__ → __tests__}/dbml2sql/filenames stdout/in-files/inventory.dbml +0 -0
- /package/{__test__ → __tests__}/dbml2sql/filenames stdout/options.json +0 -0
- /package/{__test__ → __tests__}/dbml2sql/filenames stdout/stdout.txt +0 -0
- /package/{__test__ → __tests__}/dbml2sql/multiple_schema_mssql/expect-out-files/multiple_schema.out.sql +0 -0
- /package/{__test__ → __tests__}/dbml2sql/multiple_schema_mssql/in-files/multiple_schema.in.dbml +0 -0
- /package/{__test__ → __tests__}/dbml2sql/multiple_schema_mssql/options.json +0 -0
- /package/{__test__ → __tests__}/dbml2sql/multiple_schema_mssql/stdout.txt +0 -0
- /package/{__test__ → __tests__}/dbml2sql/multiple_schema_mysql/expect-out-files/multiple_schema.out.sql +0 -0
- /package/{__test__ → __tests__}/dbml2sql/multiple_schema_mysql/in-files/multiple_schema.in.dbml +0 -0
- /package/{__test__ → __tests__}/dbml2sql/multiple_schema_mysql/options.json +0 -0
- /package/{__test__ → __tests__}/dbml2sql/multiple_schema_mysql/stdout.txt +0 -0
- /package/{__test__ → __tests__}/dbml2sql/multiple_schema_oracle/expect-out-files/multiple_schema.out.sql +0 -0
- /package/{__test__ → __tests__}/dbml2sql/multiple_schema_oracle/in-files/multiple_schema.in.dbml +0 -0
- /package/{__test__ → __tests__}/dbml2sql/multiple_schema_oracle/options.json +0 -0
- /package/{__test__ → __tests__}/dbml2sql/multiple_schema_oracle/stdout.txt +0 -0
- /package/{__test__ → __tests__}/dbml2sql/multiple_schema_pg/expect-out-files/multiple_schema.out.sql +0 -0
- /package/{__test__ → __tests__}/dbml2sql/multiple_schema_pg/in-files/multiple_schema.in.dbml +0 -0
- /package/{__test__ → __tests__}/dbml2sql/multiple_schema_pg/options.json +0 -0
- /package/{__test__ → __tests__}/dbml2sql/multiple_schema_pg/stdout.txt +0 -0
- /package/{__test__ → __tests__}/dbml2sql/syntax-error/in-files/ecommerce.dbml +0 -0
- /package/{__test__ → __tests__}/dbml2sql/syntax-error/options.json +0 -0
- /package/{__test__ → __tests__}/dbml2sql/syntax-error/stdout.txt +0 -0
- /package/{__test__ → __tests__}/sql2dbml/filename --mssql --out-file/expect-out-files/schema.dbml +0 -0
- /package/{__test__ → __tests__}/sql2dbml/filename --mssql --out-file/in-files/schema.sql +0 -0
- /package/{__test__ → __tests__}/sql2dbml/filename --mssql --out-file/options.json +0 -0
- /package/{__test__ → __tests__}/sql2dbml/filename --mssql --out-file/stdout.txt +0 -0
- /package/{__test__ → __tests__}/sql2dbml/filename --mysql --out-file/expect-out-files/schema.dbml +0 -0
- /package/{__test__ → __tests__}/sql2dbml/filename --mysql --out-file/in-files/schema.sql +0 -0
- /package/{__test__ → __tests__}/sql2dbml/filename --mysql --out-file/options.json +0 -0
- /package/{__test__ → __tests__}/sql2dbml/filename --mysql --out-file/stdout.txt +0 -0
- /package/{__test__ → __tests__}/sql2dbml/filename --mysql stdout/in-files/schema.sql +0 -0
- /package/{__test__ → __tests__}/sql2dbml/filename --mysql stdout/options.json +0 -0
- /package/{__test__ → __tests__}/sql2dbml/filename --mysql stdout/stdout.txt +0 -0
- /package/{__test__ → __tests__}/sql2dbml/filename --out-file/expect-out-files/schema.dbml +0 -0
- /package/{__test__ → __tests__}/sql2dbml/filename --out-file/in-files/schema.sql +0 -0
- /package/{__test__ → __tests__}/sql2dbml/filename --out-file/options.json +0 -0
- /package/{__test__/sql2dbml/filename --postgres --out-file/expect-out-files → __tests__/sql2dbml/filename --out-file/out-files}/schema.dbml +0 -0
- /package/{__test__ → __tests__}/sql2dbml/filename --out-file/stdout.txt +0 -0
- /package/{__test__ → __tests__}/sql2dbml/filename --postgres --out-file/in-files/schema.sql +0 -0
- /package/{__test__ → __tests__}/sql2dbml/filename --postgres --out-file/options.json +0 -0
- /package/{__test__ → __tests__}/sql2dbml/filename --postgres --out-file/stdout.txt +0 -0
- /package/{__test__ → __tests__}/sql2dbml/filename --postgres stdout/in-files/schema.sql +0 -0
- /package/{__test__ → __tests__}/sql2dbml/filename --postgres stdout/options.json +0 -0
- /package/{__test__ → __tests__}/sql2dbml/filename --postgres stdout/stdout.txt +0 -0
- /package/{__test__ → __tests__}/sql2dbml/filename --snowflake stdout/in-files/schema.sql +0 -0
- /package/{__test__ → __tests__}/sql2dbml/filename --snowflake stdout/options.json +0 -0
- /package/{__test__ → __tests__}/sql2dbml/filename --snowflake stdout/stdout.txt +0 -0
- /package/{__test__ → __tests__}/sql2dbml/filename stdout/in-files/schema.sql +0 -0
- /package/{__test__ → __tests__}/sql2dbml/filename stdout/options.json +0 -0
- /package/{__test__ → __tests__}/sql2dbml/filename stdout/stdout.txt +0 -0
- /package/{__test__ → __tests__}/sql2dbml/filenames --mysql --out-file/expect-out-files/schema.dbml +0 -0
- /package/{__test__ → __tests__}/sql2dbml/filenames --mysql --out-file/in-files/business.sql +0 -0
- /package/{__test__ → __tests__}/sql2dbml/filenames --mysql --out-file/in-files/customer.sql +0 -0
- /package/{__test__ → __tests__}/sql2dbml/filenames --mysql --out-file/in-files/inventory.sql +0 -0
- /package/{__test__ → __tests__}/sql2dbml/filenames --mysql --out-file/options.json +0 -0
- /package/{__test__ → __tests__}/sql2dbml/filenames --mysql --out-file/stdout.txt +0 -0
- /package/{__test__ → __tests__}/sql2dbml/filenames --mysql stdout/in-files/business.sql +0 -0
- /package/{__test__ → __tests__}/sql2dbml/filenames --mysql stdout/in-files/customer.sql +0 -0
- /package/{__test__ → __tests__}/sql2dbml/filenames --mysql stdout/in-files/inventory.sql +0 -0
- /package/{__test__ → __tests__}/sql2dbml/filenames --mysql stdout/options.json +0 -0
- /package/{__test__ → __tests__}/sql2dbml/filenames --mysql stdout/stdout.txt +0 -0
- /package/{__test__ → __tests__}/sql2dbml/filenames --out-file/expect-out-files/schema.dbml +0 -0
- /package/{__test__ → __tests__}/sql2dbml/filenames --out-file/in-files/business.sql +0 -0
- /package/{__test__ → __tests__}/sql2dbml/filenames --out-file/in-files/customer.sql +0 -0
- /package/{__test__ → __tests__}/sql2dbml/filenames --out-file/in-files/inventory.sql +0 -0
- /package/{__test__ → __tests__}/sql2dbml/filenames --out-file/options.json +0 -0
- /package/{__test__/sql2dbml/filenames --postgres --out-file/expect-out-files → __tests__/sql2dbml/filenames --out-file/out-files}/schema.dbml +0 -0
- /package/{__test__ → __tests__}/sql2dbml/filenames --out-file/stdout.txt +0 -0
- /package/{__test__ → __tests__}/sql2dbml/filenames --postgres --out-file/in-files/business.sql +0 -0
- /package/{__test__ → __tests__}/sql2dbml/filenames --postgres --out-file/in-files/customer.sql +0 -0
- /package/{__test__ → __tests__}/sql2dbml/filenames --postgres --out-file/in-files/inventory.sql +0 -0
- /package/{__test__ → __tests__}/sql2dbml/filenames --postgres --out-file/options.json +0 -0
- /package/{__test__ → __tests__}/sql2dbml/filenames --postgres --out-file/stdout.txt +0 -0
- /package/{__test__ → __tests__}/sql2dbml/filenames --postgres stdout/in-files/business.sql +0 -0
- /package/{__test__ → __tests__}/sql2dbml/filenames --postgres stdout/in-files/customer.sql +0 -0
- /package/{__test__ → __tests__}/sql2dbml/filenames --postgres stdout/in-files/inventory.sql +0 -0
- /package/{__test__ → __tests__}/sql2dbml/filenames --postgres stdout/options.json +0 -0
- /package/{__test__ → __tests__}/sql2dbml/filenames --postgres stdout/stdout.txt +0 -0
- /package/{__test__ → __tests__}/sql2dbml/filenames stdout/in-files/business.sql +0 -0
- /package/{__test__ → __tests__}/sql2dbml/filenames stdout/in-files/customer.sql +0 -0
- /package/{__test__ → __tests__}/sql2dbml/filenames stdout/in-files/inventory.sql +0 -0
- /package/{__test__ → __tests__}/sql2dbml/filenames stdout/options.json +0 -0
- /package/{__test__ → __tests__}/sql2dbml/filenames stdout/stdout.txt +0 -0
- /package/{__test__ → __tests__}/sql2dbml/multiple_schema_mssql/expect-out-files/multiple_schema.out.dbml +0 -0
- /package/{__test__ → __tests__}/sql2dbml/multiple_schema_mssql/in-files/multiple_schema.in.sql +0 -0
- /package/{__test__ → __tests__}/sql2dbml/multiple_schema_mssql/options.json +0 -0
- /package/{__test__ → __tests__}/sql2dbml/multiple_schema_mssql/stdout.txt +0 -0
- /package/{__test__ → __tests__}/sql2dbml/multiple_schema_mysql/expect-out-files/multiple_schema.out.dbml +0 -0
- /package/{__test__ → __tests__}/sql2dbml/multiple_schema_mysql/in-files/multiple_schema.in.sql +0 -0
- /package/{__test__ → __tests__}/sql2dbml/multiple_schema_mysql/options.json +0 -0
- /package/{__test__ → __tests__}/sql2dbml/multiple_schema_mysql/stdout.txt +0 -0
- /package/{__test__ → __tests__}/sql2dbml/multiple_schema_pg/expect-out-files/multiple_schema.out.dbml +0 -0
- /package/{__test__ → __tests__}/sql2dbml/multiple_schema_pg/in-files/multiple_schema.in.sql +0 -0
- /package/{__test__ → __tests__}/sql2dbml/multiple_schema_pg/options.json +0 -0
- /package/{__test__ → __tests__}/sql2dbml/multiple_schema_pg/stdout.txt +0 -0
- /package/{__test__ → __tests__}/sql2dbml/syntax-error/in-files/business.sql +0 -0
- /package/{__test__ → __tests__}/sql2dbml/syntax-error/options.json +0 -0
- /package/{__test__ → __tests__}/sql2dbml/syntax-error/stdout.txt +0 -0
- /package/{__test__ → __tests__}/sql2dbml/syntax-error-duplicate-endpoints --mssql/in-files/schema.sql +0 -0
- /package/{__test__ → __tests__}/sql2dbml/syntax-error-duplicate-endpoints --mssql/options.json +0 -0
- /package/{__test__ → __tests__}/sql2dbml/syntax-error-duplicate-endpoints --mssql/stdout.txt +0 -0
- /package/{__test__ → __tests__}/sql2dbml/syntax-error-duplicate-endpoints --mysql/in-files/schema.sql +0 -0
- /package/{__test__ → __tests__}/sql2dbml/syntax-error-duplicate-endpoints --mysql/options.json +0 -0
- /package/{__test__ → __tests__}/sql2dbml/syntax-error-duplicate-endpoints --mysql/stdout.txt +0 -0
package/.babelrc
CHANGED
|
@@ -23,8 +23,8 @@ describe('@dbml/cli', () => {
|
|
|
23
23
|
const expectStdout = fs.readFileSync(path.join(dirName, './stdout.txt'), 'utf-8');
|
|
24
24
|
const actualStdout = stripAnsi(stdout);
|
|
25
25
|
|
|
26
|
-
// folder name contains `
|
|
27
|
-
if (path.basename(dirName).includes('
|
|
26
|
+
// folder name contains `error`
|
|
27
|
+
if (path.basename(dirName).includes('error')) {
|
|
28
28
|
expect(actualStdout).toContain(expectStdout);
|
|
29
29
|
} else {
|
|
30
30
|
expect(actualStdout).toBe(expectStdout);
|
|
@@ -42,7 +42,7 @@ describe('@dbml/cli', () => {
|
|
|
42
42
|
};
|
|
43
43
|
|
|
44
44
|
const timeout = 100000;
|
|
45
|
-
|
|
45
|
+
|
|
46
46
|
test.each(scanDirNames(__dirname, 'dbml2sql'))('dbml2sql/%s', async (dirName) => {
|
|
47
47
|
await runTest(path.join(__dirname, 'dbml2sql', dirName), '../bin/dbml2sql.js');
|
|
48
48
|
}, timeout);
|
|
@@ -54,5 +54,4 @@ describe('@dbml/cli', () => {
|
|
|
54
54
|
test.each(scanDirNames(__dirname, 'db2dbml'))('db2dbml/%s', async (dirName) => {
|
|
55
55
|
await runTest(path.join(__dirname, 'db2dbml', dirName), '../bin/db2dbml.js');
|
|
56
56
|
}, timeout);
|
|
57
|
-
/* eslint-enable */
|
|
58
57
|
});
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
2025-11-06T03:16:07.258Z
|
|
2
|
+
ConnectionError: Failed to connect to localhost:1433 - Could not connect (sequence)
|
|
3
|
+
at /home/huydna/projects/dbml-release/node_modules/mssql/lib/tedious/connection-pool.js:85:17
|
|
4
|
+
at Connection.onConnect (/home/huydna/projects/dbml-release/node_modules/tedious/lib/connection.js:849:9)
|
|
5
|
+
at Object.onceWrapper (node:events:633:26)
|
|
6
|
+
at Connection.emit (node:events:518:28)
|
|
7
|
+
at Connection.emit (/home/huydna/projects/dbml-release/node_modules/tedious/lib/connection.js:970:18)
|
|
8
|
+
at Connection.socketError (/home/huydna/projects/dbml-release/node_modules/tedious/lib/connection.js:1351:12)
|
|
9
|
+
at /home/huydna/projects/dbml-release/node_modules/tedious/lib/connection.js:1144:14
|
|
10
|
+
at process.processTicksAndRejections (node:internal/process/task_queues:85:11)
|
|
11
|
+
|
|
12
|
+
2025-11-18T08:13:09.020Z
|
|
13
|
+
ConnectionError: Failed to connect to localhost:1433 - Could not connect (sequence)
|
|
14
|
+
at /home/huydna/projects/dbml-release/node_modules/mssql/lib/tedious/connection-pool.js:85:17
|
|
15
|
+
at Connection.onConnect (/home/huydna/projects/dbml-release/node_modules/tedious/lib/connection.js:849:9)
|
|
16
|
+
at Object.onceWrapper (node:events:633:26)
|
|
17
|
+
at Connection.emit (node:events:518:28)
|
|
18
|
+
at Connection.emit (/home/huydna/projects/dbml-release/node_modules/tedious/lib/connection.js:970:18)
|
|
19
|
+
at Connection.socketError (/home/huydna/projects/dbml-release/node_modules/tedious/lib/connection.js:1351:12)
|
|
20
|
+
at /home/huydna/projects/dbml-release/node_modules/tedious/lib/connection.js:1144:14
|
|
21
|
+
at process.processTicksAndRejections (node:internal/process/task_queues:85:11)
|
|
22
|
+
|
|
23
|
+
2025-11-18T09:04:32.232Z
|
|
24
|
+
ConnectionError: Failed to connect to localhost:1433 - Could not connect (sequence)
|
|
25
|
+
at /home/huydna/projects/dbml-release/node_modules/mssql/lib/tedious/connection-pool.js:85:17
|
|
26
|
+
at Connection.onConnect (/home/huydna/projects/dbml-release/node_modules/tedious/lib/connection.js:849:9)
|
|
27
|
+
at Object.onceWrapper (node:events:633:26)
|
|
28
|
+
at Connection.emit (node:events:518:28)
|
|
29
|
+
at Connection.emit (/home/huydna/projects/dbml-release/node_modules/tedious/lib/connection.js:970:18)
|
|
30
|
+
at Connection.socketError (/home/huydna/projects/dbml-release/node_modules/tedious/lib/connection.js:1351:12)
|
|
31
|
+
at /home/huydna/projects/dbml-release/node_modules/tedious/lib/connection.js:1144:14
|
|
32
|
+
at process.processTicksAndRejections (node:internal/process/task_queues:85:11)
|
|
33
|
+
|
|
34
|
+
2025-11-27T14:15:13.126Z
|
|
35
|
+
ConnectionError: Failed to connect to localhost:1433 - Could not connect (sequence)
|
|
36
|
+
at /home/huydna/projects/dbml-release/node_modules/mssql/lib/tedious/connection-pool.js:85:17
|
|
37
|
+
at Connection.onConnect (/home/huydna/projects/dbml-release/node_modules/tedious/lib/connection.js:849:9)
|
|
38
|
+
at Object.onceWrapper (node:events:633:26)
|
|
39
|
+
at Connection.emit (node:events:518:28)
|
|
40
|
+
at Connection.emit (/home/huydna/projects/dbml-release/node_modules/tedious/lib/connection.js:970:18)
|
|
41
|
+
at Connection.socketError (/home/huydna/projects/dbml-release/node_modules/tedious/lib/connection.js:1351:12)
|
|
42
|
+
at /home/huydna/projects/dbml-release/node_modules/tedious/lib/connection.js:1144:14
|
|
43
|
+
at process.processTicksAndRejections (node:internal/process/task_queues:85:11)
|
|
44
|
+
|
|
@@ -167,6 +167,13 @@ Table "dbo"."table_with_comments" {
|
|
|
167
167
|
Note: 'This table stores information about various items.'
|
|
168
168
|
}
|
|
169
169
|
|
|
170
|
+
Table "dbo"."table_with_composite_primary_and_unique_indexes" {
|
|
171
|
+
"col1" int(10) [pk, not null]
|
|
172
|
+
"col2" int(10) [pk, not null]
|
|
173
|
+
"col3" int(10) [unique]
|
|
174
|
+
"col4" int(10) [unique]
|
|
175
|
+
}
|
|
176
|
+
|
|
170
177
|
Table "dbo"."Authors" {
|
|
171
178
|
"AuthorID" int(10) [pk, not null]
|
|
172
179
|
"NationalityID" int(10) [pk, not null]
|
|
@@ -230,6 +230,17 @@ CREATE TABLE table_with_comments (
|
|
|
230
230
|
);
|
|
231
231
|
GO
|
|
232
232
|
|
|
233
|
+
-- Composite primary and unique indexes
|
|
234
|
+
CREATE TABLE table_with_composite_primary_and_unique_indexes (
|
|
235
|
+
col1 INT,
|
|
236
|
+
col2 INT,
|
|
237
|
+
col3 INT,
|
|
238
|
+
col4 INT,
|
|
239
|
+
PRIMARY KEY (col1, col2),
|
|
240
|
+
UNIQUE (col3, col4)
|
|
241
|
+
);
|
|
242
|
+
GO
|
|
243
|
+
|
|
233
244
|
-- Add comments
|
|
234
245
|
EXEC sys.sp_addextendedproperty
|
|
235
246
|
@name=N'MS_Description',
|
|
@@ -162,6 +162,18 @@ Table "status_example_2" {
|
|
|
162
162
|
"s8" status_example_2_s8_enum [default: '0']
|
|
163
163
|
}
|
|
164
164
|
|
|
165
|
+
Table "table_with_composite_primary_and_unique_indexes" {
|
|
166
|
+
"col1" int [not null]
|
|
167
|
+
"col2" int [not null]
|
|
168
|
+
"col3" int
|
|
169
|
+
"col4" int
|
|
170
|
+
|
|
171
|
+
Indexes {
|
|
172
|
+
(col3, col4) [unique, name: "col3"]
|
|
173
|
+
(col1, col2) [pk, name: "PRIMARY"]
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
|
|
165
177
|
Table "users" {
|
|
166
178
|
"user_id" "int unsigned" [pk, not null, increment]
|
|
167
179
|
"username" varchar(50) [unique, not null]
|
|
@@ -145,3 +145,12 @@ create table date_time_example (
|
|
|
145
145
|
on_update_1 datetime default now() on update now(),
|
|
146
146
|
on_update_2 datetime default now() on update localtime()
|
|
147
147
|
);
|
|
148
|
+
|
|
149
|
+
create table table_with_composite_primary_and_unique_indexes (
|
|
150
|
+
col1 int,
|
|
151
|
+
col2 int,
|
|
152
|
+
col3 int,
|
|
153
|
+
col4 int,
|
|
154
|
+
primary key (col1, col2),
|
|
155
|
+
unique (col3, col4)
|
|
156
|
+
);
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
2025-11-27T14:05:33.031Z
|
|
2
|
+
Error: Unsupported database type: unknown
|
|
3
|
+
at Object.fetchSchemaJson (/home/huydna/projects/dbml-release/packages/dbml-connector/dist/connectors/connector.js:22:19)
|
|
4
|
+
at connectionHandler (/home/huydna/projects/dbml-release/packages/dbml-cli/lib/cli/connector.js:24:51)
|
|
5
|
+
at Object.db2dbml (/home/huydna/projects/dbml-release/packages/dbml-cli/lib/cli/index.js:74:26)
|
|
6
|
+
at Object.<anonymous> (/home/huydna/projects/dbml-release/packages/dbml-cli/bin/db2dbml.js:3:19)
|
|
7
|
+
at Module._compile (node:internal/modules/cjs/loader:1554:14)
|
|
8
|
+
at Object..js (node:internal/modules/cjs/loader:1706:10)
|
|
9
|
+
at Module.load (node:internal/modules/cjs/loader:1289:32)
|
|
10
|
+
at Function._load (node:internal/modules/cjs/loader:1108:12)
|
|
11
|
+
at TracingChannel.traceSync (node:diagnostics_channel:322:14)
|
|
12
|
+
at wrapModuleLoad (node:internal/modules/cjs/loader:220:24)
|
|
13
|
+
|
|
14
|
+
2025-11-27T14:06:21.924Z
|
|
15
|
+
Error: Unsupported database type: unknown
|
|
16
|
+
at Object.fetchSchemaJson (/home/huydna/projects/dbml-release/packages/dbml-connector/dist/connectors/connector.js:22:19)
|
|
17
|
+
at connectionHandler (/home/huydna/projects/dbml-release/packages/dbml-cli/lib/cli/connector.js:24:51)
|
|
18
|
+
at Object.db2dbml (/home/huydna/projects/dbml-release/packages/dbml-cli/lib/cli/index.js:74:26)
|
|
19
|
+
at Object.<anonymous> (/home/huydna/projects/dbml-release/packages/dbml-cli/bin/db2dbml.js:3:19)
|
|
20
|
+
at Module._compile (node:internal/modules/cjs/loader:1554:14)
|
|
21
|
+
at Object..js (node:internal/modules/cjs/loader:1706:10)
|
|
22
|
+
at Module.load (node:internal/modules/cjs/loader:1289:32)
|
|
23
|
+
at Function._load (node:internal/modules/cjs/loader:1108:12)
|
|
24
|
+
at TracingChannel.traceSync (node:diagnostics_channel:322:14)
|
|
25
|
+
at wrapModuleLoad (node:internal/modules/cjs/loader:220:24)
|
|
26
|
+
|
|
27
|
+
2025-11-27T14:09:49.916Z
|
|
28
|
+
Error: Unsupported database type: unknown
|
|
29
|
+
at Object.fetchSchemaJson (/home/huydna/projects/dbml-release/packages/dbml-connector/dist/connectors/connector.js:25:19)
|
|
30
|
+
at connectionHandler (/home/huydna/projects/dbml-release/packages/dbml-cli/lib/cli/connector.js:24:51)
|
|
31
|
+
at Object.db2dbml (/home/huydna/projects/dbml-release/packages/dbml-cli/lib/cli/index.js:76:26)
|
|
32
|
+
at Object.<anonymous> (/home/huydna/projects/dbml-release/packages/dbml-cli/bin/db2dbml.js:3:19)
|
|
33
|
+
at Module._compile (node:internal/modules/cjs/loader:1554:14)
|
|
34
|
+
at Object..js (node:internal/modules/cjs/loader:1706:10)
|
|
35
|
+
at Module.load (node:internal/modules/cjs/loader:1289:32)
|
|
36
|
+
at Function._load (node:internal/modules/cjs/loader:1108:12)
|
|
37
|
+
at TracingChannel.traceSync (node:diagnostics_channel:322:14)
|
|
38
|
+
at wrapModuleLoad (node:internal/modules/cjs/loader:220:24)
|
|
39
|
+
|
|
40
|
+
2025-11-27T14:13:28.547Z
|
|
41
|
+
Error: Unsupported database type: unknown
|
|
42
|
+
at Object.fetchSchemaJson (/home/huydna/projects/dbml-release/packages/dbml-connector/dist/connectors/connector.js:25:19)
|
|
43
|
+
at connectionHandler (/home/huydna/projects/dbml-release/packages/dbml-cli/lib/cli/connector.js:25:51)
|
|
44
|
+
at Object.db2dbml (/home/huydna/projects/dbml-release/packages/dbml-cli/lib/cli/index.js:76:26)
|
|
45
|
+
at Object.<anonymous> (/home/huydna/projects/dbml-release/packages/dbml-cli/bin/db2dbml.js:3:19)
|
|
46
|
+
at Module._compile (node:internal/modules/cjs/loader:1554:14)
|
|
47
|
+
at Object..js (node:internal/modules/cjs/loader:1706:10)
|
|
48
|
+
at Module.load (node:internal/modules/cjs/loader:1289:32)
|
|
49
|
+
at Function._load (node:internal/modules/cjs/loader:1108:12)
|
|
50
|
+
at TracingChannel.traceSync (node:diagnostics_channel:322:14)
|
|
51
|
+
at wrapModuleLoad (node:internal/modules/cjs/loader:220:24)
|
|
52
|
+
|
|
53
|
+
2025-11-27T14:15:15.032Z
|
|
54
|
+
Error: Unsupported database type: unknown
|
|
55
|
+
at Object.fetchSchemaJson (/home/huydna/projects/dbml-release/packages/dbml-connector/dist/connectors/connector.js:25:19)
|
|
56
|
+
at connectionHandler (/home/huydna/projects/dbml-release/packages/dbml-cli/lib/cli/connector.js:25:51)
|
|
57
|
+
at Object.db2dbml (/home/huydna/projects/dbml-release/packages/dbml-cli/lib/cli/index.js:76:26)
|
|
58
|
+
at Object.<anonymous> (/home/huydna/projects/dbml-release/packages/dbml-cli/bin/db2dbml.js:3:19)
|
|
59
|
+
at Module._compile (node:internal/modules/cjs/loader:1554:14)
|
|
60
|
+
at Object..js (node:internal/modules/cjs/loader:1706:10)
|
|
61
|
+
at Module.load (node:internal/modules/cjs/loader:1289:32)
|
|
62
|
+
at Function._load (node:internal/modules/cjs/loader:1108:12)
|
|
63
|
+
at TracingChannel.traceSync (node:diagnostics_channel:322:14)
|
|
64
|
+
at wrapModuleLoad (node:internal/modules/cjs/loader:220:24)
|
|
65
|
+
|
|
66
|
+
2025-11-27T14:32:18.628Z
|
|
67
|
+
Error: Unsupported database type: unknown
|
|
68
|
+
at Object.fetchSchemaJson (/home/huydna/projects/dbml-release/packages/dbml-connector/dist/connectors/connector.js:25:19)
|
|
69
|
+
at connectionHandler (/home/huydna/projects/dbml-release/packages/dbml-cli/lib/cli/connector.js:25:51)
|
|
70
|
+
at Object.db2dbml (/home/huydna/projects/dbml-release/packages/dbml-cli/lib/cli/index.js:76:26)
|
|
71
|
+
at Object.<anonymous> (/home/huydna/projects/dbml-release/packages/dbml-cli/bin/db2dbml.js:3:19)
|
|
72
|
+
at Module._compile (node:internal/modules/cjs/loader:1554:14)
|
|
73
|
+
at Object..js (node:internal/modules/cjs/loader:1706:10)
|
|
74
|
+
at Module.load (node:internal/modules/cjs/loader:1289:32)
|
|
75
|
+
at Function._load (node:internal/modules/cjs/loader:1108:12)
|
|
76
|
+
at TracingChannel.traceSync (node:diagnostics_channel:322:14)
|
|
77
|
+
at wrapModuleLoad (node:internal/modules/cjs/loader:220:24)
|
|
78
|
+
|
|
79
|
+
2025-11-27T14:32:41.584Z
|
|
80
|
+
Error: Unsupported database type: unknown
|
|
81
|
+
at Object.fetchSchemaJson (/home/huydna/projects/dbml-release/packages/dbml-connector/dist/connectors/connector.js:25:19)
|
|
82
|
+
at connectionHandler (/home/huydna/projects/dbml-release/packages/dbml-cli/lib/cli/connector.js:25:51)
|
|
83
|
+
at Object.db2dbml (/home/huydna/projects/dbml-release/packages/dbml-cli/lib/cli/index.js:76:26)
|
|
84
|
+
at Object.<anonymous> (/home/huydna/projects/dbml-release/packages/dbml-cli/bin/db2dbml.js:3:19)
|
|
85
|
+
at Module._compile (node:internal/modules/cjs/loader:1554:14)
|
|
86
|
+
at Object..js (node:internal/modules/cjs/loader:1706:10)
|
|
87
|
+
at Module.load (node:internal/modules/cjs/loader:1289:32)
|
|
88
|
+
at Function._load (node:internal/modules/cjs/loader:1108:12)
|
|
89
|
+
at TracingChannel.traceSync (node:diagnostics_channel:322:14)
|
|
90
|
+
at wrapModuleLoad (node:internal/modules/cjs/loader:220:24)
|
|
91
|
+
|
|
@@ -0,0 +1,419 @@
|
|
|
1
|
+
Table "PK_SIMPLE" {
|
|
2
|
+
"ID" number [pk, not null, increment]
|
|
3
|
+
"NAME" varchar2(100) [not null]
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
Table "SELF_REF_FK" {
|
|
7
|
+
"ID" number [pk, not null, increment]
|
|
8
|
+
"PARENT_ID" number
|
|
9
|
+
"NAME" varchar2(100) [not null]
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
Table "FK_PARENT" {
|
|
13
|
+
"ID" number [pk, not null, increment]
|
|
14
|
+
"NAME" varchar2(100) [not null]
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
Table "FK_CHILD" {
|
|
18
|
+
"ID" number [pk, not null, increment]
|
|
19
|
+
"PARENT_ID" number [not null]
|
|
20
|
+
"DESCRIPTION" varchar2(200)
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
Table "CHECK_CONSTRAINTS" {
|
|
24
|
+
"ID" number [pk, not null, increment]
|
|
25
|
+
"AGE" number [not null, check: `age > 0`]
|
|
26
|
+
"SALARY" "number(10, 2)" [not null, check: `salary BETWEEN 0 AND 1000000`]
|
|
27
|
+
"STATUS" varchar2(20) [not null, check: `status IN ('active', 'inactive', 'pending')`]
|
|
28
|
+
"START_DATE" date
|
|
29
|
+
"END_DATE" date
|
|
30
|
+
|
|
31
|
+
Checks {
|
|
32
|
+
`start_date <= end_date` [name: 'CHK_DATE_RANGE']
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
Table "DEFAULT_VALUES" {
|
|
37
|
+
"ID" number [pk, not null, increment]
|
|
38
|
+
"STR_DEFAULT" varchar2(50) [default: 'default_string']
|
|
39
|
+
"NUM_DEFAULT" number [default: 42]
|
|
40
|
+
"DECIMAL_DEFAULT" "number(10, 2)" [default: 99.99]
|
|
41
|
+
"DATE_DEFAULT" date [default: `SYSDATE`]
|
|
42
|
+
"TIMESTAMP_DEFAULT" timestamp(6) [default: `SYSTIMESTAMP`]
|
|
43
|
+
"CHAR_DEFAULT" char(10) [default: 'fixed']
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
Table "NOT_NULL_COLS" {
|
|
47
|
+
"ID" number [pk, not null, increment]
|
|
48
|
+
"REQUIRED_STR" varchar2(100) [not null]
|
|
49
|
+
"REQUIRED_NUM" number [not null]
|
|
50
|
+
"REQUIRED_DATE" date [not null]
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
Table "NULLABLE_COLS" {
|
|
54
|
+
"ID" number [pk, not null, increment]
|
|
55
|
+
"OPTIONAL_STR" varchar2(100)
|
|
56
|
+
"OPTIONAL_NUM" number
|
|
57
|
+
"OPTIONAL_DATE" date
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
Table "AUTOINCREMENT_TABLE" {
|
|
61
|
+
"ID" number [pk, not null, increment]
|
|
62
|
+
"NAME" varchar2(100) [not null]
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
Table "UNIQUE_COLS" {
|
|
66
|
+
"ID" number [pk, not null, increment]
|
|
67
|
+
"EMAIL" varchar2(100) [unique, not null]
|
|
68
|
+
"USERNAME" varchar2(50) [unique, not null]
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
Table "COMPOSITE_PK" {
|
|
72
|
+
"REGION_ID" number [not null]
|
|
73
|
+
"PRODUCT_ID" number [not null]
|
|
74
|
+
"QUANTITY" number [default: 0]
|
|
75
|
+
"PRICE" "number(10, 2)"
|
|
76
|
+
|
|
77
|
+
Indexes {
|
|
78
|
+
(REGION_ID, PRODUCT_ID) [pk, unique, name: "PK_COMPOSITE"]
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
Table "COMPOSITE_SELF_REF" {
|
|
83
|
+
"DEPT_ID" number [not null]
|
|
84
|
+
"EMP_ID" number [not null]
|
|
85
|
+
"PARENT_DEPT_ID" number
|
|
86
|
+
"PARENT_EMP_ID" number
|
|
87
|
+
"NAME" varchar2(100) [not null]
|
|
88
|
+
|
|
89
|
+
Indexes {
|
|
90
|
+
(DEPT_ID, EMP_ID) [pk, unique, name: "PK_COMPOSITE_SELF_REF"]
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
Table "COMPOSITE_UNIQUE" {
|
|
95
|
+
"ID" number [pk, not null, increment]
|
|
96
|
+
"FIRST_NAME" varchar2(50) [not null]
|
|
97
|
+
"LAST_NAME" varchar2(50) [not null]
|
|
98
|
+
"EMAIL" varchar2(100)
|
|
99
|
+
|
|
100
|
+
Indexes {
|
|
101
|
+
(FIRST_NAME, LAST_NAME) [unique, name: "UQ_FULL_NAME"]
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
Table "FUNCTIONAL_INDEX_TABLE" {
|
|
106
|
+
"ID" number [pk, not null, increment]
|
|
107
|
+
"FULL_NAME" varchar2(100) [not null]
|
|
108
|
+
"EMAIL" varchar2(100) [not null]
|
|
109
|
+
|
|
110
|
+
Indexes {
|
|
111
|
+
`LOWER("FULL_NAME")` [type: btree, name: "IDX_LOWER_NAME"]
|
|
112
|
+
`UPPER("EMAIL")` [type: btree, name: "IDX_UPPER_EMAIL"]
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
Table "COMPOSITE_INDEX_TABLE" {
|
|
117
|
+
"ID" number [pk, not null, increment]
|
|
118
|
+
"FIRST_NAME" varchar2(50) [not null]
|
|
119
|
+
"LAST_NAME" varchar2(50) [not null]
|
|
120
|
+
"DEPARTMENT" varchar2(50)
|
|
121
|
+
|
|
122
|
+
Indexes {
|
|
123
|
+
(DEPARTMENT, LAST_NAME) [type: btree, name: "IDX_COMPOSITE_DEPT"]
|
|
124
|
+
(FIRST_NAME, LAST_NAME) [type: btree, name: "IDX_COMPOSITE_NAME"]
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
Table "MIXED_INDEX_TABLE" {
|
|
129
|
+
"ID" number [pk, not null, increment]
|
|
130
|
+
"FIRST_NAME" varchar2(50) [not null]
|
|
131
|
+
"LAST_NAME" varchar2(50) [not null]
|
|
132
|
+
"EMAIL" varchar2(100)
|
|
133
|
+
|
|
134
|
+
Indexes {
|
|
135
|
+
(FIRST_NAME, `UPPER("EMAIL")`) [type: btree, name: "IDX_MIXED_EMAIL"]
|
|
136
|
+
(`LOWER("FIRST_NAME")`, LAST_NAME) [type: btree, name: "IDX_MIXED_NAME"]
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
Table "COLUMN_INDEX_TABLE" {
|
|
141
|
+
"ID" number [pk, not null, increment]
|
|
142
|
+
"CATEGORY" varchar2(50)
|
|
143
|
+
"STATUS" varchar2(20)
|
|
144
|
+
"CREATED_AT" date [default: `SYSDATE
|
|
145
|
+
`]
|
|
146
|
+
|
|
147
|
+
Indexes {
|
|
148
|
+
CATEGORY [type: btree, name: "IDX_CATEGORY"]
|
|
149
|
+
CREATED_AT [type: btree, name: "IDX_CREATED_AT"]
|
|
150
|
+
STATUS [type: btree, name: "IDX_STATUS"]
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
Table "ALTER_ADD_PK" {
|
|
155
|
+
"ID" number [pk, not null]
|
|
156
|
+
"NAME" varchar2(100)
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
Table "ALTER_FK_PARENT" {
|
|
160
|
+
"ID" number [pk, not null, increment]
|
|
161
|
+
"NAME" varchar2(100)
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
Table "ALTER_FK_CHILD" {
|
|
165
|
+
"ID" number [pk, not null, increment]
|
|
166
|
+
"PARENT_ID" number
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
Table "ALTER_SELF_REF" {
|
|
170
|
+
"ID" number [pk, not null, increment]
|
|
171
|
+
"PARENT_ID" number
|
|
172
|
+
"NAME" varchar2(100)
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
Table "ALTER_ADD_CHECK" {
|
|
176
|
+
"ID" number [pk, not null, increment]
|
|
177
|
+
"AGE" number [check: `age >= 18`]
|
|
178
|
+
"SALARY" "number(10, 2)" [check: `salary > 0`]
|
|
179
|
+
"STATUS" varchar2(20) [check: `status IN ('A', 'B', 'C')`]
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
Table "ALTER_ADD_UNIQUE" {
|
|
183
|
+
"ID" number [pk, not null, increment]
|
|
184
|
+
"EMAIL" varchar2(100) [unique]
|
|
185
|
+
"CODE" varchar2(20) [unique]
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
Table "ALTER_COMPOSITE_PK" {
|
|
189
|
+
"REGION_ID" number [not null]
|
|
190
|
+
"PRODUCT_ID" number [not null]
|
|
191
|
+
"QUANTITY" number
|
|
192
|
+
|
|
193
|
+
Indexes {
|
|
194
|
+
(REGION_ID, PRODUCT_ID) [pk, unique, name: "PK_ALTER_COMPOSITE"]
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
Table "ALTER_COMPOSITE_FK_PARENT" {
|
|
199
|
+
"DEPT_ID" number [not null]
|
|
200
|
+
"EMP_ID" number [not null]
|
|
201
|
+
"NAME" varchar2(100)
|
|
202
|
+
|
|
203
|
+
Indexes {
|
|
204
|
+
(DEPT_ID, EMP_ID) [pk, unique, name: "PK_ALTER_COMP_PARENT"]
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
Table "ALTER_COMPOSITE_FK_CHILD" {
|
|
209
|
+
"ID" number [pk, not null, increment]
|
|
210
|
+
"REF_DEPT_ID" number
|
|
211
|
+
"REF_EMP_ID" number
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
Table "ALTER_COMPOSITE_UNIQUE" {
|
|
215
|
+
"ID" number [pk, not null, increment]
|
|
216
|
+
"FIRST_NAME" varchar2(50)
|
|
217
|
+
"LAST_NAME" varchar2(50)
|
|
218
|
+
|
|
219
|
+
Indexes {
|
|
220
|
+
(FIRST_NAME, LAST_NAME) [unique, name: "UQ_ALTER_FULLNAME"]
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
Table "ALTER_ADD_COLUMN" {
|
|
225
|
+
"ID" number [pk, not null, increment]
|
|
226
|
+
"NAME" varchar2(100)
|
|
227
|
+
"NEW_COL" varchar2(50)
|
|
228
|
+
"ANOTHER_COL" number [default: 0]
|
|
229
|
+
"DATE_COL" date [default: `SYSDATE`]
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
Table "IDX_BTREE_TABLE" {
|
|
233
|
+
"ID" number [pk, not null, increment]
|
|
234
|
+
"CODE" varchar2(20)
|
|
235
|
+
"CATEGORY" varchar2(50)
|
|
236
|
+
|
|
237
|
+
Indexes {
|
|
238
|
+
CODE [type: btree, name: "IDX_BTREE_CODE"]
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
Table "IDX_BITMAP_TABLE" {
|
|
243
|
+
"ID" number [pk, not null, increment]
|
|
244
|
+
"GENDER" varchar2(10)
|
|
245
|
+
"STATUS" varchar2(20)
|
|
246
|
+
|
|
247
|
+
Indexes {
|
|
248
|
+
GENDER [type: bitmap, name: "IDX_BITMAP_GENDER"]
|
|
249
|
+
STATUS [type: bitmap, name: "IDX_BITMAP_STATUS"]
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
Table "IDX_UNIQUE_TABLE" {
|
|
254
|
+
"ID" number [pk, not null, increment]
|
|
255
|
+
"EMAIL" varchar2(100)
|
|
256
|
+
"SSN" varchar2(20)
|
|
257
|
+
|
|
258
|
+
Indexes {
|
|
259
|
+
EMAIL [type: btree, unique, name: "IDX_UNIQUE_EMAIL"]
|
|
260
|
+
SSN [type: btree, unique, name: "IDX_UNIQUE_SSN"]
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
Table "IDX_COMPOSITE_ONLY" {
|
|
265
|
+
"ID" number [pk, not null, increment]
|
|
266
|
+
"COL1" varchar2(50)
|
|
267
|
+
"COL2" varchar2(50)
|
|
268
|
+
"COL3" varchar2(50)
|
|
269
|
+
|
|
270
|
+
Indexes {
|
|
271
|
+
(COL1, COL2) [type: btree, name: "IDX_COMP_12"]
|
|
272
|
+
(COL1, COL2, COL3) [type: btree, name: "IDX_COMP_123"]
|
|
273
|
+
(COL2, COL3) [type: btree, name: "IDX_COMP_23"]
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
Table "IDX_FUNCTIONAL_ONLY" {
|
|
278
|
+
"ID" number [pk, not null, increment]
|
|
279
|
+
"FULL_NAME" varchar2(100)
|
|
280
|
+
"DESCRIPTION" varchar2(500)
|
|
281
|
+
|
|
282
|
+
Indexes {
|
|
283
|
+
`LOWER("FULL_NAME")` [type: btree, name: "IDX_FUNC_LOWER_NAME"]
|
|
284
|
+
`SUBSTR("DESCRIPTION",1,100)` [type: btree, name: "IDX_FUNC_SUBSTR"]
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
Table "REF_SIMPLE_PARENT" {
|
|
289
|
+
"ID" number [pk, not null, increment]
|
|
290
|
+
"NAME" varchar2(100)
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
Table "REF_SIMPLE_CHILD" {
|
|
294
|
+
"ID" number [pk, not null, increment]
|
|
295
|
+
"PARENT_ID" number
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
Table "REF_COMPOSITE_PARENT" {
|
|
299
|
+
"KEY1" number [not null]
|
|
300
|
+
"KEY2" number [not null]
|
|
301
|
+
"DATA" varchar2(100)
|
|
302
|
+
|
|
303
|
+
Indexes {
|
|
304
|
+
(KEY1, KEY2) [pk, unique, name: "PK_REF_COMP_PARENT"]
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
Table "REF_COMPOSITE_CHILD" {
|
|
309
|
+
"ID" number [pk, not null, increment]
|
|
310
|
+
"FK1" number
|
|
311
|
+
"FK2" number
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
Table "ORACLE_DATA_TYPES" {
|
|
315
|
+
"ID" number [pk, not null, increment]
|
|
316
|
+
"CHAR_COL" char(10)
|
|
317
|
+
"VARCHAR2_COL" varchar2(100)
|
|
318
|
+
"NCHAR_COL" nchar(20)
|
|
319
|
+
"NVARCHAR2_COL" nvarchar2(200)
|
|
320
|
+
"NUMBER_COL" number
|
|
321
|
+
"NUMBER_PRECISION" "number(10, 0)"
|
|
322
|
+
"NUMBER_SCALE" "number(10, 2)"
|
|
323
|
+
"BINARY_FLOAT_COL" binary_float
|
|
324
|
+
"BINARY_DOUBLE_COL" binary_double
|
|
325
|
+
"DATE_COL" date
|
|
326
|
+
"TIMESTAMP_COL" timestamp(6)
|
|
327
|
+
"TIMESTAMP_TZ" "timestamp(6) with time zone"
|
|
328
|
+
"TIMESTAMP_LTZ" "timestamp(6) with local time zone"
|
|
329
|
+
"INTERVAL_YM" "interval year(2) to month"
|
|
330
|
+
"INTERVAL_DS" "interval day(2) to second(6)"
|
|
331
|
+
"CLOB_COL" clob
|
|
332
|
+
"NCLOB_COL" nclob
|
|
333
|
+
"BLOB_COL" blob
|
|
334
|
+
"RAW_COL" raw(100)
|
|
335
|
+
"ROWID_COL" rowid
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
Table "TABLE_WITH_COMMENTS" {
|
|
339
|
+
"ID" number [pk, not null, increment, note: '''Unique
|
|
340
|
+
identifier''']
|
|
341
|
+
"NAME" varchar2(100) [not null, note: '!@#$%^&*()[]"Item name - required field']
|
|
342
|
+
"DESCRIPTION" varchar2(500) [note: 'Optional description of the item']
|
|
343
|
+
Note: '''This table\'
|
|
344
|
+
stores items with descriptions'''
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
Table "ALTER_COMP_SELF_REF" {
|
|
348
|
+
"DEPT_ID" number [not null]
|
|
349
|
+
"EMP_ID" number [not null]
|
|
350
|
+
"PARENT_DEPT_ID" number
|
|
351
|
+
"PARENT_EMP_ID" number
|
|
352
|
+
"NAME" varchar2(100)
|
|
353
|
+
|
|
354
|
+
Indexes {
|
|
355
|
+
(DEPT_ID, EMP_ID) [pk, unique, name: "PK_ALTER_COMP_SELF"]
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
Table "SPECIAL_DATA_TYPES" {
|
|
360
|
+
"ID" number [pk, not null, increment]
|
|
361
|
+
"TS_DEFAULT" timestamp(6)
|
|
362
|
+
"TS_0" timestamp(0)
|
|
363
|
+
"TS_3" timestamp(3)
|
|
364
|
+
"TS_6" timestamp(6)
|
|
365
|
+
"TS_9" timestamp(9)
|
|
366
|
+
"TS_TZ_DEFAULT" "timestamp(6) with time zone"
|
|
367
|
+
"TS_TZ_0" "timestamp(0) with time zone"
|
|
368
|
+
"TS_TZ_3" "timestamp(3) with time zone"
|
|
369
|
+
"TS_TZ_6" "timestamp(6) with time zone"
|
|
370
|
+
"TS_TZ_9" "timestamp(9) with time zone"
|
|
371
|
+
"TS_LTZ_DEFAULT" "timestamp(6) with local time zone"
|
|
372
|
+
"TS_LTZ_0" "timestamp(0) with local time zone"
|
|
373
|
+
"TS_LTZ_3" "timestamp(3) with local time zone"
|
|
374
|
+
"TS_LTZ_6" "timestamp(6) with local time zone"
|
|
375
|
+
"TS_LTZ_9" "timestamp(9) with local time zone"
|
|
376
|
+
"IYM_DEFAULT" "interval year(2) to month"
|
|
377
|
+
"IYM_2" "interval year(2) to month"
|
|
378
|
+
"IYM_4" "interval year(4) to month"
|
|
379
|
+
"IYM_9" "interval year(9) to month"
|
|
380
|
+
"IDS_DEFAULT" "interval day(2) to second(6)"
|
|
381
|
+
"IDS_DAY_4" "interval day(4) to second(6)"
|
|
382
|
+
"IDS_SEC_3" "interval day(2) to second(3)"
|
|
383
|
+
"IDS_BOTH" "interval day(5) to second(4)"
|
|
384
|
+
"FLOAT_DEFAULT" float(126)
|
|
385
|
+
"FLOAT_1" float(1)
|
|
386
|
+
"FLOAT_63" float(63)
|
|
387
|
+
"FLOAT_126" float(126)
|
|
388
|
+
"NUM_DEFAULT" number
|
|
389
|
+
"NUM_P" "number(5, 0)"
|
|
390
|
+
"NUM_PS" "number(10, 2)"
|
|
391
|
+
"NUM_P_NEG_S" "number(10, -2)"
|
|
392
|
+
"CHAR_DEFAULT" char(1)
|
|
393
|
+
"CHAR_SIZED" char(50)
|
|
394
|
+
"VARCHAR2_SIZED" varchar2(255)
|
|
395
|
+
"NCHAR_DEFAULT" nchar(2)
|
|
396
|
+
"NCHAR_SIZED" nchar(100)
|
|
397
|
+
"NVARCHAR2_SIZED" nvarchar2(510)
|
|
398
|
+
"RAW_SIZED" raw(200)
|
|
399
|
+
"UROWID_DEFAULT" urowid(4000)
|
|
400
|
+
"UROWID_SIZED" urowid(100)
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
Ref "FK_SELF_REF":"SELF_REF_FK"."ID" < "SELF_REF_FK"."PARENT_ID" [delete: set null]
|
|
404
|
+
|
|
405
|
+
Ref "FK_CHILD_PARENT":"FK_PARENT"."ID" < "FK_CHILD"."PARENT_ID" [delete: cascade]
|
|
406
|
+
|
|
407
|
+
Ref "FK_COMPOSITE_SELF":"COMPOSITE_SELF_REF".("DEPT_ID", "EMP_ID") < "COMPOSITE_SELF_REF".("PARENT_DEPT_ID", "PARENT_EMP_ID") [delete: set null]
|
|
408
|
+
|
|
409
|
+
Ref "FK_ALTER_PARENT":"ALTER_FK_PARENT"."ID" < "ALTER_FK_CHILD"."PARENT_ID" [delete: cascade]
|
|
410
|
+
|
|
411
|
+
Ref "FK_ALTER_SELF":"ALTER_SELF_REF"."ID" < "ALTER_SELF_REF"."PARENT_ID" [delete: set null]
|
|
412
|
+
|
|
413
|
+
Ref "FK_ALTER_COMPOSITE":"ALTER_COMPOSITE_FK_PARENT".("DEPT_ID", "EMP_ID") < "ALTER_COMPOSITE_FK_CHILD".("REF_DEPT_ID", "REF_EMP_ID")
|
|
414
|
+
|
|
415
|
+
Ref "FK_REF_SIMPLE":"REF_SIMPLE_PARENT"."ID" < "REF_SIMPLE_CHILD"."PARENT_ID"
|
|
416
|
+
|
|
417
|
+
Ref "FK_REF_COMPOSITE":"REF_COMPOSITE_PARENT".("KEY1", "KEY2") < "REF_COMPOSITE_CHILD".("FK1", "FK2")
|
|
418
|
+
|
|
419
|
+
Ref "FK_ALTER_COMP_SELF":"ALTER_COMP_SELF_REF".("DEPT_ID", "EMP_ID") < "ALTER_COMP_SELF_REF".("PARENT_DEPT_ID", "PARENT_EMP_ID")
|