metal-orm 1.1.25 → 1.1.26

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.d.cts 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
- * Public dialect contract consumed by builders and the ORM runtime.
2054
- * Optional backend features such as stored procedures live in dedicated
2055
- * capability interfaces; mutation-wide behavior shared by the runtime stays
2056
- * in this small core contract.
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(): DialectName$1;
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(): DialectName$1;
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 SqlDialectBaseOptions {
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
- * 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.
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 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
- }
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
- /** MySQL dialect assembled from reusable compiler components. */
6175
- declare class MySqlDialect extends SqlDialectBase implements ProcedureCompiler {
6176
- protected readonly dialect = "mysql";
6177
- private readonly procedureCompiler;
6178
- constructor();
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
- protected compileJsonPath(node: JsonPathNode): string;
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
- /** Microsoft SQL Server dialect assembled from backend compiler components. */
6195
- declare class SqlServerDialect extends SqlDialectBase implements ProcedureCompiler {
6196
- protected readonly dialect = "mssql";
6197
- private readonly procedureCompiler;
6198
- constructor();
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
- protected compileJsonPath(node: JsonPathNode): string;
6201
- protected formatPlaceholder(index: number): string;
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 assembled from reusable compiler components. */
6258
- declare class SqliteDialect extends SqlDialectBase {
6259
- protected readonly dialect = "sqlite";
6260
- constructor();
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
- protected compileJsonPath(node: JsonPathNode): string;
6263
- protected compileQualifiedColumn(column: ColumnNode, _table: TableNode): string;
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
- /** PostgreSQL dialect assembled from reusable compiler components. */
6276
- declare class PostgresDialect extends SqlDialectBase implements ProcedureCompiler {
6277
- protected readonly dialect = "postgres";
6278
- private readonly procedureCompiler;
6279
- constructor();
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
- protected formatPlaceholder(index: number): string;
6282
- protected compileJsonPath(node: JsonPathNode): string;
6283
- /** PostgreSQL requires unqualified column names in SET clauses. */
6284
- protected compileSetTarget(column: ColumnNode, _table: TableNode): string;
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
 
@@ -10602,4 +10529,4 @@ declare class BulkUpsertExecutor extends BulkBaseExecutor<UpsertExecutorOptions>
10602
10529
  }
10603
10530
  declare function bulkUpsert<TTable extends TableDef>(session: OrmSession, table: TTable, rows: InsertRow[], options?: BulkUpsertOptions): Promise<BulkResult>;
10604
10531
 
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 };
10532
+ 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, DialectFactory, type DialectFactoryFn, 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, type MySqlDialectImplementation, 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, type PostgresDialectImplementation, 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, 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, composeSqlDialect, computePaginationMetadata, computeSchemaHash, concat, concatWs, correlateBy, cos, cosineDistance, cot, count, countAll, createApiComponentsSection, createBetterSqlite3Executor, createDeterministicNamingState, createDtoToOpenApiSchema, createEntityFromRow, createEntityProxy, createExecutorFromQueryRunner, createMssqlCompilerSet, createMssqlExecutor, createMySqlDialect, createMysqlExecutor, createPooledExecutorFactory, createPostgresDialect, createPostgresExecutor, createQueryLoggingExecutor, createRef, createSqlDialect, createSqlServerDialect, createSqliteDialect, 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 };