@dbml/core 3.13.5 → 3.13.6
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/LICENSE +0 -0
- package/README.md +0 -0
- package/lib/export/DbmlExporter.js +8 -10
- package/lib/export/JsonExporter.js +8 -10
- package/lib/export/ModelExporter.js +9 -11
- package/lib/export/MysqlExporter.js +14 -16
- package/lib/export/OracleExporter.js +17 -19
- package/lib/export/PostgresExporter.js +16 -18
- package/lib/export/README.md +0 -0
- package/lib/export/SqlServerExporter.js +14 -16
- package/lib/export/index.js +3 -4
- package/lib/export/utils.js +4 -0
- package/lib/import/index.js +3 -4
- package/lib/index.js +1 -1
- package/lib/model_structure/config.js +6 -12
- package/lib/model_structure/database.js +22 -26
- package/lib/model_structure/dbState.js +9 -11
- package/lib/model_structure/element.js +22 -25
- package/lib/model_structure/endpoint.js +26 -29
- package/lib/model_structure/enum.js +21 -24
- package/lib/model_structure/enumValue.js +21 -24
- package/lib/model_structure/field.js +21 -24
- package/lib/model_structure/indexColumn.js +21 -24
- package/lib/model_structure/indexes.js +21 -24
- package/lib/model_structure/ref.js +21 -24
- package/lib/model_structure/schema.js +21 -24
- package/lib/model_structure/stickyNote.js +21 -24
- package/lib/model_structure/table.js +26 -29
- package/lib/model_structure/tableGroup.js +21 -24
- package/lib/model_structure/tablePartial.js +21 -24
- package/lib/model_structure/utils.js +0 -0
- package/lib/parse/ANTLR/ASTGeneration/AST.js +21 -35
- package/lib/parse/ANTLR/ASTGeneration/ParserErrorListener.js +19 -22
- package/lib/parse/ANTLR/ASTGeneration/SyntaxError.js +21 -23
- package/lib/parse/ANTLR/ASTGeneration/constants.js +5 -9
- package/lib/parse/ANTLR/ASTGeneration/helpers.js +0 -0
- package/lib/parse/ANTLR/ASTGeneration/index.js +1 -1
- package/lib/parse/ANTLR/ASTGeneration/mssql/MssqlASTGen.js +55 -58
- package/lib/parse/ANTLR/ASTGeneration/mysql/MySQLASTGen.js +54 -58
- package/lib/parse/ANTLR/ASTGeneration/postgres/PostgreSQLLexerBase.js +17 -19
- package/lib/parse/ANTLR/ASTGeneration/postgres/PostgreSQLParserBase.js +17 -19
- package/lib/parse/ANTLR/ASTGeneration/postgres/PostgresASTGen.js +38 -42
- package/lib/parse/ANTLR/ASTGeneration/snowflake/SnowflakeASTGen.js +28 -31
- package/lib/parse/ANTLR/README.md +0 -0
- package/lib/parse/ANTLR/parsers/mssql/TSqlLexer.g4 +0 -0
- package/lib/parse/ANTLR/parsers/mssql/TSqlLexer.interp +0 -0
- package/lib/parse/ANTLR/parsers/mssql/TSqlLexer.js +19 -21
- package/lib/parse/ANTLR/parsers/mssql/TSqlLexer.tokens +0 -0
- package/lib/parse/ANTLR/parsers/mssql/TSqlParser.g4 +0 -0
- package/lib/parse/ANTLR/parsers/mssql/TSqlParser.interp +0 -0
- package/lib/parse/ANTLR/parsers/mssql/TSqlParser.js +2 -2
- package/lib/parse/ANTLR/parsers/mssql/TSqlParser.tokens +0 -0
- package/lib/parse/ANTLR/parsers/mssql/TSqlParserVisitor.js +19 -22
- package/lib/parse/ANTLR/parsers/mysql/MySqlLexer.g4 +0 -0
- package/lib/parse/ANTLR/parsers/mysql/MySqlLexer.interp +0 -0
- package/lib/parse/ANTLR/parsers/mysql/MySqlLexer.js +19 -21
- package/lib/parse/ANTLR/parsers/mysql/MySqlLexer.tokens +0 -0
- package/lib/parse/ANTLR/parsers/mysql/MySqlParser.g4 +0 -0
- package/lib/parse/ANTLR/parsers/mysql/MySqlParser.interp +0 -0
- package/lib/parse/ANTLR/parsers/mysql/MySqlParser.js +2 -2
- package/lib/parse/ANTLR/parsers/mysql/MySqlParser.tokens +0 -0
- package/lib/parse/ANTLR/parsers/mysql/MySqlParserVisitor.js +19 -22
- package/lib/parse/ANTLR/parsers/postgresql/PostgreSQLLexer.g4 +0 -0
- package/lib/parse/ANTLR/parsers/postgresql/PostgreSQLLexer.interp +0 -0
- package/lib/parse/ANTLR/parsers/postgresql/PostgreSQLLexer.js +20 -23
- package/lib/parse/ANTLR/parsers/postgresql/PostgreSQLLexer.tokens +0 -0
- package/lib/parse/ANTLR/parsers/postgresql/PostgreSQLParser.g4 +0 -0
- package/lib/parse/ANTLR/parsers/postgresql/PostgreSQLParser.interp +0 -0
- package/lib/parse/ANTLR/parsers/postgresql/PostgreSQLParser.js +2 -2
- package/lib/parse/ANTLR/parsers/postgresql/PostgreSQLParser.tokens +0 -0
- package/lib/parse/ANTLR/parsers/postgresql/PostgreSQLParserVisitor.js +19 -22
- package/lib/parse/ANTLR/parsers/postgresql/README.md +0 -0
- package/lib/parse/ANTLR/parsers/snowflake/SnowflakeLexer.g4 +0 -0
- package/lib/parse/ANTLR/parsers/snowflake/SnowflakeLexer.interp +0 -0
- package/lib/parse/ANTLR/parsers/snowflake/SnowflakeLexer.js +19 -21
- package/lib/parse/ANTLR/parsers/snowflake/SnowflakeLexer.tokens +0 -0
- package/lib/parse/ANTLR/parsers/snowflake/SnowflakeParser.g4 +0 -0
- package/lib/parse/ANTLR/parsers/snowflake/SnowflakeParser.interp +0 -0
- package/lib/parse/ANTLR/parsers/snowflake/SnowflakeParser.js +2 -2
- package/lib/parse/ANTLR/parsers/snowflake/SnowflakeParser.tokens +0 -0
- package/lib/parse/ANTLR/parsers/snowflake/SnowflakeParserVisitor.js +19 -22
- package/lib/parse/Parser.js +9 -11
- package/lib/parse/buildParser.js +6 -6
- package/lib/parse/databaseGenerator.js +3 -4
- package/lib/parse/dbml/parser.pegjs +0 -0
- package/lib/parse/dbmlParser.js +11 -11
- package/lib/parse/error.js +8 -10
- package/lib/parse/mssql/base_parsers.js +0 -0
- package/lib/parse/mssql/column_definition/actions.js +0 -0
- package/lib/parse/mssql/column_definition/index.js +0 -0
- package/lib/parse/mssql/constraint_definition/actions.js +6 -7
- package/lib/parse/mssql/constraint_definition/index.js +0 -0
- package/lib/parse/mssql/expression.js +0 -0
- package/lib/parse/mssql/fk_definition/actions.js +0 -0
- package/lib/parse/mssql/fk_definition/index.js +0 -0
- package/lib/parse/mssql/index.js +0 -0
- package/lib/parse/mssql/index_definition/actions.js +0 -0
- package/lib/parse/mssql/index_definition/index.js +0 -0
- package/lib/parse/mssql/keyword_parsers.js +0 -0
- package/lib/parse/mssql/keyword_utils.js +0 -0
- package/lib/parse/mssql/statements/actions.js +0 -0
- package/lib/parse/mssql/statements/index.js +0 -0
- package/lib/parse/mssql/statements/statement_types/alter_table/actions.js +0 -0
- package/lib/parse/mssql/statements/statement_types/alter_table/add/actions.js +0 -0
- package/lib/parse/mssql/statements/statement_types/alter_table/add/index.js +0 -0
- package/lib/parse/mssql/statements/statement_types/alter_table/index.js +0 -0
- package/lib/parse/mssql/statements/statement_types/comments/actions.js +0 -0
- package/lib/parse/mssql/statements/statement_types/comments/index.js +5 -5
- package/lib/parse/mssql/statements/statement_types/create_index/actions.js +0 -0
- package/lib/parse/mssql/statements/statement_types/create_index/index.js +0 -0
- package/lib/parse/mssql/statements/statement_types/create_table/actions.js +6 -6
- package/lib/parse/mssql/statements/statement_types/create_table/index.js +0 -0
- package/lib/parse/mssql/statements/statement_types/index.js +0 -0
- package/lib/parse/mssql/utils.js +1 -1
- package/lib/parse/mssql/whitespaces.js +0 -0
- package/lib/parse/mssqlParser.js +2 -3
- package/lib/parse/mysql/parser.pegjs +0 -0
- package/lib/parse/mysqlParser.js +11 -11
- package/lib/parse/postgresParser.js +1 -1
- package/lib/parse/postgresql/Base_rules.pegjs +0 -0
- package/lib/parse/postgresql/Commands/Alter_table/Alter_table.pegjs +0 -0
- package/lib/parse/postgresql/Commands/Commands.pegjs +0 -0
- package/lib/parse/postgresql/Commands/Comment.pegjs +0 -0
- package/lib/parse/postgresql/Commands/Create_index.pegjs +0 -0
- package/lib/parse/postgresql/Commands/Create_table/Create_table.pegjs +0 -0
- package/lib/parse/postgresql/Commands/Create_table/Create_table_normal.pegjs +0 -0
- package/lib/parse/postgresql/Commands/Create_table/Create_table_of.pegjs +0 -0
- package/lib/parse/postgresql/Commands/Create_table/Create_table_partition_of.pegjs +0 -0
- package/lib/parse/postgresql/Commands/Create_type/Create_type.pegjs +0 -0
- package/lib/parse/postgresql/Commands/Create_type/Create_type_enum.pegjs +0 -0
- package/lib/parse/postgresql/Commands/Create_type/Create_type_range.pegjs +0 -0
- package/lib/parse/postgresql/Commands/Ignore_syntax.pegjs +0 -0
- package/lib/parse/postgresql/Expression.pegjs +0 -0
- package/lib/parse/postgresql/InitializerUtils.pegjs +0 -0
- package/lib/parse/postgresql/Keywords.pegjs +0 -0
- package/lib/parse/postgresql/get_parser.js +1 -1
- package/lib/parse/postgresql/parser.pegjs +0 -0
- package/lib/parse/schemarb/parser.pegjs +0 -0
- package/lib/parse/schemarbParser.js +8 -10
- package/lib/utils/version.js +1 -2
- package/package.json +3 -3
- package/types/export/ModelExporter.d.ts +0 -0
- package/types/export/index.d.ts +0 -0
- package/types/import/index.d.ts +0 -0
- package/types/index.d.ts +0 -0
- package/types/model_structure/database.d.ts +0 -0
- package/types/model_structure/dbState.d.ts +0 -0
- package/types/model_structure/element.d.ts +0 -0
- package/types/model_structure/endpoint.d.ts +0 -0
- package/types/model_structure/enum.d.ts +0 -0
- package/types/model_structure/enumValue.d.ts +0 -0
- package/types/model_structure/field.d.ts +0 -0
- package/types/model_structure/indexColumn.d.ts +0 -0
- package/types/model_structure/indexes.d.ts +0 -0
- package/types/model_structure/ref.d.ts +0 -0
- package/types/model_structure/schema.d.ts +0 -0
- package/types/model_structure/stickyNote.d.ts +0 -0
- package/types/model_structure/table.d.ts +0 -0
- package/types/model_structure/tableGroup.d.ts +0 -0
- package/types/model_structure/tablePartial.d.ts +0 -0
- package/types/parse/Parser.d.ts +0 -0
- package/types/parse/error.d.ts +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(
|
|
3
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
@@ -9,32 +9,32 @@ var _lodash = require("lodash");
|
|
|
9
9
|
var _MySqlParserVisitor = _interopRequireDefault(require("../../parsers/mysql/MySqlParserVisitor"));
|
|
10
10
|
var _AST = require("../AST");
|
|
11
11
|
var _constants = require("../constants");
|
|
12
|
-
function _interopRequireDefault(
|
|
13
|
-
function ownKeys(
|
|
14
|
-
function _objectSpread(
|
|
15
|
-
function _defineProperty(
|
|
16
|
-
function _toConsumableArray(
|
|
12
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
13
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
14
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
15
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
16
|
+
function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
|
|
17
17
|
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
18
|
-
function _iterableToArray(
|
|
19
|
-
function _arrayWithoutHoles(
|
|
20
|
-
function _slicedToArray(
|
|
18
|
+
function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
|
|
19
|
+
function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
|
|
20
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
21
21
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
22
|
-
function _unsupportedIterableToArray(
|
|
23
|
-
function _arrayLikeToArray(
|
|
24
|
-
function _iterableToArrayLimit(
|
|
25
|
-
function _arrayWithHoles(
|
|
26
|
-
function _classCallCheck(
|
|
27
|
-
function _defineProperties(
|
|
28
|
-
function _createClass(
|
|
29
|
-
function _toPropertyKey(
|
|
30
|
-
function _toPrimitive(
|
|
31
|
-
function
|
|
32
|
-
function
|
|
33
|
-
function
|
|
34
|
-
function
|
|
35
|
-
function
|
|
36
|
-
function
|
|
37
|
-
function
|
|
22
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
23
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
24
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
25
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
26
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
27
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
28
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
29
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
30
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
31
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
32
|
+
function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
|
|
33
|
+
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
34
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
35
|
+
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
|
36
|
+
function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
|
|
37
|
+
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); } /* eslint-disable class-methods-use-this */
|
|
38
38
|
var TABLE_OPTIONS_KIND = {
|
|
39
39
|
NOTE: 'note'
|
|
40
40
|
};
|
|
@@ -63,13 +63,11 @@ var getFieldNames = function getFieldNames(names) {
|
|
|
63
63
|
schemaName: schemaName
|
|
64
64
|
};
|
|
65
65
|
};
|
|
66
|
-
var MySQLASTGen = /*#__PURE__*/function (_MySQLParserVisitor) {
|
|
67
|
-
_inherits(MySQLASTGen, _MySQLParserVisitor);
|
|
68
|
-
var _super = _createSuper(MySQLASTGen);
|
|
66
|
+
var MySQLASTGen = exports["default"] = /*#__PURE__*/function (_MySQLParserVisitor) {
|
|
69
67
|
function MySQLASTGen() {
|
|
70
68
|
var _this;
|
|
71
69
|
_classCallCheck(this, MySQLASTGen);
|
|
72
|
-
_this =
|
|
70
|
+
_this = _callSuper(this, MySQLASTGen);
|
|
73
71
|
_this.data = {
|
|
74
72
|
schemas: [],
|
|
75
73
|
tables: [],
|
|
@@ -84,7 +82,8 @@ var MySQLASTGen = /*#__PURE__*/function (_MySQLParserVisitor) {
|
|
|
84
82
|
}
|
|
85
83
|
|
|
86
84
|
// TODO: support configurable default schema name other than 'public'
|
|
87
|
-
|
|
85
|
+
_inherits(MySQLASTGen, _MySQLParserVisitor);
|
|
86
|
+
return _createClass(MySQLASTGen, [{
|
|
88
87
|
key: "findTable",
|
|
89
88
|
value: function findTable(schemaName, tableName) {
|
|
90
89
|
var realSchemaName = schemaName || 'public';
|
|
@@ -100,7 +99,7 @@ var MySQLASTGen = /*#__PURE__*/function (_MySQLParserVisitor) {
|
|
|
100
99
|
key: "visitRoot",
|
|
101
100
|
value: function visitRoot(ctx) {
|
|
102
101
|
var _ctx$sqlStatements;
|
|
103
|
-
(_ctx$sqlStatements = ctx.sqlStatements()) === null || _ctx$sqlStatements === void 0
|
|
102
|
+
(_ctx$sqlStatements = ctx.sqlStatements()) === null || _ctx$sqlStatements === void 0 || _ctx$sqlStatements.accept(this);
|
|
104
103
|
return this.data;
|
|
105
104
|
}
|
|
106
105
|
|
|
@@ -677,7 +676,6 @@ var MySQLASTGen = /*#__PURE__*/function (_MySQLParserVisitor) {
|
|
|
677
676
|
type: _constants.DATA_TYPE.BOOLEAN // same behavior as the legacy parser
|
|
678
677
|
};
|
|
679
678
|
}
|
|
680
|
-
|
|
681
679
|
if (ctx.expression()) {
|
|
682
680
|
return {
|
|
683
681
|
value: ctx.expression().getText(),
|
|
@@ -802,9 +800,9 @@ var MySQLASTGen = /*#__PURE__*/function (_MySQLParserVisitor) {
|
|
|
802
800
|
}, {
|
|
803
801
|
key: "visitIndexColumnNames",
|
|
804
802
|
value: function visitIndexColumnNames(ctx) {
|
|
805
|
-
var
|
|
803
|
+
var _this0 = this;
|
|
806
804
|
return ctx.indexColumnName().map(function (indexColumnName) {
|
|
807
|
-
return indexColumnName.accept(
|
|
805
|
+
return indexColumnName.accept(_this0);
|
|
808
806
|
});
|
|
809
807
|
}
|
|
810
808
|
|
|
@@ -869,12 +867,12 @@ var MySQLASTGen = /*#__PURE__*/function (_MySQLParserVisitor) {
|
|
|
869
867
|
_ctx$index,
|
|
870
868
|
_ctx$indexType,
|
|
871
869
|
_ctx$indexOption,
|
|
872
|
-
|
|
870
|
+
_this1 = this;
|
|
873
871
|
var name = ((_ctx$name = ctx.name) === null || _ctx$name === void 0 ? void 0 : _ctx$name.accept(this)) || ((_ctx$index = ctx.index) === null || _ctx$index === void 0 ? void 0 : _ctx$index.accept(this));
|
|
874
872
|
var type = (_ctx$indexType = ctx.indexType()) === null || _ctx$indexType === void 0 ? void 0 : _ctx$indexType.accept(this);
|
|
875
873
|
if ((_ctx$indexOption = ctx.indexOption()) !== null && _ctx$indexOption !== void 0 && _ctx$indexOption.length) {
|
|
876
874
|
var indexOptions = ctx.indexOption().map(function (io) {
|
|
877
|
-
return io.accept(
|
|
875
|
+
return io.accept(_this1);
|
|
878
876
|
});
|
|
879
877
|
var typeOption = indexOptions.find(function (io) {
|
|
880
878
|
return (io === null || io === void 0 ? void 0 : io.kind) === INDEX_OPTION_KIND.TYPE;
|
|
@@ -899,12 +897,12 @@ var MySQLASTGen = /*#__PURE__*/function (_MySQLParserVisitor) {
|
|
|
899
897
|
_ctx$index2,
|
|
900
898
|
_ctx$indexType2,
|
|
901
899
|
_ctx$indexOption2,
|
|
902
|
-
|
|
900
|
+
_this10 = this;
|
|
903
901
|
var name = ((_ctx$name2 = ctx.name) === null || _ctx$name2 === void 0 ? void 0 : _ctx$name2.accept(this)) || ((_ctx$index2 = ctx.index) === null || _ctx$index2 === void 0 ? void 0 : _ctx$index2.accept(this));
|
|
904
902
|
var type = (_ctx$indexType2 = ctx.indexType()) === null || _ctx$indexType2 === void 0 ? void 0 : _ctx$indexType2.accept(this);
|
|
905
903
|
if ((_ctx$indexOption2 = ctx.indexOption()) !== null && _ctx$indexOption2 !== void 0 && _ctx$indexOption2.length) {
|
|
906
904
|
var indexOptions = ctx.indexOption().map(function (io) {
|
|
907
|
-
return io.accept(
|
|
905
|
+
return io.accept(_this10);
|
|
908
906
|
});
|
|
909
907
|
var typeOption = indexOptions.find(function (io) {
|
|
910
908
|
return (io === null || io === void 0 ? void 0 : io.kind) === INDEX_OPTION_KIND.TYPE;
|
|
@@ -972,12 +970,12 @@ var MySQLASTGen = /*#__PURE__*/function (_MySQLParserVisitor) {
|
|
|
972
970
|
var _ctx$uid,
|
|
973
971
|
_ctx$indexType3,
|
|
974
972
|
_ctx$indexOption3,
|
|
975
|
-
|
|
973
|
+
_this11 = this;
|
|
976
974
|
var name = (_ctx$uid = ctx.uid()) === null || _ctx$uid === void 0 ? void 0 : _ctx$uid.accept(this);
|
|
977
975
|
var type = (_ctx$indexType3 = ctx.indexType()) === null || _ctx$indexType3 === void 0 ? void 0 : _ctx$indexType3.accept(this);
|
|
978
976
|
if ((_ctx$indexOption3 = ctx.indexOption()) !== null && _ctx$indexOption3 !== void 0 && _ctx$indexOption3.length) {
|
|
979
977
|
var indexOptions = ctx.indexOption().map(function (io) {
|
|
980
|
-
return io.accept(
|
|
978
|
+
return io.accept(_this11);
|
|
981
979
|
});
|
|
982
980
|
var typeOption = indexOptions.find(function (io) {
|
|
983
981
|
return (io === null || io === void 0 ? void 0 : io.kind) === INDEX_OPTION_KIND.TYPE;
|
|
@@ -999,12 +997,12 @@ var MySQLASTGen = /*#__PURE__*/function (_MySQLParserVisitor) {
|
|
|
999
997
|
value: function visitSpecialIndexDeclaration(ctx) {
|
|
1000
998
|
var _ctx$uid2,
|
|
1001
999
|
_ctx$indexOption4,
|
|
1002
|
-
|
|
1000
|
+
_this12 = this;
|
|
1003
1001
|
var name = (_ctx$uid2 = ctx.uid()) === null || _ctx$uid2 === void 0 ? void 0 : _ctx$uid2.accept(this);
|
|
1004
1002
|
var type = null;
|
|
1005
1003
|
if ((_ctx$indexOption4 = ctx.indexOption()) !== null && _ctx$indexOption4 !== void 0 && _ctx$indexOption4.length) {
|
|
1006
1004
|
var indexOptions = ctx.indexOption().map(function (io) {
|
|
1007
|
-
return io.accept(
|
|
1005
|
+
return io.accept(_this12);
|
|
1008
1006
|
});
|
|
1009
1007
|
var typeOption = indexOptions.find(function (io) {
|
|
1010
1008
|
return (io === null || io === void 0 ? void 0 : io.kind) === INDEX_OPTION_KIND.TYPE;
|
|
@@ -1027,7 +1025,7 @@ var MySQLASTGen = /*#__PURE__*/function (_MySQLParserVisitor) {
|
|
|
1027
1025
|
key: "visitAlterTable",
|
|
1028
1026
|
value: function visitAlterTable(ctx) {
|
|
1029
1027
|
var _ctx$alterSpecificati,
|
|
1030
|
-
|
|
1028
|
+
_this13 = this;
|
|
1031
1029
|
var names = ctx.tableName().accept(this);
|
|
1032
1030
|
var _getTableNames4 = getTableNames(names),
|
|
1033
1031
|
tableName = _getTableNames4.tableName,
|
|
@@ -1037,7 +1035,7 @@ var MySQLASTGen = /*#__PURE__*/function (_MySQLParserVisitor) {
|
|
|
1037
1035
|
var table = this.findTable(schemaName, tableName);
|
|
1038
1036
|
if (!table) return;
|
|
1039
1037
|
var alterSpecs = ((_ctx$alterSpecificati = ctx.alterSpecification()) === null || _ctx$alterSpecificati === void 0 ? void 0 : _ctx$alterSpecificati.map(function (spec) {
|
|
1040
|
-
return spec.accept(
|
|
1038
|
+
return spec.accept(_this13);
|
|
1041
1039
|
}).filter(function (spec) {
|
|
1042
1040
|
return spec === null || spec === void 0 ? void 0 : spec.kind;
|
|
1043
1041
|
})) || [];
|
|
@@ -1055,7 +1053,7 @@ var MySQLASTGen = /*#__PURE__*/function (_MySQLParserVisitor) {
|
|
|
1055
1053
|
var ref = alter.value;
|
|
1056
1054
|
ref.endpoints[0].schemaName = schemaName;
|
|
1057
1055
|
ref.endpoints[0].tableName = tableName;
|
|
1058
|
-
|
|
1056
|
+
_this13.data.refs.push(ref);
|
|
1059
1057
|
}
|
|
1060
1058
|
return null;
|
|
1061
1059
|
});
|
|
@@ -1073,12 +1071,12 @@ var MySQLASTGen = /*#__PURE__*/function (_MySQLParserVisitor) {
|
|
|
1073
1071
|
_ctx$index4,
|
|
1074
1072
|
_ctx$indexType4,
|
|
1075
1073
|
_ctx$indexOption5,
|
|
1076
|
-
|
|
1074
|
+
_this14 = this;
|
|
1077
1075
|
var name = ((_ctx$name4 = ctx.name) === null || _ctx$name4 === void 0 ? void 0 : _ctx$name4.accept(this)) || ((_ctx$index4 = ctx.index) === null || _ctx$index4 === void 0 ? void 0 : _ctx$index4.accept(this));
|
|
1078
1076
|
var type = (_ctx$indexType4 = ctx.indexType()) === null || _ctx$indexType4 === void 0 ? void 0 : _ctx$indexType4.accept(this);
|
|
1079
1077
|
if ((_ctx$indexOption5 = ctx.indexOption()) !== null && _ctx$indexOption5 !== void 0 && _ctx$indexOption5.length) {
|
|
1080
1078
|
var indexOptions = ctx.indexOption().map(function (io) {
|
|
1081
|
-
return io.accept(
|
|
1079
|
+
return io.accept(_this14);
|
|
1082
1080
|
});
|
|
1083
1081
|
var typeOption = indexOptions.find(function (io) {
|
|
1084
1082
|
return (io === null || io === void 0 ? void 0 : io.kind) === INDEX_OPTION_KIND.TYPE;
|
|
@@ -1120,7 +1118,7 @@ var MySQLASTGen = /*#__PURE__*/function (_MySQLParserVisitor) {
|
|
|
1120
1118
|
value: function visitCreateIndex(ctx) {
|
|
1121
1119
|
var _ctx$indexType5,
|
|
1122
1120
|
_ctx$indexOption6,
|
|
1123
|
-
|
|
1121
|
+
_this15 = this;
|
|
1124
1122
|
var tableNames = ctx.tableName().accept(this);
|
|
1125
1123
|
var _getTableNames5 = getTableNames(tableNames),
|
|
1126
1124
|
tableName = _getTableNames5.tableName,
|
|
@@ -1131,7 +1129,7 @@ var MySQLASTGen = /*#__PURE__*/function (_MySQLParserVisitor) {
|
|
|
1131
1129
|
var type = (_ctx$indexType5 = ctx.indexType()) === null || _ctx$indexType5 === void 0 ? void 0 : _ctx$indexType5.accept(this);
|
|
1132
1130
|
if ((_ctx$indexOption6 = ctx.indexOption()) !== null && _ctx$indexOption6 !== void 0 && _ctx$indexOption6.length) {
|
|
1133
1131
|
var indexOptions = ctx.indexOption().map(function (io) {
|
|
1134
|
-
return io.accept(
|
|
1132
|
+
return io.accept(_this15);
|
|
1135
1133
|
});
|
|
1136
1134
|
var typeOption = indexOptions.find(function (io) {
|
|
1137
1135
|
return (io === null || io === void 0 ? void 0 : io.kind) === INDEX_OPTION_KIND.TYPE;
|
|
@@ -1196,10 +1194,10 @@ var MySQLASTGen = /*#__PURE__*/function (_MySQLParserVisitor) {
|
|
|
1196
1194
|
}, {
|
|
1197
1195
|
key: "visitFullColumnNameList",
|
|
1198
1196
|
value: function visitFullColumnNameList(ctx) {
|
|
1199
|
-
var
|
|
1197
|
+
var _this16 = this;
|
|
1200
1198
|
// [ [ 'id' ], [ 'name' ], [ 'email' ], [ 'created_at' ] ]
|
|
1201
1199
|
var columns = ctx.fullColumnName().map(function (fullColumn) {
|
|
1202
|
-
return fullColumn.accept(
|
|
1200
|
+
return fullColumn.accept(_this16);
|
|
1203
1201
|
});
|
|
1204
1202
|
return (0, _lodash.flattenDepth)(columns, 1);
|
|
1205
1203
|
}
|
|
@@ -1213,7 +1211,7 @@ var MySQLASTGen = /*#__PURE__*/function (_MySQLParserVisitor) {
|
|
|
1213
1211
|
}, {
|
|
1214
1212
|
key: "visitInsertStatementValue",
|
|
1215
1213
|
value: function visitInsertStatementValue(ctx) {
|
|
1216
|
-
var
|
|
1214
|
+
var _this17 = this;
|
|
1217
1215
|
return ctx.expressionsWithDefaults().map(function (expression) {
|
|
1218
1216
|
// [
|
|
1219
1217
|
// [ { value: '1', type: 'number' } ],
|
|
@@ -1222,7 +1220,7 @@ var MySQLASTGen = /*#__PURE__*/function (_MySQLParserVisitor) {
|
|
|
1222
1220
|
// [ { value: '2021-01-01', type: 'string' } ],
|
|
1223
1221
|
// [ { value: '2021-01-01', type: 'string' } ],
|
|
1224
1222
|
// ]
|
|
1225
|
-
var rowValues = expression.accept(
|
|
1223
|
+
var rowValues = expression.accept(_this17);
|
|
1226
1224
|
return (0, _lodash.flattenDepth)(rowValues, 1);
|
|
1227
1225
|
});
|
|
1228
1226
|
}
|
|
@@ -1233,9 +1231,9 @@ var MySQLASTGen = /*#__PURE__*/function (_MySQLParserVisitor) {
|
|
|
1233
1231
|
}, {
|
|
1234
1232
|
key: "visitExpressionsWithDefaults",
|
|
1235
1233
|
value: function visitExpressionsWithDefaults(ctx) {
|
|
1236
|
-
var
|
|
1234
|
+
var _this18 = this;
|
|
1237
1235
|
return ctx.expressionOrDefault().map(function (expressionOrDefault) {
|
|
1238
|
-
var rawValues = expressionOrDefault.accept(
|
|
1236
|
+
var rawValues = expressionOrDefault.accept(_this18);
|
|
1239
1237
|
|
|
1240
1238
|
// We get the value of the column (constantExpressionAtom or functionCallExpressionAtom) through:
|
|
1241
1239
|
// expression->predicate->expressionAtom
|
|
@@ -1296,6 +1294,4 @@ var MySQLASTGen = /*#__PURE__*/function (_MySQLParserVisitor) {
|
|
|
1296
1294
|
};
|
|
1297
1295
|
}
|
|
1298
1296
|
}]);
|
|
1299
|
-
|
|
1300
|
-
}(_MySqlParserVisitor["default"]);
|
|
1301
|
-
exports["default"] = MySQLASTGen;
|
|
1297
|
+
}(_MySqlParserVisitor["default"]);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(
|
|
3
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
@@ -11,33 +11,31 @@ exports["default"] = void 0;
|
|
|
11
11
|
exports.isTag = isTag;
|
|
12
12
|
exports.pushTag = pushTag;
|
|
13
13
|
var _antlr = _interopRequireDefault(require("antlr4"));
|
|
14
|
-
function _interopRequireDefault(
|
|
15
|
-
function _defineProperties(
|
|
16
|
-
function _createClass(
|
|
17
|
-
function _toPropertyKey(
|
|
18
|
-
function _toPrimitive(
|
|
19
|
-
function _classCallCheck(
|
|
20
|
-
function
|
|
21
|
-
function
|
|
22
|
-
function
|
|
23
|
-
function
|
|
24
|
-
function
|
|
25
|
-
function
|
|
26
|
-
function
|
|
14
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
15
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
16
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
17
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
18
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
19
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
20
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
21
|
+
function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
|
|
22
|
+
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
23
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
24
|
+
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
|
25
|
+
function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
|
|
26
|
+
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
27
27
|
// original (C#): https://github.com/antlr/grammars-v4/blob/master/sql/postgresql/CSharp/PostgreSQLLexerBase.cs
|
|
28
28
|
// Base class required by the generated lexer
|
|
29
|
-
var PostgreSQLLexerBase = /*#__PURE__*/function (_antlr4$Lexer) {
|
|
30
|
-
_inherits(PostgreSQLLexerBase, _antlr4$Lexer);
|
|
31
|
-
var _super = _createSuper(PostgreSQLLexerBase);
|
|
29
|
+
var PostgreSQLLexerBase = exports["default"] = /*#__PURE__*/function (_antlr4$Lexer) {
|
|
32
30
|
function PostgreSQLLexerBase() {
|
|
33
31
|
_classCallCheck(this, PostgreSQLLexerBase);
|
|
34
|
-
return
|
|
32
|
+
return _callSuper(this, PostgreSQLLexerBase, arguments);
|
|
35
33
|
}
|
|
34
|
+
_inherits(PostgreSQLLexerBase, _antlr4$Lexer);
|
|
36
35
|
return _createClass(PostgreSQLLexerBase);
|
|
37
36
|
}(_antlr["default"].Lexer); // helper functions required by the generated grammar, these were called implicitly without the 'this.' keyword
|
|
38
37
|
// In C#, these can be decleare as base classes's methods, this won't work in JS.
|
|
39
38
|
// To avoid error, we declare their signature and import them in the generated PostgreSQLLexer.js
|
|
40
|
-
exports["default"] = PostgreSQLLexerBase;
|
|
41
39
|
function checkLA() {}
|
|
42
40
|
function HandleLessLessGreaterGreater() {}
|
|
43
41
|
function pushTag() {}
|
|
@@ -1,37 +1,35 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(
|
|
3
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.ParseRoutineBody = ParseRoutineBody;
|
|
8
8
|
exports["default"] = void 0;
|
|
9
9
|
var _antlr = _interopRequireDefault(require("antlr4"));
|
|
10
|
-
function _interopRequireDefault(
|
|
11
|
-
function _defineProperties(
|
|
12
|
-
function _createClass(
|
|
13
|
-
function _toPropertyKey(
|
|
14
|
-
function _toPrimitive(
|
|
15
|
-
function _classCallCheck(
|
|
16
|
-
function
|
|
17
|
-
function
|
|
18
|
-
function
|
|
19
|
-
function
|
|
20
|
-
function
|
|
21
|
-
function
|
|
22
|
-
function
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
11
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
12
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
13
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
14
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
15
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
16
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
17
|
+
function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
|
|
18
|
+
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
19
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
20
|
+
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
|
21
|
+
function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
|
|
22
|
+
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
23
23
|
// Original (C#): https://github.com/antlr/grammars-v4/blob/master/sql/postgresql/CSharp/PostgreSQLLexerBase.cs
|
|
24
24
|
// Base class required by the generated parser
|
|
25
|
-
var PostgreSQLParserBase = /*#__PURE__*/function (_antlr4$Parser) {
|
|
26
|
-
_inherits(PostgreSQLParserBase, _antlr4$Parser);
|
|
27
|
-
var _super = _createSuper(PostgreSQLParserBase);
|
|
25
|
+
var PostgreSQLParserBase = exports["default"] = /*#__PURE__*/function (_antlr4$Parser) {
|
|
28
26
|
function PostgreSQLParserBase() {
|
|
29
27
|
_classCallCheck(this, PostgreSQLParserBase);
|
|
30
|
-
return
|
|
28
|
+
return _callSuper(this, PostgreSQLParserBase, arguments);
|
|
31
29
|
}
|
|
30
|
+
_inherits(PostgreSQLParserBase, _antlr4$Parser);
|
|
32
31
|
return _createClass(PostgreSQLParserBase);
|
|
33
32
|
}(_antlr["default"].Parser); // helper function required by the generated grammar, these were called implicitly without the 'this.' keyword
|
|
34
33
|
// In C#, these can be decleare as base classes's methods, this won't work in JS.
|
|
35
34
|
// To avoid error, we declare their signature and import them in the generated PostgreSQLParser.js
|
|
36
|
-
exports["default"] = PostgreSQLParserBase;
|
|
37
35
|
function ParseRoutineBody() {}
|