@dbml/core 6.3.0-alpha.8 → 6.4.0-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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package",
3
3
  "name": "@dbml/core",
4
- "version": "6.3.0-alpha.8",
4
+ "version": "6.4.0-alpha.0",
5
5
  "description": "> TODO: description",
6
6
  "author": "Holistics <dev@holistics.io>",
7
7
  "license": "Apache-2.0",
@@ -46,17 +46,18 @@
46
46
  "lint:fix": "eslint --fix ."
47
47
  },
48
48
  "dependencies": {
49
- "@dbml/parse": "^6.3.0-alpha.1",
49
+ "@dbml/parse": "^6.4.0-alpha.0",
50
50
  "antlr4": "^4.13.1",
51
51
  "lodash": "^4.17.15",
52
52
  "lodash-es": "^4.17.15",
53
+ "luxon": "^3.4.4",
53
54
  "parsimmon": "^1.13.0",
54
55
  "pluralize": "^8.0.0"
55
56
  },
56
57
  "devDependencies": {
57
58
  "bluebird": "^3.5.5"
58
59
  },
59
- "gitHead": "16a05e460e4b443fb8092d37d36f9253259b544a",
60
+ "gitHead": "ba26cc72483183193335e053d122c28d0aa13575",
60
61
  "engines": {
61
62
  "node": ">=16"
62
63
  }
@@ -1,7 +1,15 @@
1
1
  import Database, { NormalizedModel } from '../model_structure/database';
2
2
 
3
3
  export declare type ExportFormatOption = 'dbml' | 'mysql' | 'postgres' | 'json' | 'mssql' | 'oracle';
4
+ export interface ExportFlags {
5
+ isNormalized?: boolean;
6
+ includeRecords?: boolean;
7
+ }
4
8
  declare class ModelExporter {
5
- static export(model: Database | NormalizedModel, format: ExportFormatOption, isNormalized?: boolean): string;
9
+ /**
10
+ * @deprecated Passing a boolean as the third argument is deprecated. Use `{ isNormalized: boolean }` instead.
11
+ */
12
+ static export(model: Database | NormalizedModel, format: ExportFormatOption, isNormalized: boolean): string;
13
+ static export(model: Database | NormalizedModel, format: ExportFormatOption, flags?: ExportFlags): string;
6
14
  }
7
15
  export default ModelExporter;
@@ -1,7 +1,7 @@
1
- import { ExportFormatOption } from './ModelExporter';
1
+ import { ExportFormatOption, ExportFlags } from './ModelExporter';
2
2
  import { RecordValueType } from '../model_structure/database';
3
3
 
4
- declare function _export(str: string, format: ExportFormatOption): string;
4
+ declare function _export(str: string, format: ExportFormatOption, flags?: ExportFlags): string;
5
5
  declare const _default: {
6
6
  export: typeof _export;
7
7
  };