@abaplint/transpiler 2.13.89 → 2.13.91

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.
@@ -53,7 +53,14 @@ class DatabaseSetup {
53
53
  return {
54
54
  schemas: {
55
55
  sqlite: this.driver(new sqlite_database_schema_1.SQLiteDatabaseSchema(this.reg)),
56
- hdb: ["todo"],
56
+ // HANA takes the PG schema unchanged -- measured against HANA Express
57
+ // on a tree of 77 tables. The one thing it needs is that identifiers
58
+ // reach it quoted in UPPER case, and that is not a dialect of DDL: the
59
+ // same rule applies to every statement, so @abaplint/database-hdb
60
+ // folds them on the way out rather than a second generator doing it
61
+ // here. (Unquoted would nearly work and then meet a column called
62
+ // `cross`, which is one of HANA's reserved words.)
63
+ hdb: this.driver(new pg_database_schema_1.PGDatabaseSchema(this.reg)),
57
64
  pg: this.driver(new pg_database_schema_1.PGDatabaseSchema(this.reg)),
58
65
  snowflake: this.driver(new snowflake_database_schema_1.SnowflakeDatabaseSchema(this.reg)),
59
66
  },
@@ -65,7 +65,7 @@ class PopulateTables {
65
65
  if (raw === undefined) {
66
66
  return "";
67
67
  }
68
- return `INSERT INTO reposrc ('PROGNAME', 'DATA') VALUES ('${name.padEnd(40, " ")}', '${this.escape(raw)}');`;
68
+ return `INSERT INTO reposrc (progname, data) VALUES ('${name.padEnd(40, " ")}', '${this.escape(raw)}');`;
69
69
  }
70
70
  insertT100(msag) {
71
71
  // ignore if T100 is unknown
@@ -0,0 +1,7 @@
1
+ import * as abaplint from "@abaplint/core";
2
+ import { IStatementTranspiler } from "./_statement_transpiler";
3
+ import { Traversal } from "../traversal";
4
+ import { Chunk } from "../chunk";
5
+ export declare class ControlsTranspiler implements IStatementTranspiler {
6
+ transpile(_node: abaplint.Nodes.StatementNode, _traversal: Traversal): Chunk;
7
+ }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ControlsTranspiler = void 0;
4
+ const chunk_1 = require("../chunk");
5
+ class ControlsTranspiler {
6
+ transpile(_node, _traversal) {
7
+ return new chunk_1.Chunk(`throw new Error("Controls, not supported, transpiler");`);
8
+ }
9
+ }
10
+ exports.ControlsTranspiler = ControlsTranspiler;
11
+ //# sourceMappingURL=controls.js.map
@@ -33,6 +33,7 @@ export * from "./concatenate";
33
33
  export * from "./end_of_selection";
34
34
  export * from "./condense";
35
35
  export * from "./constant";
36
+ export * from "./controls";
36
37
  export * from "./continue";
37
38
  export * from "./convert";
38
39
  export * from "./create_data";
@@ -49,6 +49,7 @@ __exportStar(require("./concatenate"), exports);
49
49
  __exportStar(require("./end_of_selection"), exports);
50
50
  __exportStar(require("./condense"), exports);
51
51
  __exportStar(require("./constant"), exports);
52
+ __exportStar(require("./controls"), exports);
52
53
  __exportStar(require("./continue"), exports);
53
54
  __exportStar(require("./convert"), exports);
54
55
  __exportStar(require("./create_data"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/transpiler",
3
- "version": "2.13.89",
3
+ "version": "2.13.91",
4
4
  "description": "Transpiler",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/src/index.d.ts",
@@ -29,7 +29,7 @@
29
29
  "author": "abaplint",
30
30
  "license": "MIT",
31
31
  "dependencies": {
32
- "@abaplint/core": "^2.120.55",
32
+ "@abaplint/core": "^2.120.58",
33
33
  "source-map": "^0.8.0"
34
34
  },
35
35
  "devDependencies": {