@memberjunction/sql-dialect 6.2.0-edge.6 → 6.2.0-edge.8

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.
Files changed (86) hide show
  1. package/README.md +280 -91
  2. package/dist/dialectFactory.d.ts +34 -14
  3. package/dist/dialectFactory.d.ts.map +1 -1
  4. package/dist/dialectFactory.js +101 -25
  5. package/dist/dialectFactory.js.map +1 -1
  6. package/dist/dialects/ansi.d.ts +55 -0
  7. package/dist/dialects/ansi.d.ts.map +1 -0
  8. package/dist/dialects/ansi.js +136 -0
  9. package/dist/dialects/ansi.js.map +1 -0
  10. package/dist/dialects/baseSchemaDDL.d.ts +78 -0
  11. package/dist/dialects/baseSchemaDDL.d.ts.map +1 -0
  12. package/dist/dialects/baseSchemaDDL.js +63 -0
  13. package/dist/dialects/baseSchemaDDL.js.map +1 -0
  14. package/dist/dialects/databricksQueryDialect.d.ts +41 -0
  15. package/dist/dialects/databricksQueryDialect.d.ts.map +1 -0
  16. package/dist/dialects/databricksQueryDialect.js +103 -0
  17. package/dist/dialects/databricksQueryDialect.js.map +1 -0
  18. package/dist/dialects/mysqlQueryDialect.d.ts +46 -0
  19. package/dist/dialects/mysqlQueryDialect.d.ts.map +1 -0
  20. package/dist/dialects/mysqlQueryDialect.js +117 -0
  21. package/dist/dialects/mysqlQueryDialect.js.map +1 -0
  22. package/dist/dialects/oracleQueryDialect.d.ts +42 -0
  23. package/dist/dialects/oracleQueryDialect.d.ts.map +1 -0
  24. package/dist/dialects/oracleQueryDialect.js +92 -0
  25. package/dist/dialects/oracleQueryDialect.js.map +1 -0
  26. package/dist/dialects/postgresqlSchemaDDL.d.ts +112 -0
  27. package/dist/dialects/postgresqlSchemaDDL.d.ts.map +1 -0
  28. package/dist/dialects/postgresqlSchemaDDL.js +590 -0
  29. package/dist/dialects/postgresqlSchemaDDL.js.map +1 -0
  30. package/dist/dialects/snowflakeQueryDialect.d.ts +41 -0
  31. package/dist/dialects/snowflakeQueryDialect.d.ts.map +1 -0
  32. package/dist/dialects/snowflakeQueryDialect.js +94 -0
  33. package/dist/dialects/snowflakeQueryDialect.js.map +1 -0
  34. package/dist/dialects/sqlServerSchemaDDL.d.ts +83 -0
  35. package/dist/dialects/sqlServerSchemaDDL.d.ts.map +1 -0
  36. package/dist/dialects/sqlServerSchemaDDL.js +507 -0
  37. package/dist/dialects/sqlServerSchemaDDL.js.map +1 -0
  38. package/dist/facets/dialectBinding.d.ts +26 -0
  39. package/dist/facets/dialectBinding.d.ts.map +1 -0
  40. package/dist/facets/dialectBinding.js +2 -0
  41. package/dist/facets/dialectBinding.js.map +1 -0
  42. package/dist/facets/dialectGrammar.d.ts +82 -0
  43. package/dist/facets/dialectGrammar.d.ts.map +1 -0
  44. package/dist/facets/dialectGrammar.js +2 -0
  45. package/dist/facets/dialectGrammar.js.map +1 -0
  46. package/dist/facets/dialectKey.d.ts +9 -0
  47. package/dist/facets/dialectKey.d.ts.map +1 -0
  48. package/dist/facets/dialectKey.js +2 -0
  49. package/dist/facets/dialectKey.js.map +1 -0
  50. package/dist/facets/dialectLexicalRules.d.ts +102 -0
  51. package/dist/facets/dialectLexicalRules.d.ts.map +1 -0
  52. package/dist/facets/dialectLexicalRules.js +2 -0
  53. package/dist/facets/dialectLexicalRules.js.map +1 -0
  54. package/dist/facets/dialectSchemaDDL.d.ts +213 -0
  55. package/dist/facets/dialectSchemaDDL.d.ts.map +1 -0
  56. package/dist/facets/dialectSchemaDDL.js +2 -0
  57. package/dist/facets/dialectSchemaDDL.js.map +1 -0
  58. package/dist/facets/dialectTypes.d.ts +31 -0
  59. package/dist/facets/dialectTypes.d.ts.map +1 -0
  60. package/dist/facets/dialectTypes.js +2 -0
  61. package/dist/facets/dialectTypes.js.map +1 -0
  62. package/dist/facets/dialectWriter.d.ts +59 -0
  63. package/dist/facets/dialectWriter.d.ts.map +1 -0
  64. package/dist/facets/dialectWriter.js +2 -0
  65. package/dist/facets/dialectWriter.js.map +1 -0
  66. package/dist/index.d.ts +21 -5
  67. package/dist/index.d.ts.map +1 -1
  68. package/dist/index.js +13 -4
  69. package/dist/index.js.map +1 -1
  70. package/dist/postgresqlDialect.d.ts +57 -152
  71. package/dist/postgresqlDialect.d.ts.map +1 -1
  72. package/dist/postgresqlDialect.js +110 -683
  73. package/dist/postgresqlDialect.js.map +1 -1
  74. package/dist/queryDialect.d.ts +42 -0
  75. package/dist/queryDialect.d.ts.map +1 -0
  76. package/dist/queryDialect.js +25 -0
  77. package/dist/queryDialect.js.map +1 -0
  78. package/dist/sqlDialect.d.ts +121 -212
  79. package/dist/sqlDialect.d.ts.map +1 -1
  80. package/dist/sqlDialect.js +710 -29
  81. package/dist/sqlDialect.js.map +1 -1
  82. package/dist/sqlServerDialect.d.ts +54 -120
  83. package/dist/sqlServerDialect.d.ts.map +1 -1
  84. package/dist/sqlServerDialect.js +124 -594
  85. package/dist/sqlServerDialect.js.map +1 -1
  86. package/package.json +4 -2
@@ -1,21 +1,34 @@
1
- import { DataTypeMap } from './dataTypeMap.js';
2
- import { SQLDialect, DatabasePlatform, LimitClauseResult, SchemaIntrospectionSQL, TriggerOptions, IndexOptions, ColumnDDLOptions, AlterColumnOptions, ResolveTypeOptions } from './sqlDialect.js';
1
+ import { SQLDialect, DatabasePlatform } from './sqlDialect.js';
2
+ import { AnsiWriter } from './dialects/ansi.js';
3
+ import type { DialectLexicalRules } from './facets/dialectLexicalRules.js';
4
+ import type { DialectGrammar } from './facets/dialectGrammar.js';
5
+ import type { DialectWriter, LimitClauseResult } from './facets/dialectWriter.js';
6
+ import type { DialectTypes } from './facets/dialectTypes.js';
7
+ import type { DialectBinding, TypedParameterReference } from './facets/dialectBinding.js';
8
+ import type { DialectSchemaDDL } from './facets/dialectSchemaDDL.js';
3
9
  /**
4
- * PostgreSQL dialect implementation.
5
- * Uses "double-quote" identifiers, LIMIT/OFFSET pagination, native BOOLEAN, PL/pgSQL functions.
10
+ * PostgreSQL lexical rules: `"…"` identifiers, `'…'` / `N'…'` strings with doubled quotes,
11
+ * `E'…'` strings with backslash escapes, `$$…$$` / `$tag$…$tag$` dollar quoting, `--` line
12
+ * comments and nested block comments, `$1` parameters, unquoted names folded to lower case.
13
+ *
14
+ * All from https://www.postgresql.org/docs/current/sql-syntax-lexical.html (4.1.1 identifiers and
15
+ * case folding, 4.1.2.2 escape strings, 4.1.2.4 dollar quoting, 4.1.4 positional parameters,
16
+ * 4.1.5 comments).
6
17
  */
7
- export declare class PostgreSQLDialect extends SQLDialect {
8
- get PlatformKey(): DatabasePlatform;
9
- get ParserDialect(): string;
10
- get DisplayName(): string;
11
- /** `sql-formatter` ships PostgreSQL under the `postgresql` language key. */
12
- get FormatterLanguage(): string;
13
- /**
14
- * PostgreSQL has no in-row row-size limit (TOAST stores oversized variable-length values
15
- * out-of-line), so {@link MaxInRowSizeBytes} stays `null` (inherited). It does enforce a
16
- * hard 1600-column-per-table cap.
17
- */
18
- get MaxColumnCount(): number;
18
+ export declare const POSTGRESQL_LEXICAL: DialectLexicalRules;
19
+ /**
20
+ * PostgreSQL grammar facts: `LIMIT … OFFSET` and `FETCH FIRST` row caps, ORDER BY allowed in
21
+ * CTEs and derived tables, nested WITH, `WITH RECURSIVE`, no hint clause, `LATERAL`.
22
+ */
23
+ export declare const POSTGRESQL_GRAMMAR: DialectGrammar;
24
+ /**
25
+ * PostgreSQL's column-type names as they appear in `pg_catalog` / `information_schema` /
26
+ * `EntityField.Type`, with both the formal names (`character varying`) and the short or internal
27
+ * aliases (`varchar`, `bpchar`). `tsvector` / `tsquery` serialize as text.
28
+ */
29
+ export declare const POSTGRESQL_TYPES: DialectTypes;
30
+ /** Writes PostgreSQL: double-quote identifiers, `LIMIT`/`OFFSET`, native booleans, `->>` JSON. */
31
+ export declare class PostgreSQLWriter extends AnsiWriter {
19
32
  QuoteIdentifier(name: string): string;
20
33
  QuoteSchema(schema: string, object: string): string;
21
34
  /**
@@ -28,16 +41,8 @@ export declare class PostgreSQLDialect extends SQLDialect {
28
41
  * untrusted name can't break out of its quoting.
29
42
  */
30
43
  QuoteColumnAlias(aliasName: string): string;
31
- /**
32
- * PostgreSQL folds unquoted identifiers to lowercase, so the physical schema an
33
- * unquoted `CREATE SCHEMA __mj_BizAppsCommon` produces is `__mj_bizappscommon`.
34
- * Canonicalize to that lowercase form so the engine's quoted operations target the
35
- * same physical schema as the app's (typically unquoted) migration DDL.
36
- */
37
- CanonicalSchemaName(name: string): string;
38
44
  LimitClause(limit: number, offset?: number): LimitClauseResult;
39
45
  BooleanLiteral(value: boolean): string;
40
- BooleanParameterType(): string;
41
46
  /**
42
47
  * PostgreSQL has no `ISNULL` keyword; the standard is `COALESCE` (which
43
48
  * SQL Server also supports). PG generated SPs/functions emit COALESCE
@@ -49,143 +54,43 @@ export declare class PostgreSQLDialect extends SQLDialect {
49
54
  * the two-arg `IsNull` since PG has no `ISNULL` to differentiate from.
50
55
  */
51
56
  Coalesce(expr: string, fallback: string): string;
52
- /**
53
- * PostgreSQL function parameters use a `p_<flat lowercase>` convention
54
- * (no `@`-prefix syntax in PG). This matches the baseline-ported SP names
55
- * (which lowercased SQL Server's PascalCase parameter names without
56
- * separators — e.g. `@CompanyID` → `p_companyid`) and the runtime
57
- * PostgreSQLDataProvider, which calls procs with `p_${field.Name.toLowerCase()}`.
58
- *
59
- * Earlier this used a snake_case transform (`p_company_id`), which
60
- * produced functions the runtime could never invoke. Underscores already
61
- * in the input (e.g. the `_Clear` companion suffix) are preserved.
62
- */
63
- ParameterRef(name: string): string;
64
- /**
65
- * PostgreSQL functions use the `DEFAULT <value>` clause for parameter defaults.
66
- */
67
- ParameterDefault(value: string): string;
68
57
  CurrentTimestampUTC(): string;
69
- AffectedRowCountSQL(dmlStatement: string, alias: string): string;
70
- private static readonly _booleanTypeNames;
71
- private static readonly _stringTypeNames;
72
- /**
73
- * PG fixed-width / space-padded char types. `character` (without `varying`)
74
- * and `bpchar` are the formal/internal names; `char` is the short alias.
75
- * Note: `character varying` is NOT included — it's variable-width.
76
- */
77
- private static readonly _fixedWidthStringTypeNames;
78
- private static readonly _dateTypeNames;
79
- private static readonly _integerTypeNames;
80
- private static readonly _floatTypeNames;
81
- private static readonly _uuidTypeNames;
82
- private static readonly _binaryTypeNames;
83
- private static readonly _jsonTypeNames;
84
- private static readonly _currencyTypeNames;
85
- private static readonly _intervalTypeNames;
86
- private static readonly _networkTypeNames;
87
- get BooleanTypeNames(): readonly string[];
88
- get StringTypeNames(): readonly string[];
89
- get FixedWidthStringTypeNames(): readonly string[];
90
- get DateTypeNames(): readonly string[];
91
- get IntegerTypeNames(): readonly string[];
92
- get FloatTypeNames(): readonly string[];
93
- get UuidTypeNames(): readonly string[];
94
- get BinaryTypeNames(): readonly string[];
95
- get JsonTypeNames(): readonly string[];
96
- get CurrencyTypeNames(): readonly string[];
97
- get IntervalTypeNames(): readonly string[];
98
- get NetworkTypeNames(): readonly string[];
99
- NewUUID(): string;
100
58
  CastToText(expr: string): string;
101
- /**
102
- * PostgreSQL-specific Flyway escape. PostgreSQL string concatenation uses
103
- * `||` (not `+`), and TEXT has no length cap — so a simple split with `||`
104
- * suffices and no cast-to-MAX dance is needed (unlike SQL Server, which
105
- * silently truncates `NVARCHAR(N) + NVARCHAR(M)` past 4,000 chars).
106
- * PostgreSQL string literals don't take an `N` prefix either; everything
107
- * is already Unicode.
108
- */
109
- EscapeFlywayStringInterpolation(sql: string): string;
110
- CastToUUID(expr: string): string;
111
- /**
112
- * PostgreSQL strict typing requires an explicit `::UUID` cast when
113
- * comparing the empty-GUID sentinel against a UUID-typed column.
114
- * Without it, PG raises "operator does not exist: uuid = text".
115
- */
116
- EmptyUUIDLiteral(): string;
117
- ReturnInsertedClause(columns?: string[]): string;
118
- AutoIncrementPKExpression(): string;
119
- UUIDPKDefault(): string;
120
- ScopeIdentityExpression(): string;
121
- RowCountExpression(): string;
122
- BatchSeparator(): string;
123
- CreateSavepointSQL(name: string): string;
124
- ReleaseSavepointSQL(name: string): string;
125
- RollbackToSavepointSQL(name: string): string;
126
- /**
127
- * Splits an oversized SQL batch into individual statements on `;`+EOL
128
- * boundaries — but NEVER inside a PostgreSQL dollar-quoted block
129
- * (`$$ … $$` or `$tag$ … $tag$`), whose body legitimately contains
130
- * `;`+newline (DO blocks, PL/pgSQL function bodies, the integration
131
- * view-drop guard `$mj_dropviews$`). A naive `split(/;\s*\n/g)` tears
132
- * those apart. Outside dollar blocks the boundary semantics mirror the
133
- * base `split(/;\s*\n/g)` (a `;` then optional inline whitespace then a
134
- * newline). Each returned statement ends with `;`.
135
- */
136
- SplitStatements(batch: string): string[];
137
- ExistenceCheckSQL(objectType: string, schema: string, name: string): string;
138
- CreateOrReplaceSupported(objectType: string): boolean;
139
- FullTextSearchPredicate(column: string, searchTerm: string): string;
140
- FullTextIndexDDL(table: string, columns: string[], _catalog?: string): string;
141
- RecursiveCTESyntax(): string;
142
- get AllowsOrderByInCTE(): boolean;
143
- get DefaultPagingOrderBy(): string;
144
- get SelectListPagingOrderBy(): string | null;
145
- get PagingRequiresOrderBy(): boolean;
146
- get SupportsEscapeStringLiterals(): boolean;
147
- get SupportsDollarQuotedStrings(): boolean;
148
- get QueryHintKeyword(): string | null;
149
- get CallerSQLForbiddenFunctions(): readonly string[];
150
59
  StringLiteralPrefix(_text: string): string;
151
60
  EscapeLikePattern(text: string): string;
152
- BooleanParameterValue(value: boolean): boolean | number;
153
- get TypeMap(): DataTypeMap;
154
- ParameterPlaceholder(index: number): string;
155
61
  ConcatOperator(): string;
156
- StringSplitFunction(value: string, delimiter: string): string;
157
62
  JsonExtract(column: string, path: string): string;
158
- ProcedureCallSyntax(schema: string, name: string, params: string[]): string;
159
- CreateSchemaDDL(schemaName: string): string;
160
63
  DateAddExpression(unit: 'MINUTE' | 'HOUR' | 'DAY', amount: number, baseExpr: string): string;
161
- CreateTableIfNotExistsDDL(schema: string, tableName: string, columnsDDL: string): string;
162
- ConditionalBlock(condition: string, thenSQL: string, elseSQL?: string): string;
163
- RaiseSignalSQL(message: string): string;
164
- AddColumnClause(col: ColumnDDLOptions): string;
165
- AlterColumnDDL(quotedTable: string, options: AlterColumnOptions): string;
166
- CommentOnColumn(schema: string, table: string, column: string, comment: string): string;
167
- FallbackType(): string;
168
- TriggerDDL(options: TriggerOptions): string;
169
- IndexDDL(options: IndexOptions): string;
170
- GrantPermission(permission: string, _objectType: string, schema: string, object: string, role: string): string;
171
- CommentOnObject(objectType: string, schema: string, name: string, comment: string): string;
172
- SchemaIntrospectionQueries(): SchemaIntrospectionSQL;
64
+ IIF(condition: string, trueVal: string, falseVal: string): string;
65
+ }
66
+ /** PostgreSQL binding through the `pg` driver: `$1` placeholders, native booleans. */
67
+ export declare class PostgreSQLBinding implements DialectBinding {
68
+ BooleanParameterValue(value: boolean): boolean | number;
69
+ ParameterPlaceholder(index: number): string;
173
70
  /**
174
- * PostgreSQL FK-graph query for cascade planning — reads `pg_catalog.pg_constraint`
175
- * (`contype = 'f'`). Returns one row per FK column (via `unnest(conkey, confkey)`, which
176
- * preserves column pairing/order), with `childNullable` (`NOT attnotnull`) and `colCount`
177
- * (`array_length(conkey, 1)`, for composite exclusion). Column aliases and semantics MATCH
178
- * the SQL Server variant so a single caller parses both. `relname`/`attname` preserve the
179
- * quoted mixed-case identifiers MJ creates on PG, so they feed straight into QuoteIdentifier.
180
- * Both parent + child are filtered to `schema`; the schema is embedded as a literal.
71
+ * `$<n>::<type>`: the driver sends untyped text, so the cast gives the server the column's type.
72
+ * @throws Error when `sqlType` is not a plain type name (words with an optional `(n[, m])`, as `timestamp(3) with time zone`, and an optional `[]`).
181
73
  */
182
- ForeignKeyGraphSQL(schema: string): string;
183
- AtomicBatchScript(statements: string[]): string;
184
- IIF(condition: string, trueVal: string, falseVal: string): string;
185
- ResolveAbstractType(options: ResolveTypeOptions): string;
186
- private resolveStringType;
74
+ TypedParameter(index: number, sqlType: string): TypedParameterReference;
187
75
  IsConnectionError(e: unknown): boolean;
188
- private extractSchema;
189
- private extractName;
76
+ }
77
+ /**
78
+ * PostgreSQL dialect implementation.
79
+ * Uses "double-quote" identifiers, LIMIT/OFFSET pagination, native BOOLEAN, PL/pgSQL functions.
80
+ */
81
+ export declare class PostgreSQLDialect extends SQLDialect {
82
+ private readonly writer;
83
+ private readonly binding;
84
+ private readonly ddl;
85
+ get PlatformKey(): DatabasePlatform;
86
+ get DisplayName(): string;
87
+ /** `sql-formatter` ships PostgreSQL under the `postgresql` language key. */
88
+ get FormatterLanguage(): string;
89
+ get Lexical(): DialectLexicalRules;
90
+ get Grammar(): DialectGrammar;
91
+ get Writer(): DialectWriter;
92
+ get Types(): DialectTypes;
93
+ get Binding(): DialectBinding;
94
+ get DDL(): DialectSchemaDDL;
190
95
  }
191
96
  //# sourceMappingURL=postgresqlDialect.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"postgresqlDialect.d.ts","sourceRoot":"","sources":["../src/postgresqlDialect.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAc,MAAM,kBAAkB,CAAC;AAC3D,OAAO,EACH,UAAU,EACV,gBAAgB,EAChB,iBAAiB,EACjB,sBAAsB,EACtB,cAAc,EACd,YAAY,EACZ,gBAAgB,EAChB,kBAAkB,EAClB,kBAAkB,EACrB,MAAM,iBAAiB,CAAC;AA0JzB;;;GAGG;AACH,qBAAa,iBAAkB,SAAQ,UAAU;IAC7C,IAAI,WAAW,IAAI,gBAAgB,CAElC;IAED,IAAI,aAAa,IAAI,MAAM,CAE1B;IAED,IAAI,WAAW,IAAI,MAAM,CAExB;IAED,4EAA4E;IAC5E,IAAI,iBAAiB,IAAI,MAAM,CAE9B;IAED;;;;OAIG;IACH,IAAa,cAAc,IAAI,MAAM,CAAiB;IAItD,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM;IAOrC,WAAW,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM;IAOnD;;;;;;;;OAQG;IACH,gBAAgB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM;IAI3C;;;;;OA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