@dbml/cli 3.9.5 → 3.9.7-alpha.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 +0 -0
- package/LICENSE +0 -0
- package/README.md +0 -0
- package/__test__/cli.test.js +0 -0
- package/__test__/db2dbml/mssql/expect-out-files/schema.dbml +0 -0
- package/__test__/db2dbml/mssql/options.json +0 -0
- package/__test__/db2dbml/mssql/schema.sql +0 -0
- package/__test__/db2dbml/mssql/stdout.txt +0 -0
- package/__test__/db2dbml/mysql/expect-out-files/schema.dbml +0 -0
- package/__test__/db2dbml/mysql/options.json +0 -0
- package/__test__/db2dbml/mysql/schema.sql +0 -0
- package/__test__/db2dbml/mysql/stdout.txt +0 -0
- package/__test__/db2dbml/postgres/expect-out-files/schema.dbml +0 -0
- package/__test__/db2dbml/postgres/options.json +0 -0
- package/__test__/db2dbml/postgres/schema.sql +0 -0
- package/__test__/db2dbml/postgres/stdout.txt +0 -0
- package/__test__/db2dbml_bin.js +0 -0
- package/__test__/dbml2sql/filename --mysql --out-file/dbml-error.log +36 -0
- package/__test__/dbml2sql/filename --mysql --out-file/expect-out-files/schema.sql +0 -0
- package/__test__/dbml2sql/filename --mysql --out-file/in-files/schema.dbml +0 -0
- package/__test__/dbml2sql/filename --mysql --out-file/options.json +0 -0
- package/__test__/dbml2sql/filename --mysql --out-file/out-files/schema.sql +1 -1
- package/__test__/dbml2sql/filename --mysql --out-file/stdout.txt +0 -0
- package/__test__/dbml2sql/filename --mysql stdout/dbml-error.log +0 -0
- package/__test__/dbml2sql/filename --mysql stdout/in-files/schema.dbml +0 -0
- package/__test__/dbml2sql/filename --mysql stdout/options.json +0 -0
- package/__test__/dbml2sql/filename --mysql stdout/stdout.txt +0 -0
- package/__test__/dbml2sql/filename --oracle --out-file/dbml-error.log +0 -0
- package/__test__/dbml2sql/filename --oracle --out-file/expect-out-files/schema.sql +0 -0
- package/__test__/dbml2sql/filename --oracle --out-file/in-files/schema.dbml +0 -0
- package/__test__/dbml2sql/filename --oracle --out-file/options.json +0 -0
- package/__test__/dbml2sql/filename --oracle --out-file/out-files/schema.sql +1 -1
- package/__test__/dbml2sql/filename --oracle --out-file/stdout.txt +0 -0
- package/__test__/dbml2sql/filename --oracle stdout/dbml-error.log +0 -0
- package/__test__/dbml2sql/filename --oracle stdout/in-files/schema.dbml +0 -0
- package/__test__/dbml2sql/filename --oracle stdout/options.json +0 -0
- package/__test__/dbml2sql/filename --oracle stdout/stdout.txt +0 -0
- package/__test__/dbml2sql/filename --out-file/dbml-error.log +36 -0
- package/__test__/dbml2sql/filename --out-file/expect-out-files/schema.sql +0 -0
- package/__test__/dbml2sql/filename --out-file/in-files/schema.dbml +0 -0
- package/__test__/dbml2sql/filename --out-file/options.json +0 -0
- package/__test__/dbml2sql/filename --out-file/out-files/schema.sql +1 -1
- package/__test__/dbml2sql/filename --out-file/stdout.txt +0 -0
- package/__test__/dbml2sql/filename --postgres --out-file/dbml-error.log +24 -0
- package/__test__/dbml2sql/filename --postgres --out-file/expect-out-files/schema.sql +0 -0
- package/__test__/dbml2sql/filename --postgres --out-file/in-files/schema.dbml +0 -0
- package/__test__/dbml2sql/filename --postgres --out-file/options.json +0 -0
- package/__test__/dbml2sql/filename --postgres --out-file/out-files/schema.sql +1 -1
- package/__test__/dbml2sql/filename --postgres --out-file/stdout.txt +0 -0
- package/__test__/dbml2sql/filename --postgres stdout/dbml-error.log +0 -0
- package/__test__/dbml2sql/filename --postgres stdout/in-files/schema.dbml +0 -0
- package/__test__/dbml2sql/filename --postgres stdout/options.json +0 -0
- package/__test__/dbml2sql/filename --postgres stdout/stdout.txt +0 -0
- package/__test__/dbml2sql/filename stdout/dbml-error.log +0 -0
- package/__test__/dbml2sql/filename stdout/in-files/schema.dbml +0 -0
- package/__test__/dbml2sql/filename stdout/options.json +0 -0
- package/__test__/dbml2sql/filename stdout/stdout.txt +0 -0
- package/__test__/dbml2sql/filenames --mysql --out-file/dbml-error.log +24 -0
- package/__test__/dbml2sql/filenames --mysql --out-file/expect-out-files/schema.sql +0 -0
- package/__test__/dbml2sql/filenames --mysql --out-file/in-files/business.dbml +0 -0
- package/__test__/dbml2sql/filenames --mysql --out-file/in-files/customer.dbml +0 -0
- package/__test__/dbml2sql/filenames --mysql --out-file/in-files/inventory.dbml +0 -0
- package/__test__/dbml2sql/filenames --mysql --out-file/options.json +0 -0
- package/__test__/dbml2sql/filenames --mysql --out-file/out-files/schema.sql +1 -1
- package/__test__/dbml2sql/filenames --mysql --out-file/stdout.txt +0 -0
- package/__test__/dbml2sql/filenames --mysql stdout/dbml-error.log +0 -0
- package/__test__/dbml2sql/filenames --mysql stdout/in-files/business.dbml +0 -0
- package/__test__/dbml2sql/filenames --mysql stdout/in-files/customer.dbml +0 -0
- package/__test__/dbml2sql/filenames --mysql stdout/in-files/inventory.dbml +0 -0
- package/__test__/dbml2sql/filenames --mysql stdout/options.json +0 -0
- package/__test__/dbml2sql/filenames --mysql stdout/stdout.txt +0 -0
- package/__test__/dbml2sql/filenames --oracle --out-file/dbml-error.log +0 -0
- package/__test__/dbml2sql/filenames --oracle --out-file/expect-out-files/schema.sql +0 -0
- package/__test__/dbml2sql/filenames --oracle --out-file/in-files/business.dbml +0 -0
- package/__test__/dbml2sql/filenames --oracle --out-file/in-files/customer.dbml +0 -0
- package/__test__/dbml2sql/filenames --oracle --out-file/in-files/inventory.dbml +0 -0
- package/__test__/dbml2sql/filenames --oracle --out-file/options.json +0 -0
- package/__test__/dbml2sql/filenames --oracle --out-file/out-files/schema.sql +1 -1
- package/__test__/dbml2sql/filenames --oracle --out-file/stdout.txt +0 -0
- package/__test__/dbml2sql/filenames --oracle stdout/dbml-error.log +0 -0
- package/__test__/dbml2sql/filenames --oracle stdout/in-files/business.dbml +0 -0
- package/__test__/dbml2sql/filenames --oracle stdout/in-files/customer.dbml +0 -0
- package/__test__/dbml2sql/filenames --oracle stdout/in-files/inventory.dbml +0 -0
- package/__test__/dbml2sql/filenames --oracle stdout/options.json +0 -0
- package/__test__/dbml2sql/filenames --oracle stdout/stdout.txt +0 -0
- package/__test__/dbml2sql/filenames --out-file/dbml-error.log +24 -0
- package/__test__/dbml2sql/filenames --out-file/expect-out-files/schema.sql +0 -0
- package/__test__/dbml2sql/filenames --out-file/in-files/business.dbml +0 -0
- package/__test__/dbml2sql/filenames --out-file/in-files/customer.dbml +0 -0
- package/__test__/dbml2sql/filenames --out-file/in-files/inventory.dbml +0 -0
- package/__test__/dbml2sql/filenames --out-file/options.json +0 -0
- package/__test__/dbml2sql/filenames --out-file/out-files/schema.sql +1 -1
- package/__test__/dbml2sql/filenames --out-file/stdout.txt +0 -0
- package/__test__/dbml2sql/filenames --postgres --out-file/dbml-error.log +24 -0
- package/__test__/dbml2sql/filenames --postgres --out-file/expect-out-files/schema.sql +0 -0
- package/__test__/dbml2sql/filenames --postgres --out-file/in-files/business.dbml +0 -0
- package/__test__/dbml2sql/filenames --postgres --out-file/in-files/customer.dbml +0 -0
- package/__test__/dbml2sql/filenames --postgres --out-file/in-files/inventory.dbml +0 -0
- package/__test__/dbml2sql/filenames --postgres --out-file/options.json +0 -0
- package/__test__/dbml2sql/filenames --postgres --out-file/out-files/schema.sql +1 -1
- package/__test__/dbml2sql/filenames --postgres --out-file/stdout.txt +0 -0
- package/__test__/dbml2sql/filenames --postgres stdout/dbml-error.log +0 -0
- package/__test__/dbml2sql/filenames --postgres stdout/in-files/business.dbml +0 -0
- package/__test__/dbml2sql/filenames --postgres stdout/in-files/customer.dbml +0 -0
- package/__test__/dbml2sql/filenames --postgres stdout/in-files/inventory.dbml +0 -0
- package/__test__/dbml2sql/filenames --postgres stdout/options.json +0 -0
- package/__test__/dbml2sql/filenames --postgres stdout/stdout.txt +0 -0
- package/__test__/dbml2sql/filenames stdout/dbml-error.log +0 -0
- package/__test__/dbml2sql/filenames stdout/in-files/business.dbml +0 -0
- package/__test__/dbml2sql/filenames stdout/in-files/customer.dbml +0 -0
- package/__test__/dbml2sql/filenames stdout/in-files/inventory.dbml +0 -0
- package/__test__/dbml2sql/filenames stdout/options.json +0 -0
- package/__test__/dbml2sql/filenames stdout/stdout.txt +0 -0
- package/__test__/dbml2sql/multiple_schema_mssql/dbml-error.log +24 -0
- package/__test__/dbml2sql/multiple_schema_mssql/expect-out-files/multiple_schema.out.sql +0 -0
- package/__test__/dbml2sql/multiple_schema_mssql/in-files/multiple_schema.in.dbml +0 -0
- package/__test__/dbml2sql/multiple_schema_mssql/options.json +0 -0
- package/__test__/dbml2sql/multiple_schema_mssql/out-files/multiple_schema.out.sql +1 -1
- package/__test__/dbml2sql/multiple_schema_mssql/stdout.txt +0 -0
- package/__test__/dbml2sql/multiple_schema_mysql/dbml-error.log +24 -0
- package/__test__/dbml2sql/multiple_schema_mysql/expect-out-files/multiple_schema.out.sql +0 -0
- package/__test__/dbml2sql/multiple_schema_mysql/in-files/multiple_schema.in.dbml +0 -0
- package/__test__/dbml2sql/multiple_schema_mysql/options.json +0 -0
- package/__test__/dbml2sql/multiple_schema_mysql/out-files/multiple_schema.out.sql +1 -1
- package/__test__/dbml2sql/multiple_schema_mysql/stdout.txt +0 -0
- package/__test__/dbml2sql/multiple_schema_oracle/dbml-error.log +0 -0
- package/__test__/dbml2sql/multiple_schema_oracle/expect-out-files/multiple_schema.out.sql +0 -0
- package/__test__/dbml2sql/multiple_schema_oracle/in-files/multiple_schema.in.dbml +0 -0
- package/__test__/dbml2sql/multiple_schema_oracle/options.json +0 -0
- package/__test__/dbml2sql/multiple_schema_oracle/out-files/multiple_schema.out.sql +1 -1
- package/__test__/dbml2sql/multiple_schema_oracle/stdout.txt +0 -0
- package/__test__/dbml2sql/multiple_schema_pg/dbml-error.log +24 -0
- package/__test__/dbml2sql/multiple_schema_pg/expect-out-files/multiple_schema.out.sql +0 -0
- package/__test__/dbml2sql/multiple_schema_pg/in-files/multiple_schema.in.dbml +0 -0
- package/__test__/dbml2sql/multiple_schema_pg/options.json +0 -0
- package/__test__/dbml2sql/multiple_schema_pg/out-files/multiple_schema.out.sql +1 -1
- package/__test__/dbml2sql/multiple_schema_pg/stdout.txt +0 -0
- package/__test__/dbml2sql/syntax-error/dbml-error.log +2103 -12
- package/__test__/dbml2sql/syntax-error/in-files/ecommerce.dbml +0 -0
- package/__test__/dbml2sql/syntax-error/options.json +0 -0
- package/__test__/dbml2sql/syntax-error/stdout.txt +0 -0
- package/__test__/dbml2sql_bin.js +0 -0
- package/__test__/sql2dbml/filename --mssql --out-file/dbml-error.log +51 -0
- package/__test__/sql2dbml/filename --mssql --out-file/expect-out-files/schema.dbml +0 -0
- package/__test__/sql2dbml/filename --mssql --out-file/in-files/schema.sql +0 -0
- package/__test__/sql2dbml/filename --mssql --out-file/options.json +0 -0
- package/__test__/sql2dbml/filename --mssql --out-file/out-files/schema.dbml +0 -0
- package/__test__/sql2dbml/filename --mssql --out-file/stdout.txt +0 -0
- package/__test__/sql2dbml/filename --mysql --out-file/dbml-error.log +24 -0
- package/__test__/sql2dbml/filename --mysql --out-file/expect-out-files/schema.dbml +0 -0
- package/__test__/sql2dbml/filename --mysql --out-file/in-files/schema.sql +0 -0
- package/__test__/sql2dbml/filename --mysql --out-file/options.json +0 -0
- package/__test__/sql2dbml/filename --mysql --out-file/out-files/schema.dbml +0 -0
- package/__test__/sql2dbml/filename --mysql --out-file/stdout.txt +0 -0
- package/__test__/sql2dbml/filename --mysql stdout/dbml-error.log +0 -0
- package/__test__/sql2dbml/filename --mysql stdout/in-files/schema.sql +0 -0
- package/__test__/sql2dbml/filename --mysql stdout/options.json +0 -0
- package/__test__/sql2dbml/filename --mysql stdout/stdout.txt +0 -0
- package/__test__/sql2dbml/filename --out-file/dbml-error.log +24 -0
- package/__test__/sql2dbml/filename --out-file/expect-out-files/schema.dbml +0 -0
- package/__test__/sql2dbml/filename --out-file/in-files/schema.sql +0 -0
- package/__test__/sql2dbml/filename --out-file/options.json +0 -0
- package/__test__/sql2dbml/filename --out-file/out-files/schema.dbml +0 -0
- package/__test__/sql2dbml/filename --out-file/stdout.txt +0 -0
- package/__test__/sql2dbml/filename --postgres --out-file/dbml-error.log +24 -0
- package/__test__/sql2dbml/filename --postgres --out-file/expect-out-files/schema.dbml +0 -0
- package/__test__/sql2dbml/filename --postgres --out-file/in-files/schema.sql +0 -0
- package/__test__/sql2dbml/filename --postgres --out-file/options.json +0 -0
- package/__test__/sql2dbml/filename --postgres --out-file/out-files/schema.dbml +0 -0
- package/__test__/sql2dbml/filename --postgres --out-file/stdout.txt +0 -0
- package/__test__/sql2dbml/filename --postgres stdout/dbml-error.log +0 -0
- package/__test__/sql2dbml/filename --postgres stdout/in-files/schema.sql +0 -0
- package/__test__/sql2dbml/filename --postgres stdout/options.json +0 -0
- package/__test__/sql2dbml/filename --postgres stdout/stdout.txt +0 -0
- package/__test__/sql2dbml/filename --snowflake stdout/dbml-error.log +54 -0
- package/__test__/sql2dbml/filename --snowflake stdout/in-files/schema.sql +0 -0
- package/__test__/sql2dbml/filename --snowflake stdout/options.json +0 -0
- package/__test__/sql2dbml/filename --snowflake stdout/stdout.txt +0 -0
- package/__test__/sql2dbml/filename stdout/dbml-error.log +0 -0
- package/__test__/sql2dbml/filename stdout/in-files/schema.sql +0 -0
- package/__test__/sql2dbml/filename stdout/options.json +0 -0
- package/__test__/sql2dbml/filename stdout/stdout.txt +0 -0
- package/__test__/sql2dbml/filenames --mysql --out-file/dbml-error.log +24 -0
- package/__test__/sql2dbml/filenames --mysql --out-file/expect-out-files/schema.dbml +0 -0
- package/__test__/sql2dbml/filenames --mysql --out-file/in-files/business.sql +0 -0
- package/__test__/sql2dbml/filenames --mysql --out-file/in-files/customer.sql +0 -0
- package/__test__/sql2dbml/filenames --mysql --out-file/in-files/inventory.sql +0 -0
- package/__test__/sql2dbml/filenames --mysql --out-file/options.json +0 -0
- package/__test__/sql2dbml/filenames --mysql --out-file/out-files/schema.dbml +0 -0
- package/__test__/sql2dbml/filenames --mysql --out-file/stdout.txt +0 -0
- package/__test__/sql2dbml/filenames --mysql stdout/dbml-error.log +0 -0
- package/__test__/sql2dbml/filenames --mysql stdout/in-files/business.sql +0 -0
- package/__test__/sql2dbml/filenames --mysql stdout/in-files/customer.sql +0 -0
- package/__test__/sql2dbml/filenames --mysql stdout/in-files/inventory.sql +0 -0
- package/__test__/sql2dbml/filenames --mysql stdout/options.json +0 -0
- package/__test__/sql2dbml/filenames --mysql stdout/stdout.txt +0 -0
- package/__test__/sql2dbml/filenames --out-file/dbml-error.log +24 -0
- package/__test__/sql2dbml/filenames --out-file/expect-out-files/schema.dbml +0 -0
- package/__test__/sql2dbml/filenames --out-file/in-files/business.sql +0 -0
- package/__test__/sql2dbml/filenames --out-file/in-files/customer.sql +0 -0
- package/__test__/sql2dbml/filenames --out-file/in-files/inventory.sql +0 -0
- package/__test__/sql2dbml/filenames --out-file/options.json +0 -0
- package/__test__/sql2dbml/filenames --out-file/out-files/schema.dbml +0 -0
- package/__test__/sql2dbml/filenames --out-file/stdout.txt +0 -0
- package/__test__/sql2dbml/filenames --postgres --out-file/dbml-error.log +24 -0
- package/__test__/sql2dbml/filenames --postgres --out-file/expect-out-files/schema.dbml +0 -0
- package/__test__/sql2dbml/filenames --postgres --out-file/in-files/business.sql +0 -0
- package/__test__/sql2dbml/filenames --postgres --out-file/in-files/customer.sql +0 -0
- package/__test__/sql2dbml/filenames --postgres --out-file/in-files/inventory.sql +0 -0
- package/__test__/sql2dbml/filenames --postgres --out-file/options.json +0 -0
- package/__test__/sql2dbml/filenames --postgres --out-file/out-files/schema.dbml +0 -0
- package/__test__/sql2dbml/filenames --postgres --out-file/stdout.txt +0 -0
- package/__test__/sql2dbml/filenames --postgres stdout/dbml-error.log +0 -0
- package/__test__/sql2dbml/filenames --postgres stdout/in-files/business.sql +0 -0
- package/__test__/sql2dbml/filenames --postgres stdout/in-files/customer.sql +0 -0
- package/__test__/sql2dbml/filenames --postgres stdout/in-files/inventory.sql +0 -0
- package/__test__/sql2dbml/filenames --postgres stdout/options.json +0 -0
- package/__test__/sql2dbml/filenames --postgres stdout/stdout.txt +0 -0
- package/__test__/sql2dbml/filenames stdout/dbml-error.log +0 -0
- package/__test__/sql2dbml/filenames stdout/in-files/business.sql +0 -0
- package/__test__/sql2dbml/filenames stdout/in-files/customer.sql +0 -0
- package/__test__/sql2dbml/filenames stdout/in-files/inventory.sql +0 -0
- package/__test__/sql2dbml/filenames stdout/options.json +0 -0
- package/__test__/sql2dbml/filenames stdout/stdout.txt +0 -0
- package/__test__/sql2dbml/multiple_schema_mssql/dbml-error.log +121 -0
- package/__test__/sql2dbml/multiple_schema_mssql/expect-out-files/multiple_schema.out.dbml +0 -0
- package/__test__/sql2dbml/multiple_schema_mssql/in-files/multiple_schema.in.sql +0 -0
- package/__test__/sql2dbml/multiple_schema_mssql/options.json +0 -0
- package/__test__/sql2dbml/multiple_schema_mssql/out-files/multiple_schema.out.dbml +0 -0
- package/__test__/sql2dbml/multiple_schema_mssql/stdout.txt +0 -0
- package/__test__/sql2dbml/multiple_schema_mysql/dbml-error.log +104 -0
- package/__test__/sql2dbml/multiple_schema_mysql/expect-out-files/multiple_schema.out.dbml +0 -0
- package/__test__/sql2dbml/multiple_schema_mysql/in-files/multiple_schema.in.sql +0 -0
- package/__test__/sql2dbml/multiple_schema_mysql/options.json +0 -0
- package/__test__/sql2dbml/multiple_schema_mysql/out-files/multiple_schema.out.dbml +0 -0
- package/__test__/sql2dbml/multiple_schema_mysql/stdout.txt +0 -0
- package/__test__/sql2dbml/multiple_schema_pg/dbml-error.log +131 -0
- package/__test__/sql2dbml/multiple_schema_pg/expect-out-files/multiple_schema.out.dbml +0 -0
- package/__test__/sql2dbml/multiple_schema_pg/in-files/multiple_schema.in.sql +0 -0
- package/__test__/sql2dbml/multiple_schema_pg/options.json +0 -0
- package/__test__/sql2dbml/multiple_schema_pg/out-files/multiple_schema.out.dbml +0 -0
- package/__test__/sql2dbml/multiple_schema_pg/stdout.txt +0 -0
- package/__test__/sql2dbml/syntax-error/dbml-error.log +2076 -12
- package/__test__/sql2dbml/syntax-error/in-files/business.sql +0 -0
- package/__test__/sql2dbml/syntax-error/options.json +0 -0
- package/__test__/sql2dbml/syntax-error/stdout.txt +0 -0
- package/__test__/sql2dbml/syntax-error-duplicate-endpoints --mssql/dbml-error.log +28 -16
- package/__test__/sql2dbml/syntax-error-duplicate-endpoints --mssql/in-files/schema.sql +0 -0
- package/__test__/sql2dbml/syntax-error-duplicate-endpoints --mssql/options.json +0 -0
- package/__test__/sql2dbml/syntax-error-duplicate-endpoints --mssql/stdout.txt +0 -0
- package/__test__/sql2dbml/syntax-error-duplicate-endpoints --mysql/dbml-error.log +29 -14
- package/__test__/sql2dbml/syntax-error-duplicate-endpoints --mysql/in-files/schema.sql +0 -0
- package/__test__/sql2dbml/syntax-error-duplicate-endpoints --mysql/options.json +0 -0
- package/__test__/sql2dbml/syntax-error-duplicate-endpoints --mysql/stdout.txt +0 -0
- package/__test__/sql2dbml_bin.js +0 -0
- package/dbml-error.log +304 -233
- package/jestHelpers.js +0 -0
- package/lib/cli/config.js +0 -0
- package/lib/cli/connector.js +0 -0
- package/lib/cli/export.js +0 -0
- package/lib/cli/import.js +0 -0
- package/lib/cli/index.js +0 -0
- package/lib/cli/outputPlugins/outputConsolePlugin.js +0 -0
- package/lib/cli/outputPlugins/outputFilePlugin.js +0 -0
- package/lib/cli/utils.js +0 -0
- package/lib/cli/validatePlugins/validatePlugins.js +0 -0
- package/lib/errors/domainError.js +0 -0
- package/lib/errors/index.js +0 -0
- package/lib/errors/syntaxError.js +0 -0
- package/lib/helpers/logger.js +0 -0
- package/lib/index.js +0 -0
- package/package.json +4 -4
- package/src/cli/config.js +0 -0
- package/src/cli/connector.js +0 -0
- package/src/cli/export.js +0 -0
- package/src/cli/import.js +0 -0
- package/src/cli/index.js +0 -0
- package/src/cli/outputPlugins/outputConsolePlugin.js +0 -0
- package/src/cli/outputPlugins/outputFilePlugin.js +0 -0
- package/src/cli/utils.js +0 -0
- package/src/cli/validatePlugins/validatePlugins.js +0 -0
- package/src/errors/domainError.js +0 -0
- package/src/errors/index.js +0 -0
- package/src/errors/syntaxError.js +0 -0
- package/src/helpers/logger.js +0 -0
- package/src/index.js +0 -0
- package/__test__/db2dbml/mssql/dbml-error.log +0 -614
- package/__test__/db2dbml/mssql/out-files/schema.dbml +0 -203
- package/__test__/db2dbml/mysql/dbml-error.log +0 -492
- package/__test__/db2dbml/mysql/out-files/schema.dbml +0 -180
- package/__test__/db2dbml/postgres/dbml-error.log +0 -319
- package/__test__/db2dbml/postgres/out-files/schema.dbml +0 -180
- package/snowflake.log +0 -8
|
@@ -1,180 +0,0 @@
|
|
|
1
|
-
Enum "status_example_2_s1_enum" {
|
|
2
|
-
"active"
|
|
3
|
-
"inactive"
|
|
4
|
-
"pending"
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
Enum "status_example_2_s2_enum" {
|
|
8
|
-
"active"
|
|
9
|
-
"inactive"
|
|
10
|
-
"pending"
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
Enum "status_example_2_s3_enum" {
|
|
14
|
-
"active"
|
|
15
|
-
"inactive"
|
|
16
|
-
"pending"
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
Enum "status_example_2_s4_enum" {
|
|
20
|
-
"active"
|
|
21
|
-
"inactive"
|
|
22
|
-
"pending"
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
Enum "status_example_2_s5_enum" {
|
|
26
|
-
"0"
|
|
27
|
-
"1"
|
|
28
|
-
"2"
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
Enum "status_example_2_s6_enum" {
|
|
32
|
-
"0"
|
|
33
|
-
"1"
|
|
34
|
-
"2"
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
Enum "status_example_2_s7_enum" {
|
|
38
|
-
"0"
|
|
39
|
-
"1"
|
|
40
|
-
"2"
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
Enum "status_example_2_s8_enum" {
|
|
44
|
-
"0"
|
|
45
|
-
"1"
|
|
46
|
-
"2"
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
Table "categories" {
|
|
50
|
-
"cat_id" "int unsigned" [pk, not null, increment]
|
|
51
|
-
"cat_name" varchar(50) [not null]
|
|
52
|
-
"super_cat_id" "int unsigned"
|
|
53
|
-
"created_at" timestamp [default: `CURRENT_TIMESTAMP`]
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
Table "composite_key_1" {
|
|
57
|
-
"id1_1" "int unsigned" [not null]
|
|
58
|
-
"id1_2" "int unsigned" [not null]
|
|
59
|
-
"email" varchar(255)
|
|
60
|
-
"name" varchar(50)
|
|
61
|
-
|
|
62
|
-
Indexes {
|
|
63
|
-
(id1_1, id1_2) [pk, name: "PRIMARY"]
|
|
64
|
-
(email, name) [unique, name: "uc_unique_composite"]
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
Table "composite_key_2" {
|
|
69
|
-
"id2_1" "int unsigned" [not null]
|
|
70
|
-
"id2_2" "int unsigned" [not null]
|
|
71
|
-
|
|
72
|
-
Indexes {
|
|
73
|
-
(id2_1, id2_2) [pk, name: "PRIMARY"]
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
Table "date_time_example" {
|
|
78
|
-
"default_now" timestamp [default: `CURRENT_TIMESTAMP`]
|
|
79
|
-
"default_local" timestamp [default: `CURRENT_TIMESTAMP`]
|
|
80
|
-
"date_plus_7_days" date [default: `(curdate() + interval 7 day)`]
|
|
81
|
-
"date_minus_30_days" date [default: `(curdate() - interval 30 day)`]
|
|
82
|
-
"timestamp_plus_1_hour" timestamp [default: `(now() + interval 1 hour)`]
|
|
83
|
-
"timestamp_minus_15_minutes" timestamp [default: `(now() - interval 15 minute)`]
|
|
84
|
-
"on_update_1" "datetime on update CURRENT_TIMESTAMP" [default: `CURRENT_TIMESTAMP`]
|
|
85
|
-
"on_update_2" "datetime on update CURRENT_TIMESTAMP" [default: `CURRENT_TIMESTAMP`]
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
Table "default_example" {
|
|
89
|
-
"id" int [pk, not null, increment]
|
|
90
|
-
"column1" varchar(255) [default: `concat(_utf8mb4\'default \',uuid())`]
|
|
91
|
-
"column2" varchar(255) [default: `concat(_utf8mb4\'random \',floor((rand() * 100)))`]
|
|
92
|
-
"column3" varchar(255) [default: '_utf8mb4']
|
|
93
|
-
"column4" double [default: 0.5]
|
|
94
|
-
"created_date" date [default: `curdate()`]
|
|
95
|
-
"first_date" date [default: '2023-01-01']
|
|
96
|
-
"event_time" timestamp [default: '2024-01-01 00:00:00']
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
Table "hash_index_example" {
|
|
100
|
-
"id" int [pk, not null, note: 'unique identifier for each record']
|
|
101
|
-
"name" varchar(100) [note: '''first name\'s of the individual''']
|
|
102
|
-
"name1" varchar(100) [note: '''last name\'s of the individual''']
|
|
103
|
-
|
|
104
|
-
Indexes {
|
|
105
|
-
(name, name1) [type: hash, name: "idx_name_name1"]
|
|
106
|
-
}
|
|
107
|
-
Note: 'table for storing names with a hash index'
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
Table "index_example" {
|
|
111
|
-
"id" int [pk, not null, increment]
|
|
112
|
-
"name_lower" varchar(100) [not null]
|
|
113
|
-
"name_inline" varchar(100) [not null]
|
|
114
|
-
"email" varchar(100) [unique, not null]
|
|
115
|
-
"age" int
|
|
116
|
-
"city" varchar(50)
|
|
117
|
-
|
|
118
|
-
Indexes {
|
|
119
|
-
(city, age) [type: btree, name: "idx_city_age"]
|
|
120
|
-
`city(5)` [type: btree, name: "idx_city_part"]
|
|
121
|
-
name_inline [type: btree, name: "idx_name"]
|
|
122
|
-
`lower(name_lower)` [type: btree, name: "idx_name_lower"]
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
Table "order_items" {
|
|
127
|
-
"order_id" "int unsigned" [not null]
|
|
128
|
-
"product_id" "int unsigned" [not null]
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
Table "orders" {
|
|
132
|
-
"order_id" "int unsigned" [pk, not null, increment]
|
|
133
|
-
"user_id" "int unsigned"
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
Table "products" {
|
|
137
|
-
"id" "int unsigned" [pk, not null, increment]
|
|
138
|
-
"price" decimal(10,2) [not null]
|
|
139
|
-
"quantity" int [not null]
|
|
140
|
-
"total_value" "decimal(10,2) GENERATED ALWAYS AS ((`price` * `quantity`)) STORED"
|
|
141
|
-
"updated_at" "timestamp on update CURRENT_TIMESTAMP" [default: `CURRENT_TIMESTAMP`]
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
Table "sqrt_triangle" {
|
|
145
|
-
"side_a" double
|
|
146
|
-
"side_b" double
|
|
147
|
-
"side_c" "double GENERATED ALWAYS AS (sqrt(((`side_a` * `side_a`) + (`side_b` * `side_b`)))) VIRTUAL"
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
Table "status_example_2" {
|
|
151
|
-
"s1" status_example_2_s1_enum [not null]
|
|
152
|
-
"s2" status_example_2_s2_enum
|
|
153
|
-
"s3" status_example_2_s3_enum [default: 'active']
|
|
154
|
-
"s4" status_example_2_s4_enum [default: 'pending']
|
|
155
|
-
"s5" status_example_2_s5_enum
|
|
156
|
-
"s6" status_example_2_s6_enum [not null]
|
|
157
|
-
"s7" status_example_2_s7_enum [default: '1']
|
|
158
|
-
"s8" status_example_2_s8_enum [default: '0']
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
Table "users" {
|
|
162
|
-
"user_id" "int unsigned" [pk, not null, increment]
|
|
163
|
-
"username" varchar(50) [unique, not null]
|
|
164
|
-
"email" varchar(100) [unique, not null]
|
|
165
|
-
"password_hash" varchar(255) [not null]
|
|
166
|
-
"first_name" varchar(50)
|
|
167
|
-
"last_name" varchar(50)
|
|
168
|
-
"date_of_birth" date
|
|
169
|
-
"created_at" timestamp [default: `CURRENT_TIMESTAMP`]
|
|
170
|
-
"last_login" timestamp [default: `CURRENT_TIMESTAMP`]
|
|
171
|
-
"is_active" tinyint(1) [default: 1]
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
Ref "fk_test_composite":"composite_key_2".("id2_1", "id2_2") < "composite_key_1".("id1_1", "id1_2")
|
|
175
|
-
|
|
176
|
-
Ref "fk_detail_items_orders":"orders"."order_id" < "order_items"."order_id" [delete: cascade]
|
|
177
|
-
|
|
178
|
-
Ref "fk_detail_items_products":"products"."id" < "order_items"."product_id"
|
|
179
|
-
|
|
180
|
-
Ref "fk_order_user":"users"."user_id" < "orders"."user_id" [delete: set null]
|
|
@@ -1,319 +0,0 @@
|
|
|
1
|
-
2024-08-01T07:56:48.560Z
|
|
2
|
-
TypeError: _core.connector.fetch is not a function
|
|
3
|
-
at connectionHandler (/Users/huylm/code/dbx/dbml/packages/dbml-cli/lib/cli/connector.js:28:41)
|
|
4
|
-
at Object.db2dbml (/Users/huylm/code/dbx/dbml/packages/dbml-cli/lib/cli/index.js:35:26)
|
|
5
|
-
at Object.<anonymous> (/Users/huylm/code/dbx/dbml/packages/dbml-cli/bin/db2dbml.js:4:19)
|
|
6
|
-
at Module._compile (node:internal/modules/cjs/loader:1198:14)
|
|
7
|
-
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1252:10)
|
|
8
|
-
at Module.load (node:internal/modules/cjs/loader:1076:32)
|
|
9
|
-
at Function.Module._load (node:internal/modules/cjs/loader:911:12)
|
|
10
|
-
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
|
|
11
|
-
at node:internal/main/run_main_module:22:47
|
|
12
|
-
|
|
13
|
-
2024-08-01T07:57:28.334Z
|
|
14
|
-
error: password authentication failed for user "dbml"
|
|
15
|
-
at Parser.parseErrorMessage (/Users/huylm/code/dbx/dbml/node_modules/pg-protocol/dist/parser.js:283:98)
|
|
16
|
-
at Parser.handlePacket (/Users/huylm/code/dbx/dbml/node_modules/pg-protocol/dist/parser.js:122:29)
|
|
17
|
-
at Parser.parse (/Users/huylm/code/dbx/dbml/node_modules/pg-protocol/dist/parser.js:35:38)
|
|
18
|
-
at Socket.<anonymous> (/Users/huylm/code/dbx/dbml/node_modules/pg-protocol/dist/index.js:11:42)
|
|
19
|
-
at Socket.emit (node:events:513:28)
|
|
20
|
-
at addChunk (node:internal/streams/readable:315:12)
|
|
21
|
-
at readableAddChunk (node:internal/streams/readable:289:9)
|
|
22
|
-
at Socket.Readable.push (node:internal/streams/readable:228:10)
|
|
23
|
-
at TCP.onStreamRead (node:internal/stream_base_commons:190:23)
|
|
24
|
-
|
|
25
|
-
2024-08-06T10:36:39.493Z
|
|
26
|
-
Error: connect ECONNREFUSED 127.0.0.1:5432
|
|
27
|
-
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1278:16)
|
|
28
|
-
|
|
29
|
-
2024-08-06T10:39:55.684Z
|
|
30
|
-
Error: connect ECONNREFUSED 127.0.0.1:5432
|
|
31
|
-
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1278:16)
|
|
32
|
-
|
|
33
|
-
2024-08-06T10:40:09.774Z
|
|
34
|
-
Error: connect ECONNREFUSED 127.0.0.1:5432
|
|
35
|
-
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1278:16)
|
|
36
|
-
|
|
37
|
-
2024-08-06T10:46:40.738Z
|
|
38
|
-
Error: connect ECONNREFUSED 127.0.0.1:5432
|
|
39
|
-
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1278:16)
|
|
40
|
-
|
|
41
|
-
2024-08-06T10:47:23.247Z
|
|
42
|
-
Error: connect ECONNREFUSED 127.0.0.1:5432
|
|
43
|
-
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1278:16)
|
|
44
|
-
|
|
45
|
-
2024-08-06T11:32:55.326Z
|
|
46
|
-
Error: connect ECONNREFUSED 127.0.0.1:5432
|
|
47
|
-
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1278:16)
|
|
48
|
-
|
|
49
|
-
2024-08-06T11:33:52.691Z
|
|
50
|
-
Error: connect ECONNREFUSED 127.0.0.1:5432
|
|
51
|
-
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1278:16)
|
|
52
|
-
|
|
53
|
-
2024-08-06T11:46:50.111Z
|
|
54
|
-
Error: connect ECONNREFUSED 127.0.0.1:5432
|
|
55
|
-
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1278:16)
|
|
56
|
-
|
|
57
|
-
2024-08-06T13:45:33.216Z
|
|
58
|
-
Error: connect ECONNREFUSED 127.0.0.1:5432
|
|
59
|
-
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1278:16)
|
|
60
|
-
|
|
61
|
-
2024-08-06T14:03:51.715Z
|
|
62
|
-
Error: connect ECONNREFUSED 127.0.0.1:5432
|
|
63
|
-
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1278:16)
|
|
64
|
-
|
|
65
|
-
2024-08-06T14:20:00.051Z
|
|
66
|
-
Error: connect ECONNREFUSED 127.0.0.1:5432
|
|
67
|
-
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1278:16)
|
|
68
|
-
|
|
69
|
-
2024-08-06T14:24:52.652Z
|
|
70
|
-
Error: connect ECONNREFUSED 127.0.0.1:5432
|
|
71
|
-
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1278:16)
|
|
72
|
-
|
|
73
|
-
2024-08-06T14:26:39.541Z
|
|
74
|
-
Error: connect ECONNREFUSED 127.0.0.1:5432
|
|
75
|
-
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1278:16)
|
|
76
|
-
|
|
77
|
-
2024-08-06T14:32:52.720Z
|
|
78
|
-
Error: connect ECONNREFUSED 127.0.0.1:5432
|
|
79
|
-
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1278:16)
|
|
80
|
-
|
|
81
|
-
2024-08-06T14:33:20.897Z
|
|
82
|
-
Error: connect ECONNREFUSED 127.0.0.1:5432
|
|
83
|
-
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1278:16)
|
|
84
|
-
|
|
85
|
-
2024-08-06T15:03:45.397Z
|
|
86
|
-
Error: connect ECONNREFUSED 127.0.0.1:5432
|
|
87
|
-
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1278:16)
|
|
88
|
-
|
|
89
|
-
2024-08-06T15:04:36.505Z
|
|
90
|
-
Error: connect ECONNREFUSED 127.0.0.1:5432
|
|
91
|
-
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1278:16)
|
|
92
|
-
|
|
93
|
-
2024-08-06T16:16:07.427Z
|
|
94
|
-
Error: connect ECONNREFUSED 127.0.0.1:5432
|
|
95
|
-
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1278:16)
|
|
96
|
-
|
|
97
|
-
2024-08-06T16:18:52.991Z
|
|
98
|
-
Error: connect ECONNREFUSED 127.0.0.1:5432
|
|
99
|
-
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1278:16)
|
|
100
|
-
|
|
101
|
-
2024-08-06T16:19:20.829Z
|
|
102
|
-
Error: connect ECONNREFUSED 127.0.0.1:5432
|
|
103
|
-
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1278:16)
|
|
104
|
-
|
|
105
|
-
2024-08-06T16:20:10.607Z
|
|
106
|
-
Error: connect ECONNREFUSED 127.0.0.1:5432
|
|
107
|
-
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1278:16)
|
|
108
|
-
|
|
109
|
-
2024-08-07T03:34:45.150Z
|
|
110
|
-
Error: connect ECONNREFUSED 127.0.0.1:5432
|
|
111
|
-
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1278:16)
|
|
112
|
-
|
|
113
|
-
2024-08-07T03:35:44.244Z
|
|
114
|
-
Error: connect ECONNREFUSED 127.0.0.1:5432
|
|
115
|
-
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1278:16)
|
|
116
|
-
|
|
117
|
-
2024-08-07T03:59:27.920Z
|
|
118
|
-
Error: connect ECONNREFUSED 127.0.0.1:5432
|
|
119
|
-
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1278:16)
|
|
120
|
-
|
|
121
|
-
2024-08-07T04:03:38.191Z
|
|
122
|
-
Error: connect ECONNREFUSED 127.0.0.1:5432
|
|
123
|
-
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1278:16)
|
|
124
|
-
|
|
125
|
-
2024-08-07T04:04:50.060Z
|
|
126
|
-
Error: connect ECONNREFUSED 127.0.0.1:5432
|
|
127
|
-
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1278:16)
|
|
128
|
-
|
|
129
|
-
2024-08-07T04:07:17.932Z
|
|
130
|
-
Error: connect ECONNREFUSED 127.0.0.1:5432
|
|
131
|
-
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1278:16)
|
|
132
|
-
|
|
133
|
-
2024-08-07T04:43:56.192Z
|
|
134
|
-
Error: connect ECONNREFUSED 127.0.0.1:5432
|
|
135
|
-
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1278:16)
|
|
136
|
-
|
|
137
|
-
2024-08-07T04:45:05.535Z
|
|
138
|
-
Error: connect ECONNREFUSED 127.0.0.1:5432
|
|
139
|
-
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1278:16)
|
|
140
|
-
|
|
141
|
-
2024-08-07T04:50:20.315Z
|
|
142
|
-
Error: connect ECONNREFUSED 127.0.0.1:5432
|
|
143
|
-
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1278:16)
|
|
144
|
-
|
|
145
|
-
2024-08-07T04:51:13.784Z
|
|
146
|
-
Error: connect ECONNREFUSED 127.0.0.1:5432
|
|
147
|
-
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1278:16)
|
|
148
|
-
|
|
149
|
-
2024-08-07T04:51:28.624Z
|
|
150
|
-
Error: connect ECONNREFUSED 127.0.0.1:5432
|
|
151
|
-
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1278:16)
|
|
152
|
-
|
|
153
|
-
2024-08-07T04:55:29.993Z
|
|
154
|
-
Error: connect ECONNREFUSED 127.0.0.1:5432
|
|
155
|
-
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1278:16)
|
|
156
|
-
|
|
157
|
-
2024-08-07T04:55:51.718Z
|
|
158
|
-
Error: connect ECONNREFUSED 127.0.0.1:5432
|
|
159
|
-
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1278:16)
|
|
160
|
-
|
|
161
|
-
2024-08-07T05:13:29.088Z
|
|
162
|
-
Error: connect ECONNREFUSED 127.0.0.1:5432
|
|
163
|
-
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1278:16)
|
|
164
|
-
|
|
165
|
-
2024-08-07T05:18:01.681Z
|
|
166
|
-
Error: connect ECONNREFUSED 127.0.0.1:5432
|
|
167
|
-
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1278:16)
|
|
168
|
-
|
|
169
|
-
2024-08-07T05:18:39.927Z
|
|
170
|
-
Error: connect ECONNREFUSED 127.0.0.1:5432
|
|
171
|
-
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1278:16)
|
|
172
|
-
|
|
173
|
-
2024-08-07T05:19:30.587Z
|
|
174
|
-
Error: connect ECONNREFUSED 127.0.0.1:5432
|
|
175
|
-
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1278:16)
|
|
176
|
-
|
|
177
|
-
2024-08-07T05:19:57.969Z
|
|
178
|
-
Error: connect ECONNREFUSED 127.0.0.1:5432
|
|
179
|
-
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1278:16)
|
|
180
|
-
|
|
181
|
-
2024-08-07T05:26:02.292Z
|
|
182
|
-
Error: connect ECONNREFUSED 127.0.0.1:5432
|
|
183
|
-
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1278:16)
|
|
184
|
-
|
|
185
|
-
2024-08-07T05:26:37.720Z
|
|
186
|
-
Error: connect ECONNREFUSED 127.0.0.1:5432
|
|
187
|
-
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1278:16)
|
|
188
|
-
|
|
189
|
-
2024-08-07T05:26:49.081Z
|
|
190
|
-
Error: connect ECONNREFUSED 127.0.0.1:5432
|
|
191
|
-
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1278:16)
|
|
192
|
-
|
|
193
|
-
2024-08-07T07:30:55.870Z
|
|
194
|
-
Error: connect ECONNREFUSED 127.0.0.1:5432
|
|
195
|
-
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1278:16)
|
|
196
|
-
|
|
197
|
-
2024-08-07T07:33:22.561Z
|
|
198
|
-
Error: connect ECONNREFUSED 127.0.0.1:5432
|
|
199
|
-
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1278:16)
|
|
200
|
-
|
|
201
|
-
2024-08-07T08:00:27.430Z
|
|
202
|
-
error: password authentication failed for user "dbml"
|
|
203
|
-
at Parser.parseErrorMessage (/Users/huylm/code/dbx/dbml/node_modules/pg-protocol/dist/parser.js:283:98)
|
|
204
|
-
at Parser.handlePacket (/Users/huylm/code/dbx/dbml/node_modules/pg-protocol/dist/parser.js:122:29)
|
|
205
|
-
at Parser.parse (/Users/huylm/code/dbx/dbml/node_modules/pg-protocol/dist/parser.js:35:38)
|
|
206
|
-
at Socket.<anonymous> (/Users/huylm/code/dbx/dbml/node_modules/pg-protocol/dist/index.js:11:42)
|
|
207
|
-
at Socket.emit (node:events:513:28)
|
|
208
|
-
at addChunk (node:internal/streams/readable:315:12)
|
|
209
|
-
at readableAddChunk (node:internal/streams/readable:289:9)
|
|
210
|
-
at Socket.Readable.push (node:internal/streams/readable:228:10)
|
|
211
|
-
at TCP.onStreamRead (node:internal/stream_base_commons:190:23)
|
|
212
|
-
|
|
213
|
-
2024-08-09T00:33:48.829Z
|
|
214
|
-
Error: TypeError: Cannot read properties of undefined (reading 'map')
|
|
215
|
-
at generateDatabase (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/parse/databaseGenerator.js:116:11)
|
|
216
|
-
at _callee$ (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/import/index.js:34:62)
|
|
217
|
-
at tryCatch (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/import/index.js:13:1357)
|
|
218
|
-
at Generator.<anonymous> (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/import/index.js:13:4174)
|
|
219
|
-
at Generator.next (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/import/index.js:13:2208)
|
|
220
|
-
at asyncGeneratorStep (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/import/index.js:14:103)
|
|
221
|
-
at _next (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/import/index.js:15:194)
|
|
222
|
-
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
|
|
223
|
-
|
|
224
|
-
2024-08-09T00:35:22.283Z
|
|
225
|
-
Error: TypeError: Cannot read properties of undefined (reading 'map')
|
|
226
|
-
at generateDatabase (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/parse/databaseGenerator.js:116:11)
|
|
227
|
-
at _callee$ (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/import/index.js:34:62)
|
|
228
|
-
at tryCatch (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/import/index.js:13:1357)
|
|
229
|
-
at Generator.<anonymous> (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/import/index.js:13:4174)
|
|
230
|
-
at Generator.next (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/import/index.js:13:2208)
|
|
231
|
-
at asyncGeneratorStep (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/import/index.js:14:103)
|
|
232
|
-
at _next (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/import/index.js:15:194)
|
|
233
|
-
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
|
|
234
|
-
|
|
235
|
-
2024-08-10T10:33:37.536Z
|
|
236
|
-
undefined
|
|
237
|
-
|
|
238
|
-
2024-08-10T14:22:55.420Z
|
|
239
|
-
undefined
|
|
240
|
-
|
|
241
|
-
2024-08-10T14:24:22.216Z
|
|
242
|
-
undefined
|
|
243
|
-
|
|
244
|
-
2024-08-10T14:26:51.045Z
|
|
245
|
-
undefined
|
|
246
|
-
|
|
247
|
-
2024-08-10T14:28:05.965Z
|
|
248
|
-
undefined
|
|
249
|
-
|
|
250
|
-
2024-08-10T14:43:52.134Z
|
|
251
|
-
undefined
|
|
252
|
-
|
|
253
|
-
2024-08-14T07:37:01.821Z
|
|
254
|
-
Error: TypeError: Cannot read properties of undefined (reading 'map')
|
|
255
|
-
at generateDatabase (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/parse/databaseGenerator.js:115:11)
|
|
256
|
-
at Object.generateDbml (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/import/index.js:17:58)
|
|
257
|
-
at connectionHandler (/Users/huylm/code/dbx/dbml/packages/dbml-cli/lib/cli/connector.js:29:34)
|
|
258
|
-
at Object.db2dbml (/Users/huylm/code/dbx/dbml/packages/dbml-cli/lib/cli/index.js:55:26)
|
|
259
|
-
at Object.<anonymous> (/Users/huylm/code/dbx/dbml/packages/dbml-cli/bin/db2dbml.js:4:19)
|
|
260
|
-
at Module._compile (node:internal/modules/cjs/loader:1256:14)
|
|
261
|
-
at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
|
|
262
|
-
at Module.load (node:internal/modules/cjs/loader:1119:32)
|
|
263
|
-
at Module._load (node:internal/modules/cjs/loader:960:12)
|
|
264
|
-
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
|
|
265
|
-
|
|
266
|
-
2024-08-14T07:52:46.959Z
|
|
267
|
-
Error: TypeError: Cannot read properties of undefined (reading 'map')
|
|
268
|
-
at generateDatabase (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/parse/databaseGenerator.js:115:11)
|
|
269
|
-
at Object.generateDbml (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/import/index.js:17:58)
|
|
270
|
-
at connectionHandler (/Users/huylm/code/dbx/dbml/packages/dbml-cli/lib/cli/connector.js:29:34)
|
|
271
|
-
at Object.db2dbml (/Users/huylm/code/dbx/dbml/packages/dbml-cli/lib/cli/index.js:55:26)
|
|
272
|
-
at Object.<anonymous> (/Users/huylm/code/dbx/dbml/packages/dbml-cli/bin/db2dbml.js:4:19)
|
|
273
|
-
at Module._compile (node:internal/modules/cjs/loader:1256:14)
|
|
274
|
-
at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
|
|
275
|
-
at Module.load (node:internal/modules/cjs/loader:1119:32)
|
|
276
|
-
at Module._load (node:internal/modules/cjs/loader:960:12)
|
|
277
|
-
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
|
|
278
|
-
|
|
279
|
-
2024-08-14T07:55:36.355Z
|
|
280
|
-
Error: TypeError: Cannot read properties of undefined (reading 'map')
|
|
281
|
-
at generateDatabase (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/parse/databaseGenerator.js:115:11)
|
|
282
|
-
at Object.generateDbml (/Users/huylm/code/dbx/dbml/packages/dbml-core/lib/import/index.js:17:58)
|
|
283
|
-
at connectionHandler (/Users/huylm/code/dbx/dbml/packages/dbml-cli/lib/cli/connector.js:29:34)
|
|
284
|
-
at Object.db2dbml (/Users/huylm/code/dbx/dbml/packages/dbml-cli/lib/cli/index.js:55:26)
|
|
285
|
-
at Object.<anonymous> (/Users/huylm/code/dbx/dbml/packages/dbml-cli/bin/db2dbml.js:4:19)
|
|
286
|
-
at Module._compile (node:internal/modules/cjs/loader:1256:14)
|
|
287
|
-
at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
|
|
288
|
-
at Module.load (node:internal/modules/cjs/loader:1119:32)
|
|
289
|
-
at Module._load (node:internal/modules/cjs/loader:960:12)
|
|
290
|
-
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
|
|
291
|
-
|
|
292
|
-
2024-10-29T16:26:43.809Z
|
|
293
|
-
Error: PostgreSQL connection error: Error: connect ECONNREFUSED ::1:5432
|
|
294
|
-
at getValidatedClient (/Users/huylm/code/dbx/dbml/packages/dbml-connector/dist/connectors/postgresConnector.js:21:19)
|
|
295
|
-
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
|
|
296
|
-
at async fetchSchemaJson (/Users/huylm/code/dbx/dbml/packages/dbml-connector/dist/connectors/postgresConnector.js:415:20)
|
|
297
|
-
at async connectionHandler (/Users/huylm/code/dbx/dbml/packages/dbml-cli/lib/cli/connector.js:24:24)
|
|
298
|
-
|
|
299
|
-
2024-10-29T16:31:28.912Z
|
|
300
|
-
Error: PostgreSQL connection error: Error: connect ECONNREFUSED ::1:5432
|
|
301
|
-
at getValidatedClient (/Users/huylm/code/dbx/dbml/packages/dbml-connector/dist/connectors/postgresConnector.js:21:19)
|
|
302
|
-
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
|
|
303
|
-
at async fetchSchemaJson (/Users/huylm/code/dbx/dbml/packages/dbml-connector/dist/connectors/postgresConnector.js:415:20)
|
|
304
|
-
at async connectionHandler (/Users/huylm/code/dbx/dbml/packages/dbml-cli/lib/cli/connector.js:24:24)
|
|
305
|
-
|
|
306
|
-
2024-10-29T16:57:00.973Z
|
|
307
|
-
Error: PostgreSQL connection error: Error: connect ECONNREFUSED ::1:5432
|
|
308
|
-
at getValidatedClient (/Users/huylm/code/dbx/dbml/packages/dbml-connector/dist/connectors/postgresConnector.js:21:19)
|
|
309
|
-
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
|
|
310
|
-
at async fetchSchemaJson (/Users/huylm/code/dbx/dbml/packages/dbml-connector/dist/connectors/postgresConnector.js:415:20)
|
|
311
|
-
at async connectionHandler (/Users/huylm/code/dbx/dbml/packages/dbml-cli/lib/cli/connector.js:24:24)
|
|
312
|
-
|
|
313
|
-
2024-10-29T16:57:24.580Z
|
|
314
|
-
Error: PostgreSQL connection error: Error: connect ECONNREFUSED ::1:5432
|
|
315
|
-
at getValidatedClient (/Users/huylm/code/dbx/dbml/packages/dbml-connector/dist/connectors/postgresConnector.js:21:19)
|
|
316
|
-
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
|
|
317
|
-
at async fetchSchemaJson (/Users/huylm/code/dbx/dbml/packages/dbml-connector/dist/connectors/postgresConnector.js:415:20)
|
|
318
|
-
at async connectionHandler (/Users/huylm/code/dbx/dbml/packages/dbml-cli/lib/cli/connector.js:24:24)
|
|
319
|
-
|
|
@@ -1,180 +0,0 @@
|
|
|
1
|
-
Enum "dbml_test"."enum_type1" {
|
|
2
|
-
"value1"
|
|
3
|
-
"value2"
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
Enum "dbml_test"."enum_type3" {
|
|
7
|
-
"value4"
|
|
8
|
-
"value5"
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
Table "dbml_test"."table1" {
|
|
12
|
-
"id" int4 [pk, not null, increment]
|
|
13
|
-
"status" dbml_test.enum_type1
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
Table "dbml_test"."table3" {
|
|
17
|
-
"id" int4 [pk, not null, increment]
|
|
18
|
-
"status" dbml_test.enum_type3
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
Enum "enum_type1" {
|
|
22
|
-
"value1"
|
|
23
|
-
"value2"
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
Enum "enum_type2" {
|
|
27
|
-
"value1"
|
|
28
|
-
"value3"
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
Enum "gender_type" {
|
|
32
|
-
"Male"
|
|
33
|
-
"Female"
|
|
34
|
-
"Other"
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
Table "users" {
|
|
38
|
-
"user_id" int4 [pk, not null, increment]
|
|
39
|
-
"username" varchar(50) [unique, not null]
|
|
40
|
-
"email" varchar(100) [unique, not null]
|
|
41
|
-
"password_hash" varchar(255) [not null]
|
|
42
|
-
"first_name" varchar(50)
|
|
43
|
-
"last_name" varchar(50)
|
|
44
|
-
"full_name" varchar(100)
|
|
45
|
-
"date_of_birth" date
|
|
46
|
-
"created_at" timestamptz [default: `CURRENT_TIMESTAMP`]
|
|
47
|
-
"last_login" timestamptz
|
|
48
|
-
"is_active" bool [default: true]
|
|
49
|
-
|
|
50
|
-
Indexes {
|
|
51
|
-
full_name [type: btree, name: "User Name"]
|
|
52
|
-
email [type: btree, name: "idx_users_email"]
|
|
53
|
-
(is_active, `lower((full_name)::text)`) [type: btree, name: "users_is_active_lower_idx"]
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
Table "products" {
|
|
58
|
-
"product_id" int4 [pk, not null, increment]
|
|
59
|
-
"name" varchar(100) [not null]
|
|
60
|
-
"description" text
|
|
61
|
-
"price" numeric(10,2) [not null]
|
|
62
|
-
"stock_quantity" int4 [not null, default: 0]
|
|
63
|
-
"category" varchar(50)
|
|
64
|
-
"created_at" timestamptz [default: `CURRENT_TIMESTAMP`]
|
|
65
|
-
"updated_at" timestamptz [default: `CURRENT_TIMESTAMP`]
|
|
66
|
-
"is_available" bool [default: true]
|
|
67
|
-
|
|
68
|
-
Indexes {
|
|
69
|
-
category [type: btree, name: "idx_products_category"]
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
Table "orders" {
|
|
74
|
-
"order_id" int4 [pk, not null, increment]
|
|
75
|
-
"user_id" int4 [not null]
|
|
76
|
-
"order_date" timestamptz [default: `CURRENT_TIMESTAMP`]
|
|
77
|
-
"total_amount" numeric(12,2) [not null]
|
|
78
|
-
"status" varchar(20) [default: 'pending']
|
|
79
|
-
"shipping_address" text [not null]
|
|
80
|
-
"billing_address" text [not null]
|
|
81
|
-
|
|
82
|
-
Indexes {
|
|
83
|
-
(user_id, order_date) [type: btree, name: "idx_orders_user_date"]
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
Table "order_items" {
|
|
88
|
-
"order_item_id" int4 [pk, not null, increment]
|
|
89
|
-
"order_id" int4 [not null]
|
|
90
|
-
"product_id" int4 [not null]
|
|
91
|
-
"quantity" int4 [not null]
|
|
92
|
-
"unit_price" numeric(10,2) [not null]
|
|
93
|
-
|
|
94
|
-
Indexes {
|
|
95
|
-
(order_id, product_id) [type: btree, name: "uq_order_product"]
|
|
96
|
-
(order_id, product_id) [type: btree, name: "idx_order_items_order_product"]
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
Table "all_string_types" {
|
|
101
|
-
"text_col" text [default: 'default_text']
|
|
102
|
-
"varchar_col" varchar(100) [default: 'default_varchar']
|
|
103
|
-
"char_col" bpchar(10) [default: 'default_char']
|
|
104
|
-
"character_varying_col" varchar(50) [default: 'default_character_varying']
|
|
105
|
-
"character_col" bpchar(5) [default: 'default_character']
|
|
106
|
-
"name_col" name [default: 'default_name']
|
|
107
|
-
"bpchar_col" bpchar(15) [default: 'default_bpchar']
|
|
108
|
-
"text_array_col" "text[]" [default: `ARRAY['default_text1', 'default_text2']`]
|
|
109
|
-
"json_col" json [default: `{"default_key": "default_value"}`]
|
|
110
|
-
"jsonb_col" jsonb [default: `{"default_key": "default_value"}`]
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
Table "all_default_values" {
|
|
114
|
-
"id" int4 [pk, not null, increment]
|
|
115
|
-
"boolean_col" bool [default: true]
|
|
116
|
-
"integer_col" int4 [default: 42]
|
|
117
|
-
"numeric_col" numeric(10,2) [default: 99.99]
|
|
118
|
-
"date_col" date [default: `CURRENT_DATE`]
|
|
119
|
-
"date_col_specific" date [default: '2024-01-01']
|
|
120
|
-
"timestamp_col" timestamp [default: `CURRENT_TIMESTAMP`]
|
|
121
|
-
"timestamp_col_specific" timestamp [default: '2024-01-01 12:00:00']
|
|
122
|
-
"date_plus_7_days" date [default: `(CURRENT_DATE + '7 days'::interval)`]
|
|
123
|
-
"date_minus_30_days" date [default: `(CURRENT_DATE - '30 days'::interval)`]
|
|
124
|
-
"timestamp_plus_1_hour" timestamp [default: `(CURRENT_TIMESTAMP + '01:00:00'::interval)`]
|
|
125
|
-
"timestamp_minus_15_minutes" timestamp [default: `(CURRENT_TIMESTAMP - '00:15:00'::interval)`]
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
Table "user_define_data_types" {
|
|
129
|
-
"id" int4 [pk, not null, increment]
|
|
130
|
-
"name" varchar(50)
|
|
131
|
-
"gender" gender_type
|
|
132
|
-
"age" int4range
|
|
133
|
-
"height" float8
|
|
134
|
-
"weight" float8
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
Table "table_with_comments" {
|
|
138
|
-
"id" int4 [pk, not null, increment, note: 'Unique identifier for each item.']
|
|
139
|
-
"name" varchar(100) [note: '''Item\'s name.''']
|
|
140
|
-
"description" text [note: '''Item\'s description''']
|
|
141
|
-
"created_at" timestamptz [default: `CURRENT_TIMESTAMP`, note: 'Timestamp when the item was created.']
|
|
142
|
-
Note: '''This table stores information about various items. Such as: \'id\', \'name\', \'description\''''
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
Table "authors" {
|
|
146
|
-
"authorid" int4 [not null, increment]
|
|
147
|
-
"nationalityid" int4 [not null]
|
|
148
|
-
"authorname" varchar(100)
|
|
149
|
-
"birthyear" int4
|
|
150
|
-
|
|
151
|
-
Indexes {
|
|
152
|
-
(authorid, nationalityid) [type: btree, name: "authors_pkey"]
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
Table "books" {
|
|
157
|
-
"bookid" int4 [pk, not null, increment]
|
|
158
|
-
"authorid" int4
|
|
159
|
-
"nationalityid" int4
|
|
160
|
-
"isbn" varchar(20) [unique]
|
|
161
|
-
"title" varchar(200)
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
Table "table1" {
|
|
165
|
-
"id" int4 [pk, not null, increment]
|
|
166
|
-
"status" enum_type1
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
Table "table2" {
|
|
170
|
-
"id" int4 [pk, not null, increment]
|
|
171
|
-
"status" enum_type2
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
Ref "fk_authornationality":"authors".("authorid", "nationalityid") < "books".("authorid", "nationalityid") [delete: cascade]
|
|
175
|
-
|
|
176
|
-
Ref "fk_order":"orders"."order_id" < "order_items"."order_id" [delete: cascade]
|
|
177
|
-
|
|
178
|
-
Ref "fk_product":"products"."product_id" < "order_items"."product_id" [delete: cascade]
|
|
179
|
-
|
|
180
|
-
Ref "fk_user":"users"."user_id" < "orders"."user_id" [delete: cascade]
|