@abaplint/core 2.113.145 → 2.113.147

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.
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CloseCursor = void 0;
4
+ const Expressions = require("../../2_statements/expressions");
5
+ const sql_source_1 = require("../expressions/sql_source");
6
+ class CloseCursor {
7
+ runSyntax(node, input) {
8
+ for (const t of node.findAllExpressions(Expressions.SQLSourceSimple)) {
9
+ sql_source_1.SQLSource.runSyntax(t, input);
10
+ }
11
+ }
12
+ }
13
+ exports.CloseCursor = CloseCursor;
14
+ //# sourceMappingURL=close_cursor.js.map
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FetchNextCursor = void 0;
4
+ const Expressions = require("../../2_statements/expressions");
5
+ const target_1 = require("../expressions/target");
6
+ class FetchNextCursor {
7
+ runSyntax(node, input) {
8
+ for (const t of node.findAllExpressions(Expressions.Target)) {
9
+ target_1.Target.runSyntax(t, input);
10
+ }
11
+ }
12
+ }
13
+ exports.FetchNextCursor = FetchNextCursor;
14
+ //# sourceMappingURL=fetch_next_cursor.js.map
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OpenCursor = void 0;
4
+ const Expressions = require("../../2_statements/expressions");
5
+ const target_1 = require("../expressions/target");
6
+ class OpenCursor {
7
+ runSyntax(node, input) {
8
+ for (const t of node.findAllExpressions(Expressions.Target)) {
9
+ target_1.Target.runSyntax(t, input);
10
+ }
11
+ }
12
+ }
13
+ exports.OpenCursor = OpenCursor;
14
+ //# sourceMappingURL=open_cursor.js.map
@@ -84,6 +84,9 @@ const get_reference_1 = require("./statements/get_reference");
84
84
  const insert_database_1 = require("./statements/insert_database");
85
85
  const delete_database_1 = require("./statements/delete_database");
86
86
  const import_dynpro_1 = require("./statements/import_dynpro");
87
+ const open_cursor_1 = require("./statements/open_cursor");
88
+ const fetch_next_cursor_1 = require("./statements/fetch_next_cursor");
89
+ const close_cursor_1 = require("./statements/close_cursor");
87
90
  const syntax_check_1 = require("./statements/syntax_check");
88
91
  const import_1 = require("./statements/import");
89
92
  const export_1 = require("./statements/export");
@@ -268,6 +271,9 @@ if (Object.keys(map).length === 0) {
268
271
  addToMap(new modify_entities_1.ModifyEntities());
269
272
  addToMap(new commit_entities_1.CommitEntities());
270
273
  addToMap(new call_kernel_1.CallKernel());
274
+ addToMap(new open_cursor_1.OpenCursor());
275
+ addToMap(new fetch_next_cursor_1.FetchNextCursor());
276
+ addToMap(new close_cursor_1.CloseCursor());
271
277
  addToMap(new search_1.Search());
272
278
  addToMap(new translate_1.Translate());
273
279
  addToMap(new modify_internal_1.ModifyInternal());
@@ -7,9 +7,9 @@ const cds_name_1 = require("./cds_name");
7
7
  const cds_type_1 = require("./cds_type");
8
8
  class CDSDefineCustom extends combi_1.Expression {
9
9
  getRunnable() {
10
- const field = (0, combi_1.seq)((0, combi_1.star)(_1.CDSAnnotation), (0, combi_1.opt)((0, combi_1.str)("KEY")), cds_name_1.CDSName, ":", cds_type_1.CDSType, ";");
11
- const composition = (0, combi_1.seq)((0, combi_1.star)(_1.CDSAnnotation), cds_name_1.CDSName, ":", _1.CDSComposition, ";");
12
- return (0, combi_1.seq)((0, combi_1.star)(_1.CDSAnnotation), (0, combi_1.str)("DEFINE"), (0, combi_1.opt)((0, combi_1.str)("ROOT")), (0, combi_1.str)("CUSTOM ENTITY"), cds_name_1.CDSName, (0, combi_1.str)("{"), (0, combi_1.plus)((0, combi_1.alt)(field, composition)), (0, combi_1.str)("}"), (0, combi_1.opt)(";"));
10
+ const field = (0, combi_1.seq)((0, combi_1.opt)((0, combi_1.str)("KEY")), cds_name_1.CDSName, ":", cds_type_1.CDSType, ";");
11
+ const compsiOrAssoci = (0, combi_1.seq)(cds_name_1.CDSName, ":", (0, combi_1.alt)(_1.CDSComposition, _1.CDSAssociation), ";");
12
+ return (0, combi_1.seq)((0, combi_1.star)(_1.CDSAnnotation), (0, combi_1.str)("DEFINE"), (0, combi_1.opt)((0, combi_1.str)("ROOT")), (0, combi_1.str)("CUSTOM ENTITY"), cds_name_1.CDSName, (0, combi_1.str)("{"), (0, combi_1.plus)((0, combi_1.seq)((0, combi_1.star)(_1.CDSAnnotation), (0, combi_1.alt)(field, compsiOrAssoci))), (0, combi_1.str)("}"), (0, combi_1.opt)(";"));
13
13
  }
14
14
  }
15
15
  exports.CDSDefineCustom = CDSDefineCustom;
@@ -11,7 +11,7 @@ class CDSSelect extends combi_1.Expression {
11
11
  const distinct = (0, combi_1.str)("DISTINCT");
12
12
  const elementList = (0, combi_1.seq)(_1.CDSElement, (0, combi_1.starPrio)((0, combi_1.seq)(",", _1.CDSElement)));
13
13
  const elements = (0, combi_1.seq)((0, combi_1.str)("{"), (0, combi_1.altPrio)("*", elementList), (0, combi_1.str)("}"));
14
- return (0, combi_1.seq)("SELECT", (0, combi_1.optPrio)(distinct), (0, combi_1.opt)((0, combi_1.alt)("*", fields)), "FROM", _1.CDSSource, (0, combi_1.star)(cds_join_1.CDSJoin), (0, combi_1.star)(_1.CDSComposition), (0, combi_1.star)(cds_association_1.CDSAssociation), (0, combi_1.star)(_1.CDSComposition), (0, combi_1.opt)(elements), (0, combi_1.optPrio)(_1.CDSWhere), (0, combi_1.optPrio)(_1.CDSGroupBy), (0, combi_1.optPrio)(_1.CDSHaving), (0, combi_1.optPrio)((0, combi_1.seq)("UNION", (0, combi_1.optPrio)("ALL"), CDSSelect)));
14
+ return (0, combi_1.seq)("SELECT", (0, combi_1.optPrio)(distinct), (0, combi_1.opt)((0, combi_1.alt)("*", fields)), "FROM", _1.CDSSource, (0, combi_1.star)(cds_join_1.CDSJoin), (0, combi_1.star)((0, combi_1.alt)(_1.CDSComposition, cds_association_1.CDSAssociation)), (0, combi_1.opt)(elements), (0, combi_1.optPrio)(_1.CDSWhere), (0, combi_1.optPrio)(_1.CDSGroupBy), (0, combi_1.optPrio)(_1.CDSHaving), (0, combi_1.optPrio)((0, combi_1.seq)("UNION", (0, combi_1.optPrio)("ALL"), CDSSelect)));
15
15
  }
16
16
  }
17
17
  exports.CDSSelect = CDSSelect;
@@ -67,7 +67,7 @@ class Registry {
67
67
  }
68
68
  static abaplintVersion() {
69
69
  // magic, see build script "version.sh"
70
- return "2.113.145";
70
+ return "2.113.147";
71
71
  }
72
72
  getDDICReferences() {
73
73
  return this.ddicReferences;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/core",
3
- "version": "2.113.145",
3
+ "version": "2.113.147",
4
4
  "description": "abaplint - Core API",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/abaplint.d.ts",
@@ -53,7 +53,7 @@
53
53
  "@microsoft/api-extractor": "^7.52.8",
54
54
  "@types/chai": "^4.3.20",
55
55
  "@types/mocha": "^10.0.10",
56
- "@types/node": "^24.0.14",
56
+ "@types/node": "^24.0.15",
57
57
  "chai": "^4.5.0",
58
58
  "eslint": "^9.31.0",
59
59
  "mocha": "^11.7.1",