@dbml/core 3.4.2 → 3.5.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.
|
@@ -192,9 +192,9 @@ var DbmlExporter = /*#__PURE__*/function () {
|
|
|
192
192
|
var tableSettingStr = _this.getTableSettings(table);
|
|
193
193
|
var indexStr = '';
|
|
194
194
|
if (!_lodash["default"].isEmpty(tableContent.indexContents)) {
|
|
195
|
-
indexStr = "\
|
|
196
|
-
return "
|
|
197
|
-
}).join('\n'), "\n}");
|
|
195
|
+
indexStr = "\n Indexes {\n".concat(tableContent.indexContents.map(function (indexLine) {
|
|
196
|
+
return " ".concat(indexLine);
|
|
197
|
+
}).join('\n'), "\n }");
|
|
198
198
|
}
|
|
199
199
|
var tableNote = table.note ? " Note: ".concat(DbmlExporter.escapeNote(table.note), "\n") : '';
|
|
200
200
|
var tableStr = "Table ".concat((0, _utils.shouldPrintSchema)(schema, model) ? "\"".concat(schema.name, "\".") : '', "\"").concat(table.name, "\"").concat(tableSettingStr, " {\n").concat(tableContent.fieldContents.map(function (line) {
|
package/lib/index.js
CHANGED
|
@@ -21,6 +21,12 @@ Object.defineProperty(exports, "Parser", {
|
|
|
21
21
|
return _Parser["default"];
|
|
22
22
|
}
|
|
23
23
|
});
|
|
24
|
+
Object.defineProperty(exports, "VERSION", {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function get() {
|
|
27
|
+
return _version.VERSION;
|
|
28
|
+
}
|
|
29
|
+
});
|
|
24
30
|
Object.defineProperty(exports, "exporter", {
|
|
25
31
|
enumerable: true,
|
|
26
32
|
get: function get() {
|
|
@@ -38,4 +44,5 @@ var _Parser = _interopRequireDefault(require("./parse/Parser"));
|
|
|
38
44
|
var _error = require("../lib/parse/error");
|
|
39
45
|
var _import = _interopRequireDefault(require("./import"));
|
|
40
46
|
var _export = _interopRequireDefault(require("./export"));
|
|
47
|
+
var _version = require("./utils/version");
|
|
41
48
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -29,12 +29,14 @@ var IndexColumn = /*#__PURE__*/function (_Element) {
|
|
|
29
29
|
var _this;
|
|
30
30
|
var type = _ref.type,
|
|
31
31
|
value = _ref.value,
|
|
32
|
-
index = _ref.index
|
|
32
|
+
index = _ref.index,
|
|
33
|
+
token = _ref.token;
|
|
33
34
|
_classCallCheck(this, IndexColumn);
|
|
34
35
|
_this = _super.call(this);
|
|
35
36
|
_this.type = type;
|
|
36
37
|
_this.value = value;
|
|
37
38
|
_this.index = index;
|
|
39
|
+
_this.token = token;
|
|
38
40
|
_this.dbState = _this.index.dbState;
|
|
39
41
|
_this.generateId();
|
|
40
42
|
return _this;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dbml/core",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.5.0",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"author": "Holistics <dev@holistics.io>",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"prepublish": "npm run build"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@dbml/parse": "^3.
|
|
35
|
+
"@dbml/parse": "^3.5.0",
|
|
36
36
|
"antlr4": "^4.13.1",
|
|
37
37
|
"lodash": "^4.17.15",
|
|
38
38
|
"parsimmon": "^1.13.0",
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
"\\.(?!json$)[^.]*$": "@glen/jest-raw-loader"
|
|
60
60
|
}
|
|
61
61
|
},
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "8019ecd08dac769d4c448c401faed4cc90bed92b"
|
|
63
63
|
}
|