metal-orm 1.1.24 → 1.1.25
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/dist/index.cjs +539 -412
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +225 -176
- package/dist/index.d.ts +225 -176
- package/dist/index.js +519 -412
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/core/dialect/base/returning-strategy.ts +40 -39
- package/src/core/dialect/base/sql-compiler-set.ts +33 -0
- package/src/core/dialect/base/sql-dialect.ts +79 -38
- package/src/core/dialect/base/upsert-strategy.ts +45 -0
- package/src/core/dialect/capabilities/procedure-compiler.ts +10 -8
- package/src/core/dialect/mssql/compiler-factory.ts +12 -0
- package/src/core/dialect/mssql/delete-compiler.ts +40 -0
- package/src/core/dialect/mssql/index.ts +24 -371
- package/src/core/dialect/mssql/insert-compiler.ts +112 -0
- package/src/core/dialect/mssql/output.ts +46 -0
- package/src/core/dialect/mssql/procedure-compiler.ts +81 -0
- package/src/core/dialect/mssql/select-compiler.ts +116 -0
- package/src/core/dialect/mssql/update-compiler.ts +37 -0
- package/src/core/dialect/mysql/index.ts +24 -117
- package/src/core/dialect/mysql/procedure-compiler.ts +67 -0
- package/src/core/dialect/mysql/upsert.ts +42 -0
- package/src/core/dialect/postgres/index.ts +34 -101
- package/src/core/dialect/postgres/procedure-compiler.ts +41 -0
- package/src/core/dialect/postgres/returning.ts +4 -0
- package/src/core/dialect/postgres/upsert.ts +43 -0
- package/src/core/dialect/sqlite/index.ts +15 -70
- package/src/core/dialect/sqlite/returning.ts +30 -0
- package/src/core/dialect/sqlite/upsert.ts +43 -0
- package/src/index.ts +22 -10
package/dist/index.d.cts
CHANGED
|
@@ -5838,13 +5838,13 @@ interface CompiledProcedureCall extends CompiledQuery {
|
|
|
5838
5838
|
names: string[];
|
|
5839
5839
|
};
|
|
5840
5840
|
}
|
|
5841
|
-
/**
|
|
5842
|
-
|
|
5843
|
-
|
|
5844
|
-
|
|
5845
|
-
|
|
5846
|
-
|
|
5847
|
-
*/
|
|
5841
|
+
/** Narrow SQL services consumed by reusable procedure compiler components. */
|
|
5842
|
+
interface ProcedureCompilerServices {
|
|
5843
|
+
quoteIdentifier(id: string): string;
|
|
5844
|
+
createCompilerContext(): CompilerContext;
|
|
5845
|
+
compileOperand(node: OperandNode, ctx: CompilerContext): string;
|
|
5846
|
+
}
|
|
5847
|
+
/** Optional dialect capability for stored-procedure compilation. */
|
|
5848
5848
|
interface ProcedureCompiler {
|
|
5849
5849
|
compileProcedureCall(ast: ProcedureCallNode): CompiledProcedureCall;
|
|
5850
5850
|
}
|
|
@@ -5953,6 +5953,52 @@ interface PaginationStrategy {
|
|
|
5953
5953
|
*/
|
|
5954
5954
|
compilePagination(limit?: number, offset?: number): string;
|
|
5955
5955
|
}
|
|
5956
|
+
/**
|
|
5957
|
+
* Standard SQL pagination using LIMIT and OFFSET.
|
|
5958
|
+
* Implements the ANSI SQL-style pagination with LIMIT/OFFSET syntax.
|
|
5959
|
+
*/
|
|
5960
|
+
declare class StandardLimitOffsetPagination implements PaginationStrategy {
|
|
5961
|
+
/**
|
|
5962
|
+
* Compiles LIMIT/OFFSET pagination clause.
|
|
5963
|
+
* @param limit - The maximum number of rows to return.
|
|
5964
|
+
* @param offset - The number of rows to skip.
|
|
5965
|
+
* @returns SQL pagination clause with LIMIT and/or OFFSET.
|
|
5966
|
+
*/
|
|
5967
|
+
compilePagination(limit?: number, offset?: number): string;
|
|
5968
|
+
}
|
|
5969
|
+
|
|
5970
|
+
type QuoteIdentifier = (id: string) => string;
|
|
5971
|
+
/** Backend-specific RETURNING/OUTPUT rendering strategy. */
|
|
5972
|
+
interface ReturningStrategy {
|
|
5973
|
+
compileReturning(returning: ColumnNode[] | undefined, ctx: CompilerContext, quoteIdentifier: QuoteIdentifier): string;
|
|
5974
|
+
formatReturningColumns(returning: ColumnNode[], quoteIdentifier: QuoteIdentifier): string;
|
|
5975
|
+
}
|
|
5976
|
+
/** Default RETURNING strategy for dialects without support. */
|
|
5977
|
+
declare class NoReturningStrategy implements ReturningStrategy {
|
|
5978
|
+
compileReturning(returning: ColumnNode[] | undefined, _ctx: CompilerContext, _quoteIdentifier: QuoteIdentifier): string;
|
|
5979
|
+
formatReturningColumns(returning: ColumnNode[], quoteIdentifier: QuoteIdentifier): string;
|
|
5980
|
+
}
|
|
5981
|
+
/** Standard SQL RETURNING implementation with qualified column support. */
|
|
5982
|
+
declare class StandardReturningStrategy extends NoReturningStrategy {
|
|
5983
|
+
compileReturning(returning: ColumnNode[] | undefined, _ctx: CompilerContext, quoteIdentifier: QuoteIdentifier): string;
|
|
5984
|
+
}
|
|
5985
|
+
|
|
5986
|
+
/** Narrow services needed by backend-specific UPSERT implementations. */
|
|
5987
|
+
interface UpsertCompilationServices {
|
|
5988
|
+
getDialectName(): DialectName$1;
|
|
5989
|
+
quoteIdentifier(id: string): string;
|
|
5990
|
+
compileOperand(node: OperandNode, ctx: CompilerContext): string;
|
|
5991
|
+
compileExpression(node: ExpressionNode, ctx: CompilerContext): string;
|
|
5992
|
+
compileUpdateAssignments(assignments: UpdateAssignmentNode[], table: TableNode, ctx: CompilerContext): string;
|
|
5993
|
+
}
|
|
5994
|
+
/** Backend-specific INSERT conflict/upsert rendering strategy. */
|
|
5995
|
+
interface UpsertStrategy {
|
|
5996
|
+
compile(ast: InsertQueryNode, ctx: CompilerContext, services: UpsertCompilationServices): string;
|
|
5997
|
+
}
|
|
5998
|
+
/** Default strategy for dialects without UPSERT support. */
|
|
5999
|
+
declare class NoUpsertStrategy implements UpsertStrategy {
|
|
6000
|
+
compile(ast: InsertQueryNode, _ctx: CompilerContext, services: UpsertCompilationServices): string;
|
|
6001
|
+
}
|
|
5956
6002
|
|
|
5957
6003
|
/**
|
|
5958
6004
|
* Narrow callback surface consumed by the standard SQL compilers.
|
|
@@ -5999,6 +6045,82 @@ declare class StandardSqlSourceCompiler {
|
|
|
5999
6045
|
wrapSetOperand(sql: string): string;
|
|
6000
6046
|
}
|
|
6001
6047
|
|
|
6048
|
+
interface SqlAstCompiler<TAst> {
|
|
6049
|
+
compile(ast: TAst, ctx: CompilerContext): string;
|
|
6050
|
+
}
|
|
6051
|
+
interface SqlCompilerSet {
|
|
6052
|
+
select: SqlAstCompiler<SelectQueryNode>;
|
|
6053
|
+
insert: SqlAstCompiler<InsertQueryNode>;
|
|
6054
|
+
update: SqlAstCompiler<UpdateQueryNode>;
|
|
6055
|
+
delete: SqlAstCompiler<DeleteQueryNode>;
|
|
6056
|
+
}
|
|
6057
|
+
interface SqlCompilerAssemblyContext {
|
|
6058
|
+
services: StandardSqlCompilerServices;
|
|
6059
|
+
sources: StandardSqlSourceCompiler;
|
|
6060
|
+
}
|
|
6061
|
+
/**
|
|
6062
|
+
* Allows a backend to replace only the standard query compilers whose SQL
|
|
6063
|
+
* grammar genuinely differs from the common implementation.
|
|
6064
|
+
*/
|
|
6065
|
+
type SqlCompilerFactory = (context: SqlCompilerAssemblyContext) => Partial<SqlCompilerSet>;
|
|
6066
|
+
|
|
6067
|
+
interface SqlDialectBaseOptions {
|
|
6068
|
+
functionStrategy?: FunctionStrategy;
|
|
6069
|
+
tableFunctionStrategy?: TableFunctionStrategy;
|
|
6070
|
+
paginationStrategy?: PaginationStrategy;
|
|
6071
|
+
returningStrategy?: ReturningStrategy;
|
|
6072
|
+
upsertStrategy?: UpsertStrategy;
|
|
6073
|
+
compilerFactory?: SqlCompilerFactory;
|
|
6074
|
+
supportsDmlReturning?: boolean;
|
|
6075
|
+
}
|
|
6076
|
+
/**
|
|
6077
|
+
* Thin assembly base for dialects that use MetalORM's reusable SQL compiler pieces.
|
|
6078
|
+
*
|
|
6079
|
+
* Query orchestration, source rendering, upsert behavior and returning behavior are
|
|
6080
|
+
* injected components. Concrete dialects keep only syntax hooks that are genuinely
|
|
6081
|
+
* intrinsic to that backend.
|
|
6082
|
+
*/
|
|
6083
|
+
declare abstract class SqlDialectBase extends DialectBase {
|
|
6084
|
+
abstract quoteIdentifier(id: string): string;
|
|
6085
|
+
protected readonly paginationStrategy: PaginationStrategy;
|
|
6086
|
+
protected readonly returningStrategy: ReturningStrategy;
|
|
6087
|
+
protected readonly upsertStrategy: UpsertStrategy;
|
|
6088
|
+
private readonly dmlReturningSupported;
|
|
6089
|
+
private readonly sourceCompiler;
|
|
6090
|
+
private readonly standardUpdateCompiler;
|
|
6091
|
+
private readonly compilerSet;
|
|
6092
|
+
protected constructor(options?: SqlDialectBaseOptions);
|
|
6093
|
+
supportsDmlReturningClause(): boolean;
|
|
6094
|
+
protected compileSelectAst(ast: SelectQueryNode, ctx: CompilerContext): string;
|
|
6095
|
+
protected compileInsertAst(ast: InsertQueryNode, ctx: CompilerContext): string;
|
|
6096
|
+
protected compileUpdateAst(ast: UpdateQueryNode, ctx: CompilerContext): string;
|
|
6097
|
+
protected compileDeleteAst(ast: DeleteQueryNode, ctx: CompilerContext): string;
|
|
6098
|
+
protected compileUpsertClause(ast: InsertQueryNode, ctx: CompilerContext): string;
|
|
6099
|
+
protected compileReturning(returning: ColumnNode[] | undefined, ctx: CompilerContext): string;
|
|
6100
|
+
protected ensureConflictColumns(clause: UpsertClause, message: string): void;
|
|
6101
|
+
protected compileUpdateAssignments(assignments: UpdateAssignmentNode[], table: TableNode, ctx: CompilerContext): string;
|
|
6102
|
+
protected compileSetTarget(column: ColumnNode, table: TableNode): string;
|
|
6103
|
+
protected compileQualifiedColumn(column: ColumnNode, table: TableNode): string;
|
|
6104
|
+
protected formatReturningColumns(returning: ColumnNode[]): string;
|
|
6105
|
+
protected compileFrom(source: TableSourceNode, ctx?: CompilerContext): string;
|
|
6106
|
+
protected compileFunctionTable(fn: FunctionTableNode, ctx?: CompilerContext): string;
|
|
6107
|
+
protected compileDerivedTable(table: DerivedTableNode, ctx?: CompilerContext): string;
|
|
6108
|
+
protected compileTableSource(table: TableSourceNode): string;
|
|
6109
|
+
protected compileTableName(table: {
|
|
6110
|
+
name: string;
|
|
6111
|
+
schema?: string;
|
|
6112
|
+
}): string;
|
|
6113
|
+
protected compileTableReference(table: {
|
|
6114
|
+
name: string;
|
|
6115
|
+
schema?: string;
|
|
6116
|
+
alias?: string;
|
|
6117
|
+
}): string;
|
|
6118
|
+
protected stripTrailingSemicolon(sql: string): string;
|
|
6119
|
+
protected wrapSetOperand(sql: string): string;
|
|
6120
|
+
protected renderOrderByNulls(order: OrderByNode): string | undefined;
|
|
6121
|
+
protected renderOrderByCollation(order: OrderByNode): string | undefined;
|
|
6122
|
+
}
|
|
6123
|
+
|
|
6002
6124
|
/** Standard SELECT orchestration, independent from any dialect class hierarchy. */
|
|
6003
6125
|
declare class StandardSelectCompiler {
|
|
6004
6126
|
private readonly services;
|
|
@@ -6043,211 +6165,138 @@ declare class StandardDeleteCompiler {
|
|
|
6043
6165
|
private compileUsingClause;
|
|
6044
6166
|
}
|
|
6045
6167
|
|
|
6046
|
-
|
|
6047
|
-
|
|
6048
|
-
|
|
6049
|
-
|
|
6050
|
-
interface ReturningStrategy {
|
|
6051
|
-
/**
|
|
6052
|
-
* Compiles a RETURNING clause for DML statements.
|
|
6053
|
-
* @param returning - Array of columns to return, or undefined if none.
|
|
6054
|
-
* @param ctx - The compiler context for expression compilation.
|
|
6055
|
-
* @returns SQL RETURNING clause or empty string if not supported.
|
|
6056
|
-
* @throws Error if RETURNING is not supported by this dialect.
|
|
6057
|
-
*/
|
|
6058
|
-
compileReturning(returning: ColumnNode[] | undefined, ctx: CompilerContext): string;
|
|
6059
|
-
/**
|
|
6060
|
-
* Formats column list for RETURNING clause.
|
|
6061
|
-
* @param returning - Array of columns to format.
|
|
6062
|
-
* @param quoteIdentifier - Function to quote identifiers according to dialect rules.
|
|
6063
|
-
* @returns Formatted column list (e.g., "table.col1, table.col2").
|
|
6064
|
-
*/
|
|
6065
|
-
formatReturningColumns(returning: ColumnNode[], quoteIdentifier: (id: string) => string): string;
|
|
6066
|
-
}
|
|
6067
|
-
|
|
6068
|
-
/**
|
|
6069
|
-
* Thin assembly base for dialects that use MetalORM's standard SQL compilers.
|
|
6070
|
-
*
|
|
6071
|
-
* SELECT/INSERT/UPDATE/DELETE orchestration lives in independent compiler
|
|
6072
|
-
* objects. This class only wires dialect-specific syntax hooks and strategies
|
|
6073
|
-
* into those components.
|
|
6074
|
-
*/
|
|
6075
|
-
declare abstract class SqlDialectBase extends DialectBase {
|
|
6076
|
-
abstract quoteIdentifier(id: string): string;
|
|
6077
|
-
protected paginationStrategy: PaginationStrategy;
|
|
6078
|
-
protected returningStrategy: ReturningStrategy;
|
|
6079
|
-
private readonly sourceCompiler;
|
|
6080
|
-
private readonly selectCompiler;
|
|
6081
|
-
private readonly insertCompiler;
|
|
6082
|
-
private readonly updateCompiler;
|
|
6083
|
-
private readonly deleteCompiler;
|
|
6084
|
-
protected constructor(functionStrategy?: FunctionStrategy, tableFunctionStrategy?: TableFunctionStrategy);
|
|
6085
|
-
protected compileSelectAst(ast: SelectQueryNode, ctx: CompilerContext): string;
|
|
6086
|
-
protected compileInsertAst(ast: InsertQueryNode, ctx: CompilerContext): string;
|
|
6087
|
-
protected compileUpdateAst(ast: UpdateQueryNode, ctx: CompilerContext): string;
|
|
6088
|
-
protected compileDeleteAst(ast: DeleteQueryNode, ctx: CompilerContext): string;
|
|
6089
|
-
protected compileUpsertClause(ast: InsertQueryNode, _ctx: CompilerContext): string;
|
|
6090
|
-
protected compileReturning(returning: ColumnNode[] | undefined, ctx: CompilerContext): string;
|
|
6091
|
-
protected ensureConflictColumns(clause: UpsertClause, message: string): void;
|
|
6092
|
-
protected compileUpdateAssignments(assignments: {
|
|
6093
|
-
column: ColumnNode;
|
|
6094
|
-
value: OperandNode;
|
|
6095
|
-
}[], table: TableNode, ctx: CompilerContext): string;
|
|
6096
|
-
protected compileSetTarget(column: ColumnNode, table: TableNode): string;
|
|
6097
|
-
protected compileQualifiedColumn(column: ColumnNode, table: TableNode): string;
|
|
6098
|
-
protected formatReturningColumns(returning: ColumnNode[]): string;
|
|
6099
|
-
protected compileFrom(source: TableSourceNode, ctx?: CompilerContext): string;
|
|
6100
|
-
protected compileFunctionTable(fn: FunctionTableNode, ctx?: CompilerContext): string;
|
|
6101
|
-
protected compileDerivedTable(table: DerivedTableNode, ctx?: CompilerContext): string;
|
|
6102
|
-
protected compileTableSource(table: TableSourceNode): string;
|
|
6103
|
-
protected compileTableName(table: {
|
|
6104
|
-
name: string;
|
|
6105
|
-
schema?: string;
|
|
6106
|
-
}): string;
|
|
6107
|
-
protected compileTableReference(table: {
|
|
6108
|
-
name: string;
|
|
6109
|
-
schema?: string;
|
|
6110
|
-
alias?: string;
|
|
6111
|
-
}): string;
|
|
6112
|
-
protected stripTrailingSemicolon(sql: string): string;
|
|
6113
|
-
protected wrapSetOperand(sql: string): string;
|
|
6114
|
-
protected renderOrderByNulls(order: OrderByNode): string | undefined;
|
|
6115
|
-
protected renderOrderByCollation(order: OrderByNode): string | undefined;
|
|
6168
|
+
declare class StandardTableFunctionStrategy implements TableFunctionStrategy {
|
|
6169
|
+
protected renderers: Map<string, TableFunctionRenderer>;
|
|
6170
|
+
protected add(key: string, renderer: TableFunctionRenderer): void;
|
|
6171
|
+
getRenderer(key: string): TableFunctionRenderer | undefined;
|
|
6116
6172
|
}
|
|
6117
6173
|
|
|
6118
|
-
/**
|
|
6119
|
-
* MySQL dialect implementation
|
|
6120
|
-
*/
|
|
6174
|
+
/** MySQL dialect assembled from reusable compiler components. */
|
|
6121
6175
|
declare class MySqlDialect extends SqlDialectBase implements ProcedureCompiler {
|
|
6122
6176
|
protected readonly dialect = "mysql";
|
|
6123
|
-
|
|
6124
|
-
* Creates a new MySqlDialect instance
|
|
6125
|
-
*/
|
|
6177
|
+
private readonly procedureCompiler;
|
|
6126
6178
|
constructor();
|
|
6127
|
-
/**
|
|
6128
|
-
* Quotes an identifier using MySQL backtick syntax
|
|
6129
|
-
* @param id - Identifier to quote
|
|
6130
|
-
* @returns Quoted identifier
|
|
6131
|
-
*/
|
|
6132
6179
|
quoteIdentifier(id: string): string;
|
|
6133
|
-
/**
|
|
6134
|
-
* Compiles JSON path expression using MySQL syntax
|
|
6135
|
-
* @param node - JSON path node
|
|
6136
|
-
* @returns MySQL JSON path expression
|
|
6137
|
-
*/
|
|
6138
6180
|
protected compileJsonPath(node: JsonPathNode): string;
|
|
6139
|
-
protected compileUpsertClause(ast: InsertQueryNode, ctx: CompilerContext): string;
|
|
6140
6181
|
compileProcedureCall(ast: ProcedureCallNode): CompiledProcedureCall;
|
|
6141
6182
|
}
|
|
6142
6183
|
|
|
6143
|
-
|
|
6144
|
-
|
|
6145
|
-
|
|
6184
|
+
declare class MySqlUpsertStrategy implements UpsertStrategy {
|
|
6185
|
+
compile(ast: InsertQueryNode, ctx: CompilerContext, services: UpsertCompilationServices): string;
|
|
6186
|
+
}
|
|
6187
|
+
|
|
6188
|
+
declare class MySqlProcedureCompiler implements ProcedureCompiler {
|
|
6189
|
+
private readonly services;
|
|
6190
|
+
constructor(services: ProcedureCompilerServices);
|
|
6191
|
+
compileProcedureCall(ast: ProcedureCallNode): CompiledProcedureCall;
|
|
6192
|
+
}
|
|
6193
|
+
|
|
6194
|
+
/** Microsoft SQL Server dialect assembled from backend compiler components. */
|
|
6146
6195
|
declare class SqlServerDialect extends SqlDialectBase implements ProcedureCompiler {
|
|
6147
6196
|
protected readonly dialect = "mssql";
|
|
6148
|
-
|
|
6149
|
-
* Creates a new SqlServerDialect instance
|
|
6150
|
-
*/
|
|
6197
|
+
private readonly procedureCompiler;
|
|
6151
6198
|
constructor();
|
|
6152
|
-
/**
|
|
6153
|
-
* Quotes an identifier using SQL Server bracket syntax
|
|
6154
|
-
* @param id - Identifier to quote
|
|
6155
|
-
* @returns Quoted identifier
|
|
6156
|
-
*/
|
|
6157
6199
|
quoteIdentifier(id: string): string;
|
|
6158
|
-
/**
|
|
6159
|
-
* Compiles JSON path expression using SQL Server syntax
|
|
6160
|
-
* @param node - JSON path node
|
|
6161
|
-
* @returns SQL Server JSON path expression
|
|
6162
|
-
*/
|
|
6163
6200
|
protected compileJsonPath(node: JsonPathNode): string;
|
|
6164
|
-
/**
|
|
6165
|
-
* Formats parameter placeholders using SQL Server named parameter syntax
|
|
6166
|
-
* @param index - Parameter index
|
|
6167
|
-
* @returns Named parameter placeholder
|
|
6168
|
-
*/
|
|
6169
6201
|
protected formatPlaceholder(index: number): string;
|
|
6170
|
-
|
|
6171
|
-
|
|
6172
|
-
|
|
6173
|
-
|
|
6174
|
-
|
|
6175
|
-
|
|
6176
|
-
|
|
6177
|
-
|
|
6178
|
-
|
|
6179
|
-
|
|
6202
|
+
compileProcedureCall(ast: ProcedureCallNode): CompiledProcedureCall;
|
|
6203
|
+
}
|
|
6204
|
+
|
|
6205
|
+
declare const createMssqlCompilerSet: SqlCompilerFactory;
|
|
6206
|
+
|
|
6207
|
+
declare class MssqlSelectCompiler implements SqlAstCompiler<SelectQueryNode> {
|
|
6208
|
+
private readonly services;
|
|
6209
|
+
private readonly sources;
|
|
6210
|
+
constructor(services: StandardSqlCompilerServices, sources: StandardSqlSourceCompiler);
|
|
6211
|
+
compile(ast: SelectQueryNode, ctx: CompilerContext): string;
|
|
6212
|
+
private compileCore;
|
|
6180
6213
|
private compileOrderBy;
|
|
6181
6214
|
private compilePagination;
|
|
6182
|
-
supportsDmlReturningClause(): boolean;
|
|
6183
|
-
protected compileReturning(returning: ColumnNode[] | undefined, _ctx: CompilerContext): string;
|
|
6184
|
-
private compileOutputClause;
|
|
6185
|
-
protected compileInsertAst(ast: InsertQueryNode, ctx: CompilerContext): string;
|
|
6186
|
-
private compileMergeInsert;
|
|
6187
|
-
private compileMergeUsingSource;
|
|
6188
|
-
private compileInsertValues;
|
|
6189
6215
|
private compileCtes;
|
|
6216
|
+
}
|
|
6217
|
+
|
|
6218
|
+
declare class MssqlInsertCompiler implements SqlAstCompiler<InsertQueryNode> {
|
|
6219
|
+
private readonly services;
|
|
6220
|
+
private readonly sources;
|
|
6221
|
+
constructor(services: StandardSqlCompilerServices, sources: StandardSqlSourceCompiler);
|
|
6222
|
+
compile(ast: InsertQueryNode, ctx: CompilerContext): string;
|
|
6223
|
+
private compileMerge;
|
|
6224
|
+
private compileMergeUsingSource;
|
|
6225
|
+
private compileInsertSource;
|
|
6226
|
+
}
|
|
6227
|
+
|
|
6228
|
+
declare class MssqlUpdateCompiler implements SqlAstCompiler<UpdateQueryNode> {
|
|
6229
|
+
private readonly services;
|
|
6230
|
+
private readonly sources;
|
|
6231
|
+
private readonly standardUpdate;
|
|
6232
|
+
constructor(services: StandardSqlCompilerServices, sources: StandardSqlSourceCompiler);
|
|
6233
|
+
compile(ast: UpdateQueryNode, ctx: CompilerContext): string;
|
|
6234
|
+
}
|
|
6235
|
+
|
|
6236
|
+
declare class MssqlDeleteCompiler implements SqlAstCompiler<DeleteQueryNode> {
|
|
6237
|
+
private readonly services;
|
|
6238
|
+
private readonly sources;
|
|
6239
|
+
private readonly output;
|
|
6240
|
+
constructor(services: StandardSqlCompilerServices, sources: StandardSqlSourceCompiler);
|
|
6241
|
+
compile(ast: DeleteQueryNode, ctx: CompilerContext): string;
|
|
6242
|
+
}
|
|
6243
|
+
|
|
6244
|
+
type MssqlOutputPrefix = 'inserted' | 'deleted';
|
|
6245
|
+
declare class MssqlOutputStrategy implements ReturningStrategy {
|
|
6246
|
+
compileReturning(returning: ColumnNode[] | undefined, _ctx: CompilerContext, quoteIdentifier: QuoteIdentifier): string;
|
|
6247
|
+
compileOutput(returning: ColumnNode[] | undefined, prefix: MssqlOutputPrefix, quoteIdentifier: QuoteIdentifier): string;
|
|
6248
|
+
formatReturningColumns(returning: ColumnNode[], quoteIdentifier: QuoteIdentifier): string;
|
|
6249
|
+
}
|
|
6250
|
+
|
|
6251
|
+
declare class MssqlProcedureCompiler implements ProcedureCompiler {
|
|
6252
|
+
private readonly services;
|
|
6253
|
+
constructor(services: ProcedureCompilerServices);
|
|
6190
6254
|
compileProcedureCall(ast: ProcedureCallNode): CompiledProcedureCall;
|
|
6191
6255
|
}
|
|
6192
6256
|
|
|
6193
|
-
/**
|
|
6194
|
-
* SQLite dialect implementation
|
|
6195
|
-
*/
|
|
6257
|
+
/** SQLite dialect assembled from reusable compiler components. */
|
|
6196
6258
|
declare class SqliteDialect extends SqlDialectBase {
|
|
6197
6259
|
protected readonly dialect = "sqlite";
|
|
6198
|
-
/**
|
|
6199
|
-
* Creates a new SqliteDialect instance
|
|
6200
|
-
*/
|
|
6201
6260
|
constructor();
|
|
6202
|
-
/**
|
|
6203
|
-
* Quotes an identifier using SQLite double-quote syntax
|
|
6204
|
-
* @param id - Identifier to quote
|
|
6205
|
-
* @returns Quoted identifier
|
|
6206
|
-
*/
|
|
6207
6261
|
quoteIdentifier(id: string): string;
|
|
6208
|
-
/**
|
|
6209
|
-
* Compiles JSON path expression using SQLite syntax
|
|
6210
|
-
* @param node - JSON path node
|
|
6211
|
-
* @returns SQLite JSON path expression
|
|
6212
|
-
*/
|
|
6213
6262
|
protected compileJsonPath(node: JsonPathNode): string;
|
|
6214
6263
|
protected compileQualifiedColumn(column: ColumnNode, _table: TableNode): string;
|
|
6215
|
-
protected compileReturning(returning: ColumnNode[] | undefined, ctx: CompilerContext): string;
|
|
6216
|
-
protected formatReturningColumns(returning: ColumnNode[]): string;
|
|
6217
|
-
protected compileUpsertClause(ast: InsertQueryNode, ctx: CompilerContext): string;
|
|
6218
|
-
supportsDmlReturningClause(): boolean;
|
|
6219
6264
|
}
|
|
6220
6265
|
|
|
6221
|
-
|
|
6222
|
-
|
|
6223
|
-
|
|
6266
|
+
declare class SqliteUpsertStrategy implements UpsertStrategy {
|
|
6267
|
+
compile(ast: InsertQueryNode, ctx: CompilerContext, services: UpsertCompilationServices): string;
|
|
6268
|
+
}
|
|
6269
|
+
|
|
6270
|
+
declare class SqliteReturningStrategy implements ReturningStrategy {
|
|
6271
|
+
compileReturning(returning: ColumnNode[] | undefined, _ctx: CompilerContext, quoteIdentifier: QuoteIdentifier): string;
|
|
6272
|
+
formatReturningColumns(returning: ColumnNode[], quoteIdentifier: QuoteIdentifier): string;
|
|
6273
|
+
}
|
|
6274
|
+
|
|
6275
|
+
/** PostgreSQL dialect assembled from reusable compiler components. */
|
|
6224
6276
|
declare class PostgresDialect extends SqlDialectBase implements ProcedureCompiler {
|
|
6225
6277
|
protected readonly dialect = "postgres";
|
|
6226
|
-
|
|
6227
|
-
* Creates a new PostgresDialect instance
|
|
6228
|
-
*/
|
|
6278
|
+
private readonly procedureCompiler;
|
|
6229
6279
|
constructor();
|
|
6230
|
-
/**
|
|
6231
|
-
* Quotes an identifier using PostgreSQL double-quote syntax
|
|
6232
|
-
* @param id - Identifier to quote
|
|
6233
|
-
* @returns Quoted identifier
|
|
6234
|
-
*/
|
|
6235
6280
|
quoteIdentifier(id: string): string;
|
|
6236
6281
|
protected formatPlaceholder(index: number): string;
|
|
6237
|
-
/**
|
|
6238
|
-
* Compiles JSON path expression using PostgreSQL syntax
|
|
6239
|
-
* @param node - JSON path node
|
|
6240
|
-
* @returns PostgreSQL JSON path expression
|
|
6241
|
-
*/
|
|
6242
6282
|
protected compileJsonPath(node: JsonPathNode): string;
|
|
6243
|
-
|
|
6244
|
-
protected compileUpsertClause(ast: InsertQueryNode, ctx: CompilerContext): string;
|
|
6245
|
-
supportsDmlReturningClause(): boolean;
|
|
6246
|
-
compileProcedureCall(ast: ProcedureCallNode): CompiledProcedureCall;
|
|
6247
|
-
/**
|
|
6248
|
-
* PostgreSQL requires unqualified column names in SET clause
|
|
6249
|
-
*/
|
|
6283
|
+
/** PostgreSQL requires unqualified column names in SET clauses. */
|
|
6250
6284
|
protected compileSetTarget(column: ColumnNode, _table: TableNode): string;
|
|
6285
|
+
compileProcedureCall(ast: ProcedureCallNode): CompiledProcedureCall;
|
|
6286
|
+
}
|
|
6287
|
+
|
|
6288
|
+
declare class PostgresUpsertStrategy implements UpsertStrategy {
|
|
6289
|
+
compile(ast: InsertQueryNode, ctx: CompilerContext, services: UpsertCompilationServices): string;
|
|
6290
|
+
}
|
|
6291
|
+
|
|
6292
|
+
/** PostgreSQL uses standard SQL RETURNING with qualified columns. */
|
|
6293
|
+
declare class PostgresReturningStrategy extends StandardReturningStrategy {
|
|
6294
|
+
}
|
|
6295
|
+
|
|
6296
|
+
declare class PostgresProcedureCompiler implements ProcedureCompiler {
|
|
6297
|
+
private readonly services;
|
|
6298
|
+
constructor(services: ProcedureCompilerServices);
|
|
6299
|
+
compileProcedureCall(ast: ProcedureCallNode): CompiledProcedureCall;
|
|
6251
6300
|
}
|
|
6252
6301
|
|
|
6253
6302
|
/** Represents the differences detected in a database column's properties. */
|
|
@@ -10553,4 +10602,4 @@ declare class BulkUpsertExecutor extends BulkBaseExecutor<UpsertExecutorOptions>
|
|
|
10553
10602
|
}
|
|
10554
10603
|
declare function bulkUpsert<TTable extends TableDef>(session: OrmSession, table: TTable, rows: InsertRow[], options?: BulkUpsertOptions): Promise<BulkResult>;
|
|
10555
10604
|
|
|
10556
|
-
export { type AliasRefNode, Alphanumeric, type AnyDomainEvent, type ApiRouteDefinition, type ApplyFilterOptions, type ArithmeticExpressionNode, type TableRef as AstTableRef, AsyncLocalStorage, type AutoCorrectionResult, type AutoTransformResult, type AutoTransformableValidator, BelongsTo, BelongsToMany, type BelongsToManyOptions, type BelongsToManyRelation, type BelongsToOptions, type BelongsToReference, type BelongsToReferenceApi, type BelongsToRelation, type BetterSqlite3ClientLike, type BetterSqlite3Statement, type BetweenExpressionNode, BigIntTypeStrategy, type BinaryExpressionNode, BinaryTypeStrategy, type BitwiseExpressionNode, type BooleanFilter, BooleanTypeStrategy, type BulkBaseOptions, type BulkConcurrency, BulkDeleteExecutor, type BulkDeleteOptions, BulkInsertExecutor, type BulkInsertOptions, type BulkResult, BulkUpdateExecutor, type BulkUpdateOptions, BulkUpsertExecutor, type BulkUpsertOptions, CEP, CNPJ, CPF, type CacheCapabilities, type CacheInvalidator, type CacheOptions, type CacheProvider, type CacheReader, type CacheState, type CacheStrategy, type CacheWriter, type CallProcedureOptions, Capitalize, type CascadeMode, type CaseExpressionNode, type CastExpressionNode, type CheckConstraint, type ChunkCompleteInfo, type ChunkOutcome, type CollateExpressionNode, Column, type ColumnDef, type ColumnDiff, type ColumnInput, type ColumnNode, type ColumnOptions, type ColumnRef, type ColumnToTs, type ColumnType, type CompiledProcedureCall, type CompiledQuery, type CompilerContext, type ComponentOptions, type ComponentReference, type CompositeTransformer, ConflictBuilder, ConstructorMaterializationStrategy, type ValidationResult as CountryValidationResult, type CountryValidator, type CountryValidatorFactory, type CreateDto, type CreateTediousClientOptions, type CursorPageInfo, type CursorPageOptions, type CursorPageResult, DEFAULT_TREE_CONFIG, type DatabaseCheck, type DatabaseColumn, type DatabaseIndex, type DatabaseSchema, type DatabaseTable, type DatabaseView, type DateFilter, DateTimeTypeStrategy, type DbExecutor, type DbExecutorFactory, DecimalTypeStrategy, type DecoratedEntityInstance, DefaultBelongsToReference, DefaultCacheStrategy, DefaultEntityMaterializer, DefaultHasManyCollection, DefaultManyToManyCollection, DefaultMorphManyCollection, DefaultMorphOneReference, DefaultMorphToReference, DefaultTypeStrategy, type DefaultValue, type DeleteCompiler, DeleteQueryBuilder, type Dialect, DialectBase, DialectFactory, type DialectKey, type DialectName, type DomainEvent, DomainEventBus, type DomainEventHandler, type Dto, type Duration, Email, Entity, type EntityContext, type EntityInstance, type EntityMaterializationStrategy, type EntityMaterializer, type EntityOptions, type PrimaryKey$1 as EntityPrimaryKey, EntityStatus, type ExecuteFilteredPagedOptions, type ExecutionContext, type ExecutionPayload, type ExistsExpressionNode, type ExpressionNode, type ExpressionVisitor, type FieldFilter, type FilterOperator, type FilterValue, type FindChildrenOptions, type FindPathOptions, type ForeignKeyReference, type FunctionNode, type GroupConcatOptions, type HasDomainEvents, HasMany, type HasManyCollection, type HasManyOptions, type HasManyRelation, HasOne, type HasOneOptions, type HasOneReference, type HasOneReferenceApi, type HasOneRelation, type HydrationContext, type HydrationMetadata, type HydrationPivotPlan, type HydrationPlan, type HydrationRelationPlan, type InExpressionNode, type InExpressionRight, type IndexColumn, type IndexDef, type InferRow, type InitialHandlers, type InsertCompiler, InsertQueryBuilder, type InsertRow, IntegerTypeStrategy, InterceptorPipeline, type IntrospectOptions, type InvalidationStrategy, type IsDistinctExpressionNode, type JsonArray, type JsonObject, type JsonPathNode, type JsonValue, type Jsonify, type JsonifyScalar, KeyvCacheAdapter, Length, type LiteralNode, type LiteralValue, type LogicalExpressionNode, Lower, type ManyToManyCollection, MemoryCacheAdapter, MorphMany, type MorphManyOptions, type MorphManyRelation, MorphOne, type MorphOneOptions, type MorphOneRelation, MorphTo, type MorphToOptions, type MorphToRelation, type MoveOptions, type MssqlClientLike, MySqlDialect, type MysqlClientLike, type NestedDtoOptions, type NestedSetBounds, type NestedSetRow, NestedSetStrategy, type NodeWithPk, type NotExpressionNode, type NullExpressionNode, type NumberFilter, type OpenApiComponent, type OpenApiDialect, type OpenApiDocument, type OpenApiDocumentInfo, type OpenApiDocumentOptions, type OpenApiOperation, type OpenApiParameter, type OpenApiParameterObject, type OpenApiResponseObject, type OpenApiSchema, type OpenApiType, type OperandNode, type OperandVisitor, Orm, type OrmCacheOptions, type OrmDomainEvent, type OrmInterceptor, type OrmOptions, OrmSession, type OrmSessionOptions, type PagedResponse, type PaginatedResult, type PaginationParams, type PatchGraphInputPayload, Pattern, Pool, type PoolAdapter, type PoolLease, type PoolOptions, type PooledConnectionAdapter, type PostgresClientLike, PostgresDialect, PrimaryKey, type Primitive, ProcedureCallBuilder, type ProcedureCallNode, type ProcedureCompiler, type ProcedureDirection, type ProcedureExecutionResult, type ProcedureOutOptions, type ProcedureParamNode, type ProcedureRefNode, type PropertySanitizer, type PropertyTransformer, type PropertyValidator, PrototypeMaterializationStrategy, QueryCacheManager, type QueryContext, type QueryInterceptor, type QueryLogEntry, type QueryLogger, type QueryResult, type RawDefaultValue, type RecoverResult, RedisCacheAdapter, type ReferentialAction, type RelationChange, type RelationChangeEntry, type RelationDef, type RelationFilter, type RelationKey$1 as RelationKey, RelationKinds, type RelationMap, type RelationTargetTable, type RelationType, type RenderColumnOptions, STANDARD_COLUMN_TYPES, type SaveGraphInputPayload, type SaveGraphInputScalar, type SaveGraphJsonScalar, type SaveGraphSessionOptions, type ScalarSubqueryNode, type SchemaChange, type SchemaChangeKind, type SchemaDiffOptions, type SchemaGenerateResult, type SchemaIntrospector, type SchemaPlan, type SelectCompiler, SelectQueryBuilder, type SelectQueryInput, type SelectableKeys, type SimpleQueryRunner, type SimpleWhereInput, type Simplify, SqlServerDialect, type SqliteClientLike, SqliteDialect, type StandardColumnType, StandardDeleteCompiler, StandardInsertCompiler, StandardSelectCompiler, type StandardSqlCompilerServices, StandardSqlSourceCompiler, StandardUpdateCompiler, type StringFilter, StringTypeStrategy, type SynchronizeOptions, type TableDef, type TableHookResolver, type TableHooks, type TableOptions, type TableRef$1 as TableRef, TagIndex, type TargetType, type TediousColumn, type TediousConnectionLike, type TediousModule, type TediousRequest, type TediousRequestCtor, type TediousTypes, type ThreadedNode, Title, type ToJsonOptions, type TrackedEntity, type TransformContext, type TransformerConfig, type TransformerMetadata, Tree, TreeChildren, type TreeColumns, type TreeConfig, type TreeDecoratorOptions, type TreeInsertData, type TreeListEntry, type TreeListOptions, type TreeListSchemaOptions, TreeManager, type TreeManagerOptions, type TreeMetadata, type TreeMoveData, type TreeNode, type TreeNodeResult, type TreeNodeResultSchemaOptions, type TreeNodeSchemaOptions, TreeParent, type TreeQuery, type TreeScope, type TreeValidationResult, Trim, TypeMappingService, type TypeMappingStrategy, TypeScriptGenerator, type TypedExpression, type TypedLike, type UpdateCompiler, type UpdateDto, UpdateQueryBuilder, type UpdateRow, Upper, UuidTypeStrategy, type ValidationOptions, type ValidationResult$1 as ValidationResult, type ValidatorFactoryOptions, type ValueOperandInput, type VectorInput, type VectorMetric, type WhereInput, type WindowFunctionNode, type WithRelations, abs, acos, add, addDomainEvent, addEntityRelation, addRelation, age, aliasRef, and, applyFilter, applyNullability, arrayAppend, asType, ascii, asin, atan, atan2, avg, belongsTo, belongsToMany, between, bitAnd, bitLength, bitOr, bitXor, bootstrapEntities, buildFilterExpression, buildScopeConditions, bulkDelete, bulkDeleteWhere, bulkInsert, bulkUpdate, bulkUpdateWhere, bulkUpsert, calculateRowDepths, calculateTotalPages, callProcedure, canonicalizeSchema, caseWhen, cast, cbrt, ceil, ceiling, char, charLength, chr, clearExpressionDispatchers, clearOperandDispatchers, coalesce, col, collate, columnOperand, columnToFilterSchema, columnToOpenApiSchema, columnTypeToOpenApiFormat, columnTypeToOpenApiType, computePaginationMetadata, computeSchemaHash, concat, concatWs, correlateBy, cos, cosineDistance, cot, count, countAll, createApiComponentsSection, createBetterSqlite3Executor, createDeterministicNamingState, createDtoToOpenApiSchema, createEntityFromRow, createEntityProxy, createExecutorFromQueryRunner, createMssqlExecutor, createMysqlExecutor, createPooledExecutorFactory, createPostgresExecutor, createQueryLoggingExecutor, createRef, createSqliteExecutor, createTediousExecutor, createTediousMssqlClient, createTreeManager, currentDate, currentTime, dateAdd, dateDiff, dateFormat, dateSub, dateTrunc, day, dayOfWeek, deepCloneSchema, defineTable, degrees, deleteFrom, denseRank, diffSchema, div, dotProduct, dtoToOpenApiSchema, endOfMonth, entityRef, entityRefs, eq, esel, euclideanDistance, exclude, executeFilteredPaged, executeHydrated, executeHydratedPlain, executeHydratedPlainWithContexts, executeHydratedWithContexts, executeProcedureAst, executeSchemaSql, executeSchemaSqlFor, exists, exp, extract, extractReusableSchemas, extractScopeValues, firstValue, floor, formatDuration, formatTreeList, fromUnixTime, generateComponentSchemas, generateCreateTableSql, generateOpenApiDocument, generateRelationComponents, generateSchemaSql, generateSchemaSqlFor, generateTreeComponents, getColumn, getColumnMap, getColumnType, getDateKind, getDecoratorMetadata, getDeterministicComponentName, getOpenApiVersionForDialect, getRegisteredValidators, getSchemaIntrospector, getTableDefFromEntity, getTreeBounds, getTreeColumns, getTreeConfig, getTreeMetadata, getTreeParentId, greatest, groupConcat, gt, gte, hasMany, hasNextPage as hasNextPageMeta, hasOne, hasPrevPage as hasPrevPageMeta, hasTreeBehavior, hasValidator, hour, hydrateRows, ifNull, inList, inSubquery, initcap, innerProduct, insertInto, instr, introspectSchema, isCaseExpressionNode, isCastExpressionNode, isCollateExpressionNode, isComponentReference, isDistinctFrom, isExpressionSelectionNode, isFunctionNode, isMorphRelation, isNotDistinctFrom, isNotNull, isNull, isNullableColumn, isOperandNode, isProcedureCompiler, isSingleTargetRelation, isTableDef, isTreeConfig, isValidDuration, isValueOperandInput, isWindowFunctionNode, jsonArrayAgg, jsonContains, jsonLength, jsonPath, jsonSet, jsonify, l1Distance, l2Distance, lag, lastValue, lead, least, left, length, like, ln, loadBelongsToManyRelation, loadBelongsToRelation, loadHasManyRelation, loadHasOneRelation, loadMorphManyRelation, loadMorphOneRelation, loadMorphToRelation, localTime, localTimestamp, locate, log, log10, log2, logBase, lower, lpad, lt, lte, ltrim, manhattanDistance, mapFields, materializeAs, max, md5, mergeSchemas, min, minute, mod, month, morphMany, morphOne, morphTo, mul, neq, nestedDtoToOpenApiSchema, nestedWhereInputToOpenApiSchema, normalizeColumnType, not, notBetween, notExists, notInList, notInSubquery, notLike, now, ntile, nullif, octetLength, or, outerRef, pagedResponseToOpenApiSchema, paginationParamsSchema, parameterToRef, parseDuration, payloadResultSets, pi, pick, position, pow, power, quarter, radians, rand, random, rank, registerExpressionDispatcher, registerOperandDispatcher, registerSchemaIntrospector, registerValidator, relationFilterToOpenApiSchema, relationLoaderCache, renderColumnDefinition, renderTypeWithArgs, repeat, replace, replaceWithRefs, requireProcedureCompiler, resolveDialectInput, resolveTreeConfig, resolveValidator, responseToRef, reverse, right, round, rowNumber, rowsToQueryResult, rpad, rtrim, schemaToJson, schemaToRef, second, sel, selectFrom, selectFromEntity, setRelations, setTreeBounds, setTreeMetadata, setTreeParentId, sha1, sha2, shiftLeft, shiftRight, sign, sin, space, sqrt, stddev, sub, substr, sum, syncTreeEntityMetadata, synchronizeSchema, tableRef, tan, threadResults, threadedNodeToOpenApiSchema, toColumnRef, toExecutionPayload, toPagedResponse, toPagedResponseBuilder, toPaginationParams, toResponse, toResponseBuilder, toTableRef, treeEntityRegistry, treeListEntryToOpenApiSchema, treeNodeResultToOpenApiSchema, treeNodeToOpenApiSchema, treeQuery, trim, trunc, truncate, typeMappingService, unixTimestamp, update, updateDtoToOpenApiSchema, updateDtoWithRelationsToOpenApiSchema, upper, utcNow, validateTreeTable, valueToOperand, variance, vectorDistance, vectorMatch, visitExpression, visitOperand, weekOfYear, whereInputToOpenApiSchema, whereInputWithRelationsToOpenApiSchema, windowFunction, withDefaults, withDefaultsBuilder, year };
|
|
10605
|
+
export { type AliasRefNode, Alphanumeric, type AnyDomainEvent, type ApiRouteDefinition, type ApplyFilterOptions, type ArithmeticExpressionNode, type TableRef as AstTableRef, AsyncLocalStorage, type AutoCorrectionResult, type AutoTransformResult, type AutoTransformableValidator, BelongsTo, BelongsToMany, type BelongsToManyOptions, type BelongsToManyRelation, type BelongsToOptions, type BelongsToReference, type BelongsToReferenceApi, type BelongsToRelation, type BetterSqlite3ClientLike, type BetterSqlite3Statement, type BetweenExpressionNode, BigIntTypeStrategy, type BinaryExpressionNode, BinaryTypeStrategy, type BitwiseExpressionNode, type BooleanFilter, BooleanTypeStrategy, type BulkBaseOptions, type BulkConcurrency, BulkDeleteExecutor, type BulkDeleteOptions, BulkInsertExecutor, type BulkInsertOptions, type BulkResult, BulkUpdateExecutor, type BulkUpdateOptions, BulkUpsertExecutor, type BulkUpsertOptions, CEP, CNPJ, CPF, type CacheCapabilities, type CacheInvalidator, type CacheOptions, type CacheProvider, type CacheReader, type CacheState, type CacheStrategy, type CacheWriter, type CallProcedureOptions, Capitalize, type CascadeMode, type CaseExpressionNode, type CastExpressionNode, type CheckConstraint, type ChunkCompleteInfo, type ChunkOutcome, type CollateExpressionNode, Column, type ColumnDef, type ColumnDiff, type ColumnInput, type ColumnNode, type ColumnOptions, type ColumnRef, type ColumnToTs, type ColumnType, type CompiledProcedureCall, type CompiledQuery, type CompilerContext, type ComponentOptions, type ComponentReference, type CompositeTransformer, ConflictBuilder, ConstructorMaterializationStrategy, type ValidationResult as CountryValidationResult, type CountryValidator, type CountryValidatorFactory, type CreateDto, type CreateTediousClientOptions, type CursorPageInfo, type CursorPageOptions, type CursorPageResult, DEFAULT_TREE_CONFIG, type DatabaseCheck, type DatabaseColumn, type DatabaseIndex, type DatabaseSchema, type DatabaseTable, type DatabaseView, type DateFilter, DateTimeTypeStrategy, type DbExecutor, type DbExecutorFactory, DecimalTypeStrategy, type DecoratedEntityInstance, DefaultBelongsToReference, DefaultCacheStrategy, DefaultEntityMaterializer, DefaultHasManyCollection, DefaultManyToManyCollection, DefaultMorphManyCollection, DefaultMorphOneReference, DefaultMorphToReference, DefaultTypeStrategy, type DefaultValue, type DeleteCompiler, DeleteQueryBuilder, type Dialect, DialectBase, DialectFactory, type DialectKey, type DialectName, type DomainEvent, DomainEventBus, type DomainEventHandler, type Dto, type Duration, Email, Entity, type EntityContext, type EntityInstance, type EntityMaterializationStrategy, type EntityMaterializer, type EntityOptions, type PrimaryKey$1 as EntityPrimaryKey, EntityStatus, type ExecuteFilteredPagedOptions, type ExecutionContext, type ExecutionPayload, type ExistsExpressionNode, type ExpressionNode, type ExpressionVisitor, type FieldFilter, type FilterOperator, type FilterValue, type FindChildrenOptions, type FindPathOptions, type ForeignKeyReference, type FunctionNode, type GroupConcatOptions, type HasDomainEvents, HasMany, type HasManyCollection, type HasManyOptions, type HasManyRelation, HasOne, type HasOneOptions, type HasOneReference, type HasOneReferenceApi, type HasOneRelation, type HydrationContext, type HydrationMetadata, type HydrationPivotPlan, type HydrationPlan, type HydrationRelationPlan, type InExpressionNode, type InExpressionRight, type IndexColumn, type IndexDef, type InferRow, type InitialHandlers, type InsertCompiler, InsertQueryBuilder, type InsertRow, IntegerTypeStrategy, InterceptorPipeline, type IntrospectOptions, type InvalidationStrategy, type IsDistinctExpressionNode, type JsonArray, type JsonObject, type JsonPathNode, type JsonValue, type Jsonify, type JsonifyScalar, KeyvCacheAdapter, Length, type LiteralNode, type LiteralValue, type LogicalExpressionNode, Lower, type ManyToManyCollection, MemoryCacheAdapter, MorphMany, type MorphManyOptions, type MorphManyRelation, MorphOne, type MorphOneOptions, type MorphOneRelation, MorphTo, type MorphToOptions, type MorphToRelation, type MoveOptions, type MssqlClientLike, MssqlDeleteCompiler, MssqlInsertCompiler, type MssqlOutputPrefix, MssqlOutputStrategy, MssqlProcedureCompiler, MssqlSelectCompiler, MssqlUpdateCompiler, MySqlDialect, MySqlProcedureCompiler, MySqlUpsertStrategy, type MysqlClientLike, type NestedDtoOptions, type NestedSetBounds, type NestedSetRow, NestedSetStrategy, NoReturningStrategy, NoUpsertStrategy, type NodeWithPk, type NotExpressionNode, type NullExpressionNode, type NumberFilter, type OpenApiComponent, type OpenApiDialect, type OpenApiDocument, type OpenApiDocumentInfo, type OpenApiDocumentOptions, type OpenApiOperation, type OpenApiParameter, type OpenApiParameterObject, type OpenApiResponseObject, type OpenApiSchema, type OpenApiType, type OperandNode, type OperandVisitor, Orm, type OrmCacheOptions, type OrmDomainEvent, type OrmInterceptor, type OrmOptions, OrmSession, type OrmSessionOptions, type PagedResponse, type PaginatedResult, type PaginationParams, type PaginationStrategy, type PatchGraphInputPayload, Pattern, Pool, type PoolAdapter, type PoolLease, type PoolOptions, type PooledConnectionAdapter, type PostgresClientLike, PostgresDialect, PostgresProcedureCompiler, PostgresReturningStrategy, PostgresUpsertStrategy, PrimaryKey, type Primitive, ProcedureCallBuilder, type ProcedureCallNode, type ProcedureCompiler, type ProcedureCompilerServices, type ProcedureDirection, type ProcedureExecutionResult, type ProcedureOutOptions, type ProcedureParamNode, type ProcedureRefNode, type PropertySanitizer, type PropertyTransformer, type PropertyValidator, PrototypeMaterializationStrategy, QueryCacheManager, type QueryContext, type QueryInterceptor, type QueryLogEntry, type QueryLogger, type QueryResult, type QuoteIdentifier, type RawDefaultValue, type RecoverResult, RedisCacheAdapter, type ReferentialAction, type RelationChange, type RelationChangeEntry, type RelationDef, type RelationFilter, type RelationKey$1 as RelationKey, RelationKinds, type RelationMap, type RelationTargetTable, type RelationType, type RenderColumnOptions, type ReturningStrategy, STANDARD_COLUMN_TYPES, type SaveGraphInputPayload, type SaveGraphInputScalar, type SaveGraphJsonScalar, type SaveGraphSessionOptions, type ScalarSubqueryNode, type SchemaChange, type SchemaChangeKind, type SchemaDiffOptions, type SchemaGenerateResult, type SchemaIntrospector, type SchemaPlan, type SelectCompiler, SelectQueryBuilder, type SelectQueryInput, type SelectableKeys, type SimpleQueryRunner, type SimpleWhereInput, type Simplify, type SqlAstCompiler, type SqlCompilerAssemblyContext, type SqlCompilerFactory, type SqlCompilerSet, SqlDialectBase, type SqlDialectBaseOptions, SqlServerDialect, type SqliteClientLike, SqliteDialect, SqliteReturningStrategy, SqliteUpsertStrategy, type StandardColumnType, StandardDeleteCompiler, StandardInsertCompiler, StandardLimitOffsetPagination, StandardReturningStrategy, StandardSelectCompiler, type StandardSqlCompilerServices, StandardSqlSourceCompiler, StandardTableFunctionStrategy, StandardUpdateCompiler, type StringFilter, StringTypeStrategy, type SynchronizeOptions, type TableDef, type TableFunctionRenderContext, type TableFunctionRenderer, type TableFunctionStrategy, type TableHookResolver, type TableHooks, type TableOptions, type TableRef$1 as TableRef, TagIndex, type TargetType, type TediousColumn, type TediousConnectionLike, type TediousModule, type TediousRequest, type TediousRequestCtor, type TediousTypes, type ThreadedNode, Title, type ToJsonOptions, type TrackedEntity, type TransformContext, type TransformerConfig, type TransformerMetadata, Tree, TreeChildren, type TreeColumns, type TreeConfig, type TreeDecoratorOptions, type TreeInsertData, type TreeListEntry, type TreeListOptions, type TreeListSchemaOptions, TreeManager, type TreeManagerOptions, type TreeMetadata, type TreeMoveData, type TreeNode, type TreeNodeResult, type TreeNodeResultSchemaOptions, type TreeNodeSchemaOptions, TreeParent, type TreeQuery, type TreeScope, type TreeValidationResult, Trim, TypeMappingService, type TypeMappingStrategy, TypeScriptGenerator, type TypedExpression, type TypedLike, type UpdateCompiler, type UpdateDto, UpdateQueryBuilder, type UpdateRow, Upper, type UpsertCompilationServices, type UpsertStrategy, UuidTypeStrategy, type ValidationOptions, type ValidationResult$1 as ValidationResult, type ValidatorFactoryOptions, type ValueOperandInput, type VectorInput, type VectorMetric, type WhereInput, type WindowFunctionNode, type WithRelations, abs, acos, add, addDomainEvent, addEntityRelation, addRelation, age, aliasRef, and, applyFilter, applyNullability, arrayAppend, asType, ascii, asin, atan, atan2, avg, belongsTo, belongsToMany, between, bitAnd, bitLength, bitOr, bitXor, bootstrapEntities, buildFilterExpression, buildScopeConditions, bulkDelete, bulkDeleteWhere, bulkInsert, bulkUpdate, bulkUpdateWhere, bulkUpsert, calculateRowDepths, calculateTotalPages, callProcedure, canonicalizeSchema, caseWhen, cast, cbrt, ceil, ceiling, char, charLength, chr, clearExpressionDispatchers, clearOperandDispatchers, coalesce, col, collate, columnOperand, columnToFilterSchema, columnToOpenApiSchema, columnTypeToOpenApiFormat, columnTypeToOpenApiType, computePaginationMetadata, computeSchemaHash, concat, concatWs, correlateBy, cos, cosineDistance, cot, count, countAll, createApiComponentsSection, createBetterSqlite3Executor, createDeterministicNamingState, createDtoToOpenApiSchema, createEntityFromRow, createEntityProxy, createExecutorFromQueryRunner, createMssqlCompilerSet, createMssqlExecutor, createMysqlExecutor, createPooledExecutorFactory, createPostgresExecutor, createQueryLoggingExecutor, createRef, createSqliteExecutor, createTediousExecutor, createTediousMssqlClient, createTreeManager, currentDate, currentTime, dateAdd, dateDiff, dateFormat, dateSub, dateTrunc, day, dayOfWeek, deepCloneSchema, defineTable, degrees, deleteFrom, denseRank, diffSchema, div, dotProduct, dtoToOpenApiSchema, endOfMonth, entityRef, entityRefs, eq, esel, euclideanDistance, exclude, executeFilteredPaged, executeHydrated, executeHydratedPlain, executeHydratedPlainWithContexts, executeHydratedWithContexts, executeProcedureAst, executeSchemaSql, executeSchemaSqlFor, exists, exp, extract, extractReusableSchemas, extractScopeValues, firstValue, floor, formatDuration, formatTreeList, fromUnixTime, generateComponentSchemas, generateCreateTableSql, generateOpenApiDocument, generateRelationComponents, generateSchemaSql, generateSchemaSqlFor, generateTreeComponents, getColumn, getColumnMap, getColumnType, getDateKind, getDecoratorMetadata, getDeterministicComponentName, getOpenApiVersionForDialect, getRegisteredValidators, getSchemaIntrospector, getTableDefFromEntity, getTreeBounds, getTreeColumns, getTreeConfig, getTreeMetadata, getTreeParentId, greatest, groupConcat, gt, gte, hasMany, hasNextPage as hasNextPageMeta, hasOne, hasPrevPage as hasPrevPageMeta, hasTreeBehavior, hasValidator, hour, hydrateRows, ifNull, inList, inSubquery, initcap, innerProduct, insertInto, instr, introspectSchema, isCaseExpressionNode, isCastExpressionNode, isCollateExpressionNode, isComponentReference, isDistinctFrom, isExpressionSelectionNode, isFunctionNode, isMorphRelation, isNotDistinctFrom, isNotNull, isNull, isNullableColumn, isOperandNode, isProcedureCompiler, isSingleTargetRelation, isTableDef, isTreeConfig, isValidDuration, isValueOperandInput, isWindowFunctionNode, jsonArrayAgg, jsonContains, jsonLength, jsonPath, jsonSet, jsonify, l1Distance, l2Distance, lag, lastValue, lead, least, left, length, like, ln, loadBelongsToManyRelation, loadBelongsToRelation, loadHasManyRelation, loadHasOneRelation, loadMorphManyRelation, loadMorphOneRelation, loadMorphToRelation, localTime, localTimestamp, locate, log, log10, log2, logBase, lower, lpad, lt, lte, ltrim, manhattanDistance, mapFields, materializeAs, max, md5, mergeSchemas, min, minute, mod, month, morphMany, morphOne, morphTo, mul, neq, nestedDtoToOpenApiSchema, nestedWhereInputToOpenApiSchema, normalizeColumnType, not, notBetween, notExists, notInList, notInSubquery, notLike, now, ntile, nullif, octetLength, or, outerRef, pagedResponseToOpenApiSchema, paginationParamsSchema, parameterToRef, parseDuration, payloadResultSets, pi, pick, position, pow, power, quarter, radians, rand, random, rank, registerExpressionDispatcher, registerOperandDispatcher, registerSchemaIntrospector, registerValidator, relationFilterToOpenApiSchema, relationLoaderCache, renderColumnDefinition, renderTypeWithArgs, repeat, replace, replaceWithRefs, requireProcedureCompiler, resolveDialectInput, resolveTreeConfig, resolveValidator, responseToRef, reverse, right, round, rowNumber, rowsToQueryResult, rpad, rtrim, schemaToJson, schemaToRef, second, sel, selectFrom, selectFromEntity, setRelations, setTreeBounds, setTreeMetadata, setTreeParentId, sha1, sha2, shiftLeft, shiftRight, sign, sin, space, sqrt, stddev, sub, substr, sum, syncTreeEntityMetadata, synchronizeSchema, tableRef, tan, threadResults, threadedNodeToOpenApiSchema, toColumnRef, toExecutionPayload, toPagedResponse, toPagedResponseBuilder, toPaginationParams, toResponse, toResponseBuilder, toTableRef, treeEntityRegistry, treeListEntryToOpenApiSchema, treeNodeResultToOpenApiSchema, treeNodeToOpenApiSchema, treeQuery, trim, trunc, truncate, typeMappingService, unixTimestamp, update, updateDtoToOpenApiSchema, updateDtoWithRelationsToOpenApiSchema, upper, utcNow, validateTreeTable, valueToOperand, variance, vectorDistance, vectorMatch, visitExpression, visitOperand, weekOfYear, whereInputToOpenApiSchema, whereInputWithRelationsToOpenApiSchema, windowFunction, withDefaults, withDefaultsBuilder, year };
|