metal-orm 1.1.25 → 1.1.27
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 +1151 -510
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +281 -248
- package/dist/index.d.ts +281 -248
- package/dist/index.js +1133 -508
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/core/ddl/dialects/index.ts +5 -6
- package/src/core/ddl/dialects/mssql-schema-dialect.ts +129 -126
- package/src/core/ddl/dialects/mysql-schema-dialect.ts +119 -111
- package/src/core/ddl/dialects/postgres-schema-dialect.ts +173 -164
- package/src/core/ddl/dialects/render-reference.test.ts +37 -57
- package/src/core/ddl/dialects/sqlite-schema-dialect.ts +110 -121
- package/src/core/ddl/schema-dialect-composer.ts +129 -0
- package/src/core/ddl/schema-dialect.ts +40 -27
- package/src/core/ddl/schema-diff.ts +119 -90
- package/src/core/dialect/abstract.ts +7 -229
- package/src/core/dialect/base/sql-dialect-composer.ts +294 -0
- package/src/core/dialect/base/standard-sql-services.ts +2 -6
- package/src/core/dialect/base/upsert-strategy.ts +1 -2
- package/src/core/dialect/dialect-factory.ts +17 -49
- package/src/core/dialect/mssql/index.ts +56 -27
- package/src/core/dialect/mysql/index.ts +69 -36
- package/src/core/dialect/postgres/index.ts +71 -43
- package/src/core/dialect/sqlite/index.ts +68 -38
- package/src/core/driver/mssql-driver.ts +6 -8
- package/src/core/driver/mysql-driver.ts +6 -8
- package/src/core/driver/postgres-driver.ts +6 -8
- package/src/core/driver/sqlite-driver.ts +6 -8
- package/src/index.ts +13 -1
- package/src/core/ddl/dialects/base-schema-dialect.ts +0 -96
- package/src/core/dialect/base/sql-dialect.ts +0 -217
package/dist/index.d.ts
CHANGED
|
@@ -716,23 +716,6 @@ declare const ORDER_DIRECTIONS: {
|
|
|
716
716
|
* Type representing any supported order direction
|
|
717
717
|
*/
|
|
718
718
|
type OrderDirection = (typeof ORDER_DIRECTIONS)[keyof typeof ORDER_DIRECTIONS];
|
|
719
|
-
/**
|
|
720
|
-
* Supported database dialects
|
|
721
|
-
*/
|
|
722
|
-
declare const SUPPORTED_DIALECTS: {
|
|
723
|
-
/** MySQL database dialect */
|
|
724
|
-
readonly MYSQL: "mysql";
|
|
725
|
-
/** SQLite database dialect */
|
|
726
|
-
readonly SQLITE: "sqlite";
|
|
727
|
-
/** Microsoft SQL Server dialect */
|
|
728
|
-
readonly MSSQL: "mssql";
|
|
729
|
-
/** PostgreSQL database dialect */
|
|
730
|
-
readonly POSTGRES: "postgres";
|
|
731
|
-
};
|
|
732
|
-
/**
|
|
733
|
-
* Type representing any supported database dialect
|
|
734
|
-
*/
|
|
735
|
-
type DialectName$1 = (typeof SUPPORTED_DIALECTS)[keyof typeof SUPPORTED_DIALECTS];
|
|
736
719
|
|
|
737
720
|
/**
|
|
738
721
|
* Minimal column reference used by AST builders.
|
|
@@ -1986,47 +1969,6 @@ interface HydrationMetadata {
|
|
|
1986
1969
|
[key: string]: unknown;
|
|
1987
1970
|
}
|
|
1988
1971
|
|
|
1989
|
-
/**
|
|
1990
|
-
* Context provided to function renderers.
|
|
1991
|
-
*/
|
|
1992
|
-
interface FunctionRenderContext {
|
|
1993
|
-
/** The function node being rendered. */
|
|
1994
|
-
node: FunctionNode;
|
|
1995
|
-
/** The compiled arguments for the function. */
|
|
1996
|
-
compiledArgs: string[];
|
|
1997
|
-
/** Helper to compile additional operands (e.g., separators or ORDER BY columns). */
|
|
1998
|
-
compileOperand: (operand: OperandNode) => string;
|
|
1999
|
-
}
|
|
2000
|
-
/**
|
|
2001
|
-
* A function that renders a SQL function call.
|
|
2002
|
-
* @param ctx - The rendering context.
|
|
2003
|
-
* @returns The rendered SQL string.
|
|
2004
|
-
*/
|
|
2005
|
-
type FunctionRenderer = (ctx: FunctionRenderContext) => string;
|
|
2006
|
-
/**
|
|
2007
|
-
* Strategy for rendering SQL functions in a specific dialect.
|
|
2008
|
-
*/
|
|
2009
|
-
interface FunctionStrategy {
|
|
2010
|
-
/**
|
|
2011
|
-
* Returns a renderer for a specific function name (e.g. "DATE_ADD").
|
|
2012
|
-
* Returns undefined if this dialect doesn't support the function.
|
|
2013
|
-
* @param functionName - The name of the function.
|
|
2014
|
-
* @returns The renderer function or undefined.
|
|
2015
|
-
*/
|
|
2016
|
-
getRenderer(functionName: string): FunctionRenderer | undefined;
|
|
2017
|
-
}
|
|
2018
|
-
|
|
2019
|
-
interface TableFunctionRenderContext {
|
|
2020
|
-
node: FunctionTableNode;
|
|
2021
|
-
compiledArgs: string[];
|
|
2022
|
-
compileOperand: (operand: OperandNode) => string;
|
|
2023
|
-
quoteIdentifier: (id: string) => string;
|
|
2024
|
-
}
|
|
2025
|
-
type TableFunctionRenderer = (ctx: TableFunctionRenderContext) => string;
|
|
2026
|
-
interface TableFunctionStrategy {
|
|
2027
|
-
getRenderer(key: string): TableFunctionRenderer | undefined;
|
|
2028
|
-
}
|
|
2029
|
-
|
|
2030
1972
|
/** Context for SQL compilation with parameter management. */
|
|
2031
1973
|
interface CompilerContext {
|
|
2032
1974
|
params: unknown[];
|
|
@@ -2050,55 +1992,15 @@ interface DeleteCompiler {
|
|
|
2050
1992
|
compileDelete(ast: DeleteQueryNode): CompiledQuery;
|
|
2051
1993
|
}
|
|
2052
1994
|
/**
|
|
2053
|
-
*
|
|
2054
|
-
*
|
|
2055
|
-
*
|
|
2056
|
-
*
|
|
1995
|
+
* Structural contract consumed by query builders and the ORM runtime.
|
|
1996
|
+
*
|
|
1997
|
+
* A dialect is assembled from compiler components. There is intentionally no
|
|
1998
|
+
* base class: inheritance is not part of the extension model.
|
|
2057
1999
|
*/
|
|
2058
2000
|
interface Dialect extends SelectCompiler, InsertCompiler, UpdateCompiler, DeleteCompiler {
|
|
2059
2001
|
quoteIdentifier(id: string): string;
|
|
2060
2002
|
supportsDmlReturningClause(): boolean;
|
|
2061
2003
|
}
|
|
2062
|
-
/**
|
|
2063
|
-
* Shared implementation infrastructure for SQL dialects.
|
|
2064
|
-
*
|
|
2065
|
-
* This is deliberately separate from the public Dialect contract: custom
|
|
2066
|
-
* dialects may extend this class, extend SqlDialectBase, or use composition.
|
|
2067
|
-
*/
|
|
2068
|
-
declare abstract class DialectBase implements Dialect {
|
|
2069
|
-
protected abstract readonly dialect: DialectName$1;
|
|
2070
|
-
private readonly expressionCompilerRegistry;
|
|
2071
|
-
private readonly selectAstNormalizer;
|
|
2072
|
-
protected readonly functionStrategy: FunctionStrategy;
|
|
2073
|
-
protected readonly tableFunctionStrategy: TableFunctionStrategy;
|
|
2074
|
-
protected constructor(functionStrategy?: FunctionStrategy, tableFunctionStrategy?: TableFunctionStrategy);
|
|
2075
|
-
compileSelect(ast: SelectQueryNode): CompiledQuery;
|
|
2076
|
-
compileInsert(ast: InsertQueryNode): CompiledQuery;
|
|
2077
|
-
compileUpdate(ast: UpdateQueryNode): CompiledQuery;
|
|
2078
|
-
compileDelete(ast: DeleteQueryNode): CompiledQuery;
|
|
2079
|
-
supportsDmlReturningClause(): boolean;
|
|
2080
|
-
protected abstract compileSelectAst(ast: SelectQueryNode, ctx: CompilerContext): string;
|
|
2081
|
-
protected abstract compileInsertAst(ast: InsertQueryNode, ctx: CompilerContext): string;
|
|
2082
|
-
protected abstract compileUpdateAst(ast: UpdateQueryNode, ctx: CompilerContext): string;
|
|
2083
|
-
protected abstract compileDeleteAst(ast: DeleteQueryNode, ctx: CompilerContext): string;
|
|
2084
|
-
abstract quoteIdentifier(id: string): string;
|
|
2085
|
-
protected compileWhere(where: ExpressionNode | undefined, ctx: CompilerContext): string;
|
|
2086
|
-
protected compileReturning(returning: ColumnNode[] | undefined, _ctx: CompilerContext): string;
|
|
2087
|
-
protected compileSelectForExists(ast: SelectQueryNode, ctx: CompilerContext): string;
|
|
2088
|
-
protected createCompilerContext(): CompilerContext;
|
|
2089
|
-
protected formatPlaceholder(_index: number): string;
|
|
2090
|
-
protected supportsSetOperation(_kind: SetOperationKind): boolean;
|
|
2091
|
-
protected normalizeSelectAst(ast: SelectQueryNode): SelectQueryNode;
|
|
2092
|
-
protected registerExpressionCompiler<T extends ExpressionNode>(type: T['type'], compiler: (node: T, ctx: CompilerContext) => string): void;
|
|
2093
|
-
protected registerOperandCompiler<T extends OperandNode>(type: T['type'], compiler: (node: T, ctx: CompilerContext) => string): void;
|
|
2094
|
-
protected compileExpression(node: ExpressionNode, ctx: CompilerContext): string;
|
|
2095
|
-
protected compileOperand(node: OperandNode, ctx: CompilerContext): string;
|
|
2096
|
-
protected compileOrderingTerm(term: OrderingTerm, ctx: CompilerContext): string;
|
|
2097
|
-
protected compileJsonPath(_node: JsonPathNode): string;
|
|
2098
|
-
protected compileFunctionOperand(fnNode: FunctionNode, ctx: CompilerContext): string;
|
|
2099
|
-
/** Creates a minimal dialect implementation for isolated compiler tests. */
|
|
2100
|
-
static create(functionStrategy?: FunctionStrategy, tableFunctionStrategy?: TableFunctionStrategy): Dialect;
|
|
2101
|
-
}
|
|
2102
2004
|
|
|
2103
2005
|
type DialectKey = 'postgres' | 'mysql' | 'sqlite' | 'mssql' | (string & {});
|
|
2104
2006
|
type DialectFactoryFn = () => Dialect;
|
|
@@ -2106,28 +2008,13 @@ declare class DialectFactory {
|
|
|
2106
2008
|
private static registry;
|
|
2107
2009
|
private static defaultsInitialized;
|
|
2108
2010
|
private static ensureDefaults;
|
|
2109
|
-
/**
|
|
2110
|
-
* Register (or override) a dialect factory for a key.
|
|
2111
|
-
*
|
|
2112
|
-
* Implementations are structural: extending DialectBase/SqlDialectBase is
|
|
2113
|
-
* optional. A composed object satisfying Dialect is a valid registration.
|
|
2114
|
-
*/
|
|
2011
|
+
/** Register or replace a structural dialect factory. */
|
|
2115
2012
|
static register(key: DialectKey, factory: DialectFactoryFn): void;
|
|
2116
|
-
/**
|
|
2117
|
-
* Resolve a key into a Dialect instance.
|
|
2118
|
-
* Throws if the key is not registered.
|
|
2119
|
-
*/
|
|
2013
|
+
/** Resolve a key into a new Dialect instance. */
|
|
2120
2014
|
static create(key: DialectKey): Dialect;
|
|
2121
|
-
/**
|
|
2122
|
-
* Clear all registrations (mainly for tests).
|
|
2123
|
-
* Built-ins will be re-registered lazily on the next create().
|
|
2124
|
-
*/
|
|
2015
|
+
/** Clear registrations; built-ins are restored lazily on the next create(). */
|
|
2125
2016
|
static clear(): void;
|
|
2126
2017
|
}
|
|
2127
|
-
/**
|
|
2128
|
-
* Helper to normalize either a Dialect instance OR a key into a Dialect instance.
|
|
2129
|
-
* This is what query builders will use.
|
|
2130
|
-
*/
|
|
2131
2018
|
declare const resolveDialectInput: (dialect: Dialect | DialectKey) => Dialect;
|
|
2132
2019
|
|
|
2133
2020
|
/**
|
|
@@ -5940,6 +5827,47 @@ declare const update: <TTable extends TableDef>(target: QueryTarget<TTable>) =>
|
|
|
5940
5827
|
*/
|
|
5941
5828
|
declare const deleteFrom: <TTable extends TableDef>(target: QueryTarget<TTable>) => DeleteQueryBuilder<unknown>;
|
|
5942
5829
|
|
|
5830
|
+
/**
|
|
5831
|
+
* Context provided to function renderers.
|
|
5832
|
+
*/
|
|
5833
|
+
interface FunctionRenderContext {
|
|
5834
|
+
/** The function node being rendered. */
|
|
5835
|
+
node: FunctionNode;
|
|
5836
|
+
/** The compiled arguments for the function. */
|
|
5837
|
+
compiledArgs: string[];
|
|
5838
|
+
/** Helper to compile additional operands (e.g., separators or ORDER BY columns). */
|
|
5839
|
+
compileOperand: (operand: OperandNode) => string;
|
|
5840
|
+
}
|
|
5841
|
+
/**
|
|
5842
|
+
* A function that renders a SQL function call.
|
|
5843
|
+
* @param ctx - The rendering context.
|
|
5844
|
+
* @returns The rendered SQL string.
|
|
5845
|
+
*/
|
|
5846
|
+
type FunctionRenderer = (ctx: FunctionRenderContext) => string;
|
|
5847
|
+
/**
|
|
5848
|
+
* Strategy for rendering SQL functions in a specific dialect.
|
|
5849
|
+
*/
|
|
5850
|
+
interface FunctionStrategy {
|
|
5851
|
+
/**
|
|
5852
|
+
* Returns a renderer for a specific function name (e.g. "DATE_ADD").
|
|
5853
|
+
* Returns undefined if this dialect doesn't support the function.
|
|
5854
|
+
* @param functionName - The name of the function.
|
|
5855
|
+
* @returns The renderer function or undefined.
|
|
5856
|
+
*/
|
|
5857
|
+
getRenderer(functionName: string): FunctionRenderer | undefined;
|
|
5858
|
+
}
|
|
5859
|
+
|
|
5860
|
+
interface TableFunctionRenderContext {
|
|
5861
|
+
node: FunctionTableNode;
|
|
5862
|
+
compiledArgs: string[];
|
|
5863
|
+
compileOperand: (operand: OperandNode) => string;
|
|
5864
|
+
quoteIdentifier: (id: string) => string;
|
|
5865
|
+
}
|
|
5866
|
+
type TableFunctionRenderer = (ctx: TableFunctionRenderContext) => string;
|
|
5867
|
+
interface TableFunctionStrategy {
|
|
5868
|
+
getRenderer(key: string): TableFunctionRenderer | undefined;
|
|
5869
|
+
}
|
|
5870
|
+
|
|
5943
5871
|
/**
|
|
5944
5872
|
* Strategy interface for compiling pagination clauses.
|
|
5945
5873
|
* Allows dialects to customize how pagination (LIMIT/OFFSET, ROWS FETCH, etc.) is generated.
|
|
@@ -5985,7 +5913,7 @@ declare class StandardReturningStrategy extends NoReturningStrategy {
|
|
|
5985
5913
|
|
|
5986
5914
|
/** Narrow services needed by backend-specific UPSERT implementations. */
|
|
5987
5915
|
interface UpsertCompilationServices {
|
|
5988
|
-
getDialectName():
|
|
5916
|
+
getDialectName(): string;
|
|
5989
5917
|
quoteIdentifier(id: string): string;
|
|
5990
5918
|
compileOperand(node: OperandNode, ctx: CompilerContext): string;
|
|
5991
5919
|
compileExpression(node: ExpressionNode, ctx: CompilerContext): string;
|
|
@@ -6002,13 +5930,10 @@ declare class NoUpsertStrategy implements UpsertStrategy {
|
|
|
6002
5930
|
|
|
6003
5931
|
/**
|
|
6004
5932
|
* Narrow callback surface consumed by the standard SQL compilers.
|
|
6005
|
-
*
|
|
6006
|
-
* The compilers deliberately know nothing about SqlDialectBase or any concrete
|
|
6007
|
-
* backend class. A dialect can assemble these services through inheritance,
|
|
6008
|
-
* composition, or a plain object.
|
|
5933
|
+
* It deliberately depends on no dialect superclass or built-in dialect union.
|
|
6009
5934
|
*/
|
|
6010
5935
|
interface StandardSqlCompilerServices {
|
|
6011
|
-
getDialectName():
|
|
5936
|
+
getDialectName(): string;
|
|
6012
5937
|
getPaginationStrategy(): PaginationStrategy;
|
|
6013
5938
|
getTableFunctionStrategy(): TableFunctionStrategy;
|
|
6014
5939
|
quoteIdentifier(id: string): string;
|
|
@@ -6064,7 +5989,29 @@ interface SqlCompilerAssemblyContext {
|
|
|
6064
5989
|
*/
|
|
6065
5990
|
type SqlCompilerFactory = (context: SqlCompilerAssemblyContext) => Partial<SqlCompilerSet>;
|
|
6066
5991
|
|
|
6067
|
-
interface
|
|
5992
|
+
interface SqlDialectExpressionApi {
|
|
5993
|
+
registerExpressionCompiler<T extends ExpressionNode>(type: T['type'], compiler: (node: T, ctx: CompilerContext) => string): void;
|
|
5994
|
+
registerOperandCompiler<T extends OperandNode>(type: T['type'], compiler: (node: T, ctx: CompilerContext) => string): void;
|
|
5995
|
+
compileExpression(node: ExpressionNode, ctx: CompilerContext): string;
|
|
5996
|
+
compileOperand(node: OperandNode, ctx: CompilerContext): string;
|
|
5997
|
+
compileOrderingTerm(term: OrderingTerm, ctx: CompilerContext): string;
|
|
5998
|
+
}
|
|
5999
|
+
interface SqlDialectRuntimeServices extends ProcedureCompilerServices {
|
|
6000
|
+
compileExpression(node: ExpressionNode, ctx: CompilerContext): string;
|
|
6001
|
+
compileOrderingTerm(term: OrderingTerm, ctx: CompilerContext): string;
|
|
6002
|
+
normalizeSelectAst(ast: SelectQueryNode): SelectQueryNode;
|
|
6003
|
+
compileSelectAst(ast: SelectQueryNode, ctx: CompilerContext): string;
|
|
6004
|
+
}
|
|
6005
|
+
interface SqlDialectComposition {
|
|
6006
|
+
dialect: Dialect;
|
|
6007
|
+
runtime: SqlDialectRuntimeServices;
|
|
6008
|
+
}
|
|
6009
|
+
interface SqlDialectConfig {
|
|
6010
|
+
/** Human-readable/backend identifier used by diagnostics and strategies. */
|
|
6011
|
+
name: string;
|
|
6012
|
+
quoteIdentifier(id: string): string;
|
|
6013
|
+
formatPlaceholder?(index: number): string;
|
|
6014
|
+
compileJsonPath?(node: JsonPathNode): string;
|
|
6068
6015
|
functionStrategy?: FunctionStrategy;
|
|
6069
6016
|
tableFunctionStrategy?: TableFunctionStrategy;
|
|
6070
6017
|
paginationStrategy?: PaginationStrategy;
|
|
@@ -6072,54 +6019,19 @@ interface SqlDialectBaseOptions {
|
|
|
6072
6019
|
upsertStrategy?: UpsertStrategy;
|
|
6073
6020
|
compilerFactory?: SqlCompilerFactory;
|
|
6074
6021
|
supportsDmlReturning?: boolean;
|
|
6022
|
+
supportsSetOperation?(kind: SetOperationKind): boolean;
|
|
6023
|
+
compileSetTarget?(column: ColumnNode, table: TableNode): string;
|
|
6024
|
+
renderOrderByNulls?(order: OrderByNode): string | undefined;
|
|
6025
|
+
renderOrderByCollation?(order: OrderByNode): string | undefined;
|
|
6026
|
+
configureExpressions?(api: SqlDialectExpressionApi): void;
|
|
6027
|
+
describe?: string;
|
|
6075
6028
|
}
|
|
6076
6029
|
/**
|
|
6077
|
-
*
|
|
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.
|
|
6030
|
+
* Assembles a full SQL dialect from independent compiler components.
|
|
6031
|
+
* No inheritance or concrete dialect class participates in the compilation path.
|
|
6082
6032
|
*/
|
|
6083
|
-
declare
|
|
6084
|
-
|
|
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
|
-
}
|
|
6033
|
+
declare const composeSqlDialect: (config: SqlDialectConfig) => SqlDialectComposition;
|
|
6034
|
+
declare const createSqlDialect: (config: SqlDialectConfig) => Dialect;
|
|
6123
6035
|
|
|
6124
6036
|
/** Standard SELECT orchestration, independent from any dialect class hierarchy. */
|
|
6125
6037
|
declare class StandardSelectCompiler {
|
|
@@ -6171,13 +6083,18 @@ declare class StandardTableFunctionStrategy implements TableFunctionStrategy {
|
|
|
6171
6083
|
getRenderer(key: string): TableFunctionRenderer | undefined;
|
|
6172
6084
|
}
|
|
6173
6085
|
|
|
6174
|
-
|
|
6175
|
-
|
|
6176
|
-
|
|
6177
|
-
|
|
6178
|
-
|
|
6086
|
+
type MySqlDialectImplementation = Dialect & ProcedureCompiler;
|
|
6087
|
+
/** Creates the MySQL dialect entirely from composable compiler components. */
|
|
6088
|
+
declare const createMySqlDialect: () => MySqlDialectImplementation;
|
|
6089
|
+
/** Ergonomic constructor facade over the composed MySQL dialect. */
|
|
6090
|
+
declare class MySqlDialect implements Dialect, ProcedureCompiler {
|
|
6091
|
+
private readonly impl;
|
|
6179
6092
|
quoteIdentifier(id: string): string;
|
|
6180
|
-
|
|
6093
|
+
supportsDmlReturningClause(): boolean;
|
|
6094
|
+
compileSelect(ast: SelectQueryNode): CompiledQuery;
|
|
6095
|
+
compileInsert(ast: InsertQueryNode): CompiledQuery;
|
|
6096
|
+
compileUpdate(ast: UpdateQueryNode): CompiledQuery;
|
|
6097
|
+
compileDelete(ast: DeleteQueryNode): CompiledQuery;
|
|
6181
6098
|
compileProcedureCall(ast: ProcedureCallNode): CompiledProcedureCall;
|
|
6182
6099
|
}
|
|
6183
6100
|
|
|
@@ -6191,14 +6108,18 @@ declare class MySqlProcedureCompiler implements ProcedureCompiler {
|
|
|
6191
6108
|
compileProcedureCall(ast: ProcedureCallNode): CompiledProcedureCall;
|
|
6192
6109
|
}
|
|
6193
6110
|
|
|
6194
|
-
|
|
6195
|
-
|
|
6196
|
-
|
|
6197
|
-
|
|
6198
|
-
|
|
6111
|
+
type SqlServerDialectImplementation = Dialect & ProcedureCompiler;
|
|
6112
|
+
/** Creates the SQL Server dialect entirely from composable compiler components. */
|
|
6113
|
+
declare const createSqlServerDialect: () => SqlServerDialectImplementation;
|
|
6114
|
+
/** Ergonomic constructor facade over the composed SQL Server dialect. */
|
|
6115
|
+
declare class SqlServerDialect implements Dialect, ProcedureCompiler {
|
|
6116
|
+
private readonly impl;
|
|
6199
6117
|
quoteIdentifier(id: string): string;
|
|
6200
|
-
|
|
6201
|
-
|
|
6118
|
+
supportsDmlReturningClause(): boolean;
|
|
6119
|
+
compileSelect(ast: SelectQueryNode): CompiledQuery;
|
|
6120
|
+
compileInsert(ast: InsertQueryNode): CompiledQuery;
|
|
6121
|
+
compileUpdate(ast: UpdateQueryNode): CompiledQuery;
|
|
6122
|
+
compileDelete(ast: DeleteQueryNode): CompiledQuery;
|
|
6202
6123
|
compileProcedureCall(ast: ProcedureCallNode): CompiledProcedureCall;
|
|
6203
6124
|
}
|
|
6204
6125
|
|
|
@@ -6254,13 +6175,17 @@ declare class MssqlProcedureCompiler implements ProcedureCompiler {
|
|
|
6254
6175
|
compileProcedureCall(ast: ProcedureCallNode): CompiledProcedureCall;
|
|
6255
6176
|
}
|
|
6256
6177
|
|
|
6257
|
-
/** SQLite dialect
|
|
6258
|
-
declare
|
|
6259
|
-
|
|
6260
|
-
|
|
6178
|
+
/** Creates the SQLite dialect entirely from composable compiler components. */
|
|
6179
|
+
declare const createSqliteDialect: () => Dialect;
|
|
6180
|
+
/** Ergonomic constructor facade over the composed SQLite dialect. */
|
|
6181
|
+
declare class SqliteDialect implements Dialect {
|
|
6182
|
+
private readonly impl;
|
|
6261
6183
|
quoteIdentifier(id: string): string;
|
|
6262
|
-
|
|
6263
|
-
|
|
6184
|
+
supportsDmlReturningClause(): boolean;
|
|
6185
|
+
compileSelect(ast: SelectQueryNode): CompiledQuery;
|
|
6186
|
+
compileInsert(ast: InsertQueryNode): CompiledQuery;
|
|
6187
|
+
compileUpdate(ast: UpdateQueryNode): CompiledQuery;
|
|
6188
|
+
compileDelete(ast: DeleteQueryNode): CompiledQuery;
|
|
6264
6189
|
}
|
|
6265
6190
|
|
|
6266
6191
|
declare class SqliteUpsertStrategy implements UpsertStrategy {
|
|
@@ -6272,16 +6197,18 @@ declare class SqliteReturningStrategy implements ReturningStrategy {
|
|
|
6272
6197
|
formatReturningColumns(returning: ColumnNode[], quoteIdentifier: QuoteIdentifier): string;
|
|
6273
6198
|
}
|
|
6274
6199
|
|
|
6275
|
-
|
|
6276
|
-
|
|
6277
|
-
|
|
6278
|
-
|
|
6279
|
-
|
|
6200
|
+
type PostgresDialectImplementation = Dialect & ProcedureCompiler;
|
|
6201
|
+
/** Creates the PostgreSQL dialect entirely from composable compiler components. */
|
|
6202
|
+
declare const createPostgresDialect: () => PostgresDialectImplementation;
|
|
6203
|
+
/** Ergonomic constructor facade over the composed PostgreSQL dialect. */
|
|
6204
|
+
declare class PostgresDialect implements Dialect, ProcedureCompiler {
|
|
6205
|
+
private readonly impl;
|
|
6280
6206
|
quoteIdentifier(id: string): string;
|
|
6281
|
-
|
|
6282
|
-
|
|
6283
|
-
|
|
6284
|
-
|
|
6207
|
+
supportsDmlReturningClause(): boolean;
|
|
6208
|
+
compileSelect(ast: SelectQueryNode): CompiledQuery;
|
|
6209
|
+
compileInsert(ast: InsertQueryNode): CompiledQuery;
|
|
6210
|
+
compileUpdate(ast: UpdateQueryNode): CompiledQuery;
|
|
6211
|
+
compileDelete(ast: DeleteQueryNode): CompiledQuery;
|
|
6285
6212
|
compileProcedureCall(ast: ProcedureCallNode): CompiledProcedureCall;
|
|
6286
6213
|
}
|
|
6287
6214
|
|
|
@@ -6357,42 +6284,43 @@ interface DatabaseSchema {
|
|
|
6357
6284
|
|
|
6358
6285
|
/** The name of a database dialect. */
|
|
6359
6286
|
type DialectName = 'postgres' | 'mysql' | 'sqlite' | 'mssql' | (string & {});
|
|
6360
|
-
|
|
6287
|
+
interface DropTableCapability {
|
|
6288
|
+
compile(table: DatabaseTable): string[];
|
|
6289
|
+
warning?(table: DatabaseTable): string | undefined;
|
|
6290
|
+
}
|
|
6291
|
+
interface DropColumnCapability {
|
|
6292
|
+
compile(table: DatabaseTable, column: string): string[];
|
|
6293
|
+
warning?(table: DatabaseTable, column: string): string | undefined;
|
|
6294
|
+
}
|
|
6295
|
+
interface DropIndexCapability {
|
|
6296
|
+
compile(table: DatabaseTable, index: string): string[];
|
|
6297
|
+
warning?(table: DatabaseTable, index: string): string | undefined;
|
|
6298
|
+
}
|
|
6299
|
+
interface AlterColumnCapability {
|
|
6300
|
+
compile(table: TableDef, column: ColumnDef, actualColumn: DatabaseColumn, diff: ColumnDiff): string[];
|
|
6301
|
+
warning?(table: TableDef, column: ColumnDef, actualColumn: DatabaseColumn, diff: ColumnDiff): string | undefined;
|
|
6302
|
+
}
|
|
6303
|
+
/** Explicit DDL mutation capabilities supported by a schema dialect. */
|
|
6304
|
+
interface SchemaMutationCapabilities {
|
|
6305
|
+
dropTable?: DropTableCapability;
|
|
6306
|
+
dropColumn?: DropColumnCapability;
|
|
6307
|
+
dropIndex?: DropIndexCapability;
|
|
6308
|
+
alterColumn?: AlterColumnCapability;
|
|
6309
|
+
}
|
|
6310
|
+
/** Structural contract for database-specific DDL rendering. */
|
|
6361
6311
|
interface SchemaDialect {
|
|
6362
|
-
/** The name of the dialect. */
|
|
6363
6312
|
readonly name: DialectName;
|
|
6364
|
-
|
|
6313
|
+
readonly mutations: SchemaMutationCapabilities;
|
|
6365
6314
|
quoteIdentifier(id: string): string;
|
|
6366
|
-
/** Formats the table name for SQL. */
|
|
6367
6315
|
formatTableName(table: TableDef | DatabaseTable): string;
|
|
6368
|
-
/** Renders the column type for SQL. */
|
|
6369
6316
|
renderColumnType(column: ColumnDef): string;
|
|
6370
|
-
/** Renders the default value for SQL. */
|
|
6371
6317
|
renderDefault(value: unknown, column: ColumnDef): string;
|
|
6372
|
-
/** Renders the auto-increment clause for SQL. */
|
|
6373
6318
|
renderAutoIncrement(column: ColumnDef, table: TableDef): string | undefined;
|
|
6374
|
-
/** Renders a foreign key reference for SQL. */
|
|
6375
6319
|
renderReference(ref: ForeignKeyReference, table: TableDef): string;
|
|
6376
|
-
/** Renders an index for SQL. */
|
|
6377
6320
|
renderIndex(table: TableDef, index: IndexDef): string;
|
|
6378
|
-
/** Renders table options for SQL. */
|
|
6379
6321
|
renderTableOptions(table: TableDef): string | undefined;
|
|
6380
|
-
/** Checks if the dialect supports partial indexes. */
|
|
6381
6322
|
supportsPartialIndexes(): boolean;
|
|
6382
|
-
/** Checks if the dialect prefers inline primary key auto-increment. */
|
|
6383
6323
|
preferInlinePkAutoincrement(column: ColumnDef, table: TableDef, pk: string[]): boolean;
|
|
6384
|
-
/** Generates SQL to drop a column. */
|
|
6385
|
-
dropColumnSql?(table: DatabaseTable, column: string): string[];
|
|
6386
|
-
/** Generates SQL to drop an index. */
|
|
6387
|
-
dropIndexSql?(table: DatabaseTable, index: string): string[];
|
|
6388
|
-
/** Generates SQL to drop a table. */
|
|
6389
|
-
dropTableSql?(table: DatabaseTable): string[];
|
|
6390
|
-
/** Returns a warning message for dropping a column. */
|
|
6391
|
-
warnDropColumn?(table: DatabaseTable, column: string): string | undefined;
|
|
6392
|
-
/** Generates SQL to alter a column. */
|
|
6393
|
-
alterColumnSql?(table: TableDef, column: ColumnDef, actualColumn: DatabaseColumn, diff: ColumnDiff): string[];
|
|
6394
|
-
/** Returns a warning message for altering a column. */
|
|
6395
|
-
warnAlterColumn?(table: TableDef, column: ColumnDef, actualColumn: DatabaseColumn, diff: ColumnDiff): string | undefined;
|
|
6396
6324
|
}
|
|
6397
6325
|
|
|
6398
6326
|
/** Result of generating schema SQL. */
|
|
@@ -6451,9 +6379,7 @@ declare const executeSchemaSql: (executor: DbExecutor, tables: TableDef[], diale
|
|
|
6451
6379
|
*/
|
|
6452
6380
|
declare const executeSchemaSqlFor: (executor: DbExecutor, dialect: SchemaDialect, ...tables: TableDef[]) => Promise<void>;
|
|
6453
6381
|
|
|
6454
|
-
/** The kind of schema change. */
|
|
6455
6382
|
type SchemaChangeKind = 'createTable' | 'dropTable' | 'addColumn' | 'dropColumn' | 'alterColumn' | 'addIndex' | 'dropIndex';
|
|
6456
|
-
/** Represents a single schema change. */
|
|
6457
6383
|
interface SchemaChange {
|
|
6458
6384
|
kind: SchemaChangeKind;
|
|
6459
6385
|
table: string;
|
|
@@ -6461,38 +6387,17 @@ interface SchemaChange {
|
|
|
6461
6387
|
statements: string[];
|
|
6462
6388
|
safe: boolean;
|
|
6463
6389
|
}
|
|
6464
|
-
/** Represents a plan of schema changes. */
|
|
6465
6390
|
interface SchemaPlan {
|
|
6466
6391
|
changes: SchemaChange[];
|
|
6467
6392
|
warnings: string[];
|
|
6468
6393
|
}
|
|
6469
|
-
/** Options for schema diffing. */
|
|
6470
6394
|
interface SchemaDiffOptions {
|
|
6471
|
-
/** Allow destructive operations (drops) */
|
|
6472
6395
|
allowDestructive?: boolean;
|
|
6473
6396
|
}
|
|
6474
|
-
/**
|
|
6475
|
-
* Computes the differences between expected and actual database schemas.
|
|
6476
|
-
* @param expectedTables - The expected table definitions.
|
|
6477
|
-
* @param actualSchema - The actual database schema.
|
|
6478
|
-
* @param dialect - The schema dialect.
|
|
6479
|
-
* @param options - Options for the diff.
|
|
6480
|
-
* @returns The schema plan with changes and warnings.
|
|
6481
|
-
*/
|
|
6482
6397
|
declare const diffSchema: (expectedTables: TableDef[], actualSchema: DatabaseSchema, dialect: SchemaDialect, options?: SchemaDiffOptions) => SchemaPlan;
|
|
6483
|
-
/** Options for schema synchronization. */
|
|
6484
6398
|
interface SynchronizeOptions extends SchemaDiffOptions {
|
|
6485
6399
|
dryRun?: boolean;
|
|
6486
6400
|
}
|
|
6487
|
-
/**
|
|
6488
|
-
* Synchronizes the database schema with the expected tables.
|
|
6489
|
-
* @param expectedTables - The expected table definitions.
|
|
6490
|
-
* @param actualSchema - The actual database schema.
|
|
6491
|
-
* @param dialect - The schema dialect.
|
|
6492
|
-
* @param executor - The database executor.
|
|
6493
|
-
* @param options - Options for synchronization.
|
|
6494
|
-
* @returns The schema plan with changes and warnings.
|
|
6495
|
-
*/
|
|
6496
6401
|
declare const synchronizeSchema: (expectedTables: TableDef[], actualSchema: DatabaseSchema, dialect: SchemaDialect, executor: DbExecutor, options?: SynchronizeOptions) => Promise<SchemaPlan>;
|
|
6497
6402
|
|
|
6498
6403
|
/**
|
|
@@ -6531,6 +6436,134 @@ interface SchemaIntrospector {
|
|
|
6531
6436
|
*/
|
|
6532
6437
|
declare const introspectSchema: (executor: DbExecutor, dialect: DialectName, options?: IntrospectOptions) => Promise<DatabaseSchema>;
|
|
6533
6438
|
|
|
6439
|
+
/**
|
|
6440
|
+
* Abstraction for "how do I turn values into SQL literals".
|
|
6441
|
+
* Implemented or configured by each dialect.
|
|
6442
|
+
*/
|
|
6443
|
+
interface LiteralFormatter {
|
|
6444
|
+
formatLiteral(value: unknown): string;
|
|
6445
|
+
}
|
|
6446
|
+
/**
|
|
6447
|
+
* Declarative options for building a LiteralFormatter.
|
|
6448
|
+
* Dialects configure behavior by data, not by being hard-coded here.
|
|
6449
|
+
*/
|
|
6450
|
+
interface LiteralFormatOptions {
|
|
6451
|
+
nullLiteral?: string;
|
|
6452
|
+
booleanTrue?: string;
|
|
6453
|
+
booleanFalse?: string;
|
|
6454
|
+
numberFormatter?: (value: number) => string;
|
|
6455
|
+
dateFormatter?: (value: Date) => string;
|
|
6456
|
+
stringWrapper?: (escaped: string) => string;
|
|
6457
|
+
jsonWrapper?: (escaped: string) => string;
|
|
6458
|
+
}
|
|
6459
|
+
/**
|
|
6460
|
+
* Factory for a value-based LiteralFormatter that:
|
|
6461
|
+
* - Handles type dispatch (null/number/boolean/date/string/object/raw)
|
|
6462
|
+
* - Delegates representation choices to options
|
|
6463
|
+
* - Knows nothing about concrete dialects
|
|
6464
|
+
*/
|
|
6465
|
+
declare const createLiteralFormatter: (options?: LiteralFormatOptions) => LiteralFormatter;
|
|
6466
|
+
|
|
6467
|
+
interface SchemaDialectServices {
|
|
6468
|
+
readonly name: DialectName;
|
|
6469
|
+
quoteIdentifier(id: string): string;
|
|
6470
|
+
formatTableName(table: TableDef | DatabaseTable): string;
|
|
6471
|
+
renderDefault(value: unknown, column: ColumnDef): string;
|
|
6472
|
+
}
|
|
6473
|
+
interface SchemaDialectConfig {
|
|
6474
|
+
name: DialectName;
|
|
6475
|
+
quoteIdentifier(id: string): string;
|
|
6476
|
+
literalFormatter: LiteralFormatter;
|
|
6477
|
+
renderColumnType(column: ColumnDef, services: SchemaDialectServices): string;
|
|
6478
|
+
renderAutoIncrement(column: ColumnDef, table: TableDef, services: SchemaDialectServices): string | undefined;
|
|
6479
|
+
renderIndex(table: TableDef, index: IndexDef, services: SchemaDialectServices): string;
|
|
6480
|
+
renderDefault?(value: unknown, column: ColumnDef, services: SchemaDialectServices): string;
|
|
6481
|
+
renderReferenceSuffix?(ref: ForeignKeyReference, table: TableDef, services: SchemaDialectServices): string | undefined;
|
|
6482
|
+
renderTableOptions?(table: TableDef, services: SchemaDialectServices): string | undefined;
|
|
6483
|
+
supportsPartialIndexes?: boolean;
|
|
6484
|
+
preferInlinePkAutoincrement?(column: ColumnDef, table: TableDef, pk: string[], services: SchemaDialectServices): boolean;
|
|
6485
|
+
mutations?: (services: SchemaDialectServices) => SchemaMutationCapabilities;
|
|
6486
|
+
}
|
|
6487
|
+
/**
|
|
6488
|
+
* Assembles a complete schema dialect from independent rendering functions and
|
|
6489
|
+
* mutation capabilities. No inheritance participates in the DDL path.
|
|
6490
|
+
*/
|
|
6491
|
+
declare const composeSchemaDialect: (config: SchemaDialectConfig) => SchemaDialect;
|
|
6492
|
+
declare const createStandardDropTableCapability: (services: SchemaDialectServices) => NonNullable<SchemaMutationCapabilities["dropTable"]>;
|
|
6493
|
+
declare const createStandardDropColumnCapability: (services: SchemaDialectServices) => NonNullable<SchemaMutationCapabilities["dropColumn"]>;
|
|
6494
|
+
|
|
6495
|
+
declare const createPostgresSchemaDialect: () => SchemaDialect;
|
|
6496
|
+
/** Ergonomic facade; DDL rendering itself is pure composition. */
|
|
6497
|
+
declare class PostgresSchemaDialect implements SchemaDialect {
|
|
6498
|
+
private readonly delegate;
|
|
6499
|
+
readonly name: DialectName;
|
|
6500
|
+
readonly mutations: SchemaMutationCapabilities;
|
|
6501
|
+
quoteIdentifier(id: string): string;
|
|
6502
|
+
formatTableName(table: TableDef | DatabaseTable): string;
|
|
6503
|
+
renderColumnType(column: ColumnDef): string;
|
|
6504
|
+
renderDefault(value: unknown, column: ColumnDef): string;
|
|
6505
|
+
renderAutoIncrement(column: ColumnDef, table: TableDef): string | undefined;
|
|
6506
|
+
renderReference(ref: Parameters<SchemaDialect['renderReference']>[0], table: TableDef): string;
|
|
6507
|
+
renderIndex(table: TableDef, index: IndexDef): string;
|
|
6508
|
+
renderTableOptions(table: TableDef): string | undefined;
|
|
6509
|
+
supportsPartialIndexes(): boolean;
|
|
6510
|
+
preferInlinePkAutoincrement(column: ColumnDef, table: TableDef, pk: string[]): boolean;
|
|
6511
|
+
}
|
|
6512
|
+
|
|
6513
|
+
declare const createMySqlSchemaDialect: () => SchemaDialect;
|
|
6514
|
+
/** Ergonomic facade; DDL rendering itself is pure composition. */
|
|
6515
|
+
declare class MySqlSchemaDialect implements SchemaDialect {
|
|
6516
|
+
private readonly delegate;
|
|
6517
|
+
readonly name: DialectName;
|
|
6518
|
+
readonly mutations: SchemaMutationCapabilities;
|
|
6519
|
+
quoteIdentifier(id: string): string;
|
|
6520
|
+
formatTableName(table: TableDef | DatabaseTable): string;
|
|
6521
|
+
renderColumnType(column: ColumnDef): string;
|
|
6522
|
+
renderDefault(value: unknown, column: ColumnDef): string;
|
|
6523
|
+
renderAutoIncrement(column: ColumnDef, table: TableDef): string | undefined;
|
|
6524
|
+
renderReference(ref: Parameters<SchemaDialect['renderReference']>[0], table: TableDef): string;
|
|
6525
|
+
renderIndex(table: TableDef, index: IndexDef): string;
|
|
6526
|
+
renderTableOptions(table: TableDef): string | undefined;
|
|
6527
|
+
supportsPartialIndexes(): boolean;
|
|
6528
|
+
preferInlinePkAutoincrement(column: ColumnDef, table: TableDef, pk: string[]): boolean;
|
|
6529
|
+
}
|
|
6530
|
+
|
|
6531
|
+
declare const createSqliteSchemaDialect: () => SchemaDialect;
|
|
6532
|
+
/** Ergonomic facade; DDL rendering itself is pure composition. */
|
|
6533
|
+
declare class SQLiteSchemaDialect implements SchemaDialect {
|
|
6534
|
+
private readonly delegate;
|
|
6535
|
+
readonly name: DialectName;
|
|
6536
|
+
readonly mutations: SchemaMutationCapabilities;
|
|
6537
|
+
quoteIdentifier(id: string): string;
|
|
6538
|
+
formatTableName(table: TableDef | DatabaseTable): string;
|
|
6539
|
+
renderColumnType(column: ColumnDef): string;
|
|
6540
|
+
renderDefault(value: unknown, column: ColumnDef): string;
|
|
6541
|
+
renderAutoIncrement(column: ColumnDef, table: TableDef): string | undefined;
|
|
6542
|
+
renderReference(ref: Parameters<SchemaDialect['renderReference']>[0], table: TableDef): string;
|
|
6543
|
+
renderIndex(table: TableDef, index: IndexDef): string;
|
|
6544
|
+
renderTableOptions(table: TableDef): string | undefined;
|
|
6545
|
+
supportsPartialIndexes(): boolean;
|
|
6546
|
+
preferInlinePkAutoincrement(column: ColumnDef, table: TableDef, pk: string[]): boolean;
|
|
6547
|
+
}
|
|
6548
|
+
|
|
6549
|
+
declare const createMssqlSchemaDialect: () => SchemaDialect;
|
|
6550
|
+
/** Ergonomic facade; DDL rendering itself is pure composition. */
|
|
6551
|
+
declare class MSSqlSchemaDialect implements SchemaDialect {
|
|
6552
|
+
private readonly delegate;
|
|
6553
|
+
readonly name: DialectName;
|
|
6554
|
+
readonly mutations: SchemaMutationCapabilities;
|
|
6555
|
+
quoteIdentifier(id: string): string;
|
|
6556
|
+
formatTableName(table: TableDef | DatabaseTable): string;
|
|
6557
|
+
renderColumnType(column: ColumnDef): string;
|
|
6558
|
+
renderDefault(value: unknown, column: ColumnDef): string;
|
|
6559
|
+
renderAutoIncrement(column: ColumnDef, table: TableDef): string | undefined;
|
|
6560
|
+
renderReference(ref: Parameters<SchemaDialect['renderReference']>[0], table: TableDef): string;
|
|
6561
|
+
renderIndex(table: TableDef, index: IndexDef): string;
|
|
6562
|
+
renderTableOptions(table: TableDef): string | undefined;
|
|
6563
|
+
supportsPartialIndexes(): boolean;
|
|
6564
|
+
preferInlinePkAutoincrement(column: ColumnDef, table: TableDef, pk: string[]): boolean;
|
|
6565
|
+
}
|
|
6566
|
+
|
|
6534
6567
|
/**
|
|
6535
6568
|
* Registers a schema introspector for a dialect.
|
|
6536
6569
|
* @param dialect - The dialect name.
|
|
@@ -10602,4 +10635,4 @@ declare class BulkUpsertExecutor extends BulkBaseExecutor<UpsertExecutorOptions>
|
|
|
10602
10635
|
}
|
|
10603
10636
|
declare function bulkUpsert<TTable extends TableDef>(session: OrmSession, table: TTable, rows: InsertRow[], options?: BulkUpsertOptions): Promise<BulkResult>;
|
|
10604
10637
|
|
|
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 };
|
|
10638
|
+
export { type AliasRefNode, Alphanumeric, type AlterColumnCapability, 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, DialectFactory, type DialectFactoryFn, type DialectKey, type DialectName, type DomainEvent, DomainEventBus, type DomainEventHandler, type DropColumnCapability, type DropIndexCapability, type DropTableCapability, 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 LiteralFormatOptions, type LiteralFormatter, type LiteralNode, type LiteralValue, type LogicalExpressionNode, Lower, MSSqlSchemaDialect, 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, type MySqlDialectImplementation, MySqlProcedureCompiler, MySqlSchemaDialect, 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, type PostgresDialectImplementation, PostgresProcedureCompiler, PostgresReturningStrategy, PostgresSchemaDialect, 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, SQLiteSchemaDialect, STANDARD_COLUMN_TYPES, type SaveGraphInputPayload, type SaveGraphInputScalar, type SaveGraphJsonScalar, type SaveGraphSessionOptions, type ScalarSubqueryNode, type SchemaChange, type SchemaChangeKind, type SchemaDialect, type SchemaDialectConfig, type SchemaDialectServices, type SchemaDiffOptions, type SchemaGenerateResult, type SchemaIntrospector, type SchemaMutationCapabilities, type SchemaPlan, type SelectCompiler, SelectQueryBuilder, type SelectQueryInput, type SelectableKeys, type SimpleQueryRunner, type SimpleWhereInput, type Simplify, type SqlAstCompiler, type SqlCompilerAssemblyContext, type SqlCompilerFactory, type SqlCompilerSet, type SqlDialectComposition, type SqlDialectConfig, type SqlDialectExpressionApi, type SqlDialectRuntimeServices, SqlServerDialect, type SqlServerDialectImplementation, 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, composeSchemaDialect, composeSqlDialect, computePaginationMetadata, computeSchemaHash, concat, concatWs, correlateBy, cos, cosineDistance, cot, count, countAll, createApiComponentsSection, createBetterSqlite3Executor, createDeterministicNamingState, createDtoToOpenApiSchema, createEntityFromRow, createEntityProxy, createExecutorFromQueryRunner, createLiteralFormatter, createMssqlCompilerSet, createMssqlExecutor, createMssqlSchemaDialect, createMySqlDialect, createMySqlSchemaDialect, createMysqlExecutor, createPooledExecutorFactory, createPostgresDialect, createPostgresExecutor, createPostgresSchemaDialect, createQueryLoggingExecutor, createRef, createSqlDialect, createSqlServerDialect, createSqliteDialect, createSqliteExecutor, createSqliteSchemaDialect, createStandardDropColumnCapability, createStandardDropTableCapability, 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 };
|