@dbml/cli 2.5.0 → 2.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (21) hide show
  1. package/__test__/cli.test.js +2 -1
  2. package/__test__/dbml2sql/filename --mysql --out-file/out-files/schema.sql +1 -1
  3. package/__test__/dbml2sql/filename --out-file/out-files/schema.sql +1 -1
  4. package/__test__/dbml2sql/filename --postgres --out-file/out-files/schema.sql +1 -1
  5. package/__test__/dbml2sql/filenames --mysql --out-file/out-files/schema.sql +1 -1
  6. package/__test__/dbml2sql/filenames --out-file/out-files/schema.sql +1 -1
  7. package/__test__/dbml2sql/filenames --postgres --out-file/out-files/schema.sql +1 -1
  8. package/__test__/dbml2sql/multiple_schema_mssql/out-files/multiple_schema.out.sql +1 -1
  9. package/__test__/dbml2sql/multiple_schema_mysql/out-files/multiple_schema.out.sql +1 -1
  10. package/__test__/dbml2sql/multiple_schema_pg/out-files/multiple_schema.out.sql +1 -1
  11. package/__test__/dbml2sql/syntax-error/dbml-error.log +648 -0
  12. package/__test__/sql2dbml/syntax-error/dbml-error.log +648 -0
  13. package/__test__/sql2dbml/syntax-error-duplicate-endpoints --mssql/dbml-error.log +1309 -0
  14. package/__test__/sql2dbml/syntax-error-duplicate-endpoints --mssql/in-files/schema.sql +17 -0
  15. package/__test__/sql2dbml/syntax-error-duplicate-endpoints --mssql/options.json +6 -0
  16. package/__test__/sql2dbml/syntax-error-duplicate-endpoints --mssql/stdout.txt +3 -0
  17. package/__test__/sql2dbml/syntax-error-duplicate-endpoints --mysql/dbml-error.log +1309 -0
  18. package/__test__/sql2dbml/syntax-error-duplicate-endpoints --mysql/in-files/schema.sql +17 -0
  19. package/__test__/sql2dbml/syntax-error-duplicate-endpoints --mysql/options.json +6 -0
  20. package/__test__/sql2dbml/syntax-error-duplicate-endpoints --mysql/stdout.txt +3 -0
  21. package/package.json +3 -3
@@ -23,7 +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
- if (path.basename(dirName) === 'syntax-error') {
26
+ // folder name contains `syntax-error`
27
+ if (path.basename(dirName).includes('syntax-error')) {
27
28
  expect(actualStdout).toContain(expectStdout);
28
29
  } else {
29
30
  expect(actualStdout).toBe(expectStdout);
@@ -1,6 +1,6 @@
1
1
  -- SQL dump generated using DBML (dbml-lang.org)
2
2
  -- Database: MySQL
3
- -- Generated at: 2023-02-07T09:45:04.861Z
3
+ -- Generated at: 2023-02-14T13:48:22.262Z
4
4
 
5
5
  CREATE TABLE `orders` (
6
6
  `id` int PRIMARY KEY AUTO_INCREMENT,
@@ -1,6 +1,6 @@
1
1
  -- SQL dump generated using DBML (dbml-lang.org)
2
2
  -- Database: PostgreSQL
3
- -- Generated at: 2023-02-07T09:45:05.347Z
3
+ -- Generated at: 2023-02-14T13:48:22.818Z
4
4
 
5
5
  CREATE TYPE "orders_status" AS ENUM (
6
6
  'created',
@@ -1,6 +1,6 @@
1
1
  -- SQL dump generated using DBML (dbml-lang.org)
2
2
  -- Database: PostgreSQL
3
- -- Generated at: 2023-02-07T09:45:05.605Z
3
+ -- Generated at: 2023-02-14T13:48:23.080Z
4
4
 
5
5
  CREATE TYPE "orders_status" AS ENUM (
6
6
  'created',
@@ -1,6 +1,6 @@
1
1
  -- SQL dump generated using DBML (dbml-lang.org)
2
2
  -- Database: MySQL
3
- -- Generated at: 2023-02-07T09:45:06.364Z
3
+ -- Generated at: 2023-02-14T13:48:23.891Z
4
4
 
5
5
  CREATE TABLE `staff` (
6
6
  `id` int PRIMARY KEY,
@@ -1,6 +1,6 @@
1
1
  -- SQL dump generated using DBML (dbml-lang.org)
2
2
  -- Database: PostgreSQL
3
- -- Generated at: 2023-02-07T09:45:06.855Z
3
+ -- Generated at: 2023-02-14T13:48:24.447Z
4
4
 
5
5
  CREATE TABLE "staff" (
6
6
  "id" int PRIMARY KEY,
@@ -1,6 +1,6 @@
1
1
  -- SQL dump generated using DBML (dbml-lang.org)
2
2
  -- Database: PostgreSQL
3
- -- Generated at: 2023-02-07T09:45:07.105Z
3
+ -- Generated at: 2023-02-14T13:48:24.728Z
4
4
 
5
5
  CREATE TABLE "staff" (
6
6
  "id" int PRIMARY KEY,
@@ -1,6 +1,6 @@
1
1
  -- SQL dump generated using DBML (dbml-lang.org)
2
2
  -- Database: SQL Server
3
- -- Generated at: 2023-02-07T09:45:07.848Z
3
+ -- Generated at: 2023-02-14T13:48:25.555Z
4
4
 
5
5
  CREATE SCHEMA [schemaB]
6
6
  GO
@@ -1,6 +1,6 @@
1
1
  -- SQL dump generated using DBML (dbml-lang.org)
2
2
  -- Database: MySQL
3
- -- Generated at: 2023-02-07T09:45:08.095Z
3
+ -- Generated at: 2023-02-14T13:48:25.802Z
4
4
 
5
5
  CREATE SCHEMA `schemaB`;
6
6
 
@@ -1,6 +1,6 @@
1
1
  -- SQL dump generated using DBML (dbml-lang.org)
2
2
  -- Database: PostgreSQL
3
- -- Generated at: 2023-02-07T09:45:08.339Z
3
+ -- Generated at: 2023-02-14T13:48:26.072Z
4
4
 
5
5
  CREATE SCHEMA "schemaB";
6
6