@zenstackhq/orm 3.0.0-beta.19 → 3.0.0-beta.21
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 +479 -194
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +172 -140
- package/dist/index.d.ts +172 -140
- package/dist/index.js +483 -194
- package/dist/index.js.map +1 -1
- package/package.json +7 -7
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,116 @@ import Decimal from 'decimal.js';
|
|
|
2
2
|
import * as _zenstackhq_schema from '@zenstackhq/schema';
|
|
3
3
|
import { SchemaDef, GetModels, ScalarFields, ForeignKeyFields, GetModelFields, FieldHasDefault, GetModelFieldType, ModelFieldIsOptional, GetModelField, NonRelationFields, RelationFields, FieldIsArray, RelationFieldType, FieldIsRelation, GetModel, FieldDef, GetEnums, GetEnum, GetTypeDefs, GetTypeDefFields, GetTypeDefField, TypeDefFieldIsOptional, BuiltinType, IsDelegateModel, GetModelDiscriminator, GetSubModels, FieldIsDelegateDiscriminator, FieldType, RelationInfo, FieldIsDelegateRelation, ModelDef, DataSourceProviderType, ProcedureDef, Expression as Expression$1, LiteralExpression, ArrayExpression, FieldExpression, MemberExpression, BinaryExpression, UnaryExpression, CallExpression, ThisExpression, NullExpression } from '@zenstackhq/schema';
|
|
4
4
|
import * as kysely from 'kysely';
|
|
5
|
-
import {
|
|
5
|
+
import { OperationNodeVisitor, OperationNode, SelectQueryNode, SelectionNode, ColumnNode, AliasNode, TableNode, FromNode, ReferenceNode, AndNode, OrNode, ValueListNode, ParensNode, JoinNode, RawNode, WhereNode, InsertQueryNode, DeleteQueryNode, ReturningNode, CreateTableNode, AddColumnNode, ColumnDefinitionNode, DropTableNode, OrderByNode, OrderByItemNode, GroupByNode, GroupByItemNode, UpdateQueryNode, ColumnUpdateNode, LimitNode, OffsetNode, OnConflictNode, OnDuplicateKeyNode, CheckConstraintNode, DataTypeNode, SelectAllNode, IdentifierNode, SchemableIdentifierNode, ValueNode, PrimitiveValueListNode, OperatorNode, CreateIndexNode, DropIndexNode, ListNode, PrimaryKeyConstraintNode, UniqueConstraintNode, ReferencesNode, WithNode, CommonTableExpressionNode, CommonTableExpressionNameNode, HavingNode, CreateSchemaNode, DropSchemaNode, AlterTableNode, DropColumnNode, RenameColumnNode, AlterColumnNode, ModifyColumnNode, AddConstraintNode, DropConstraintNode, ForeignKeyConstraintNode, CreateViewNode, DropViewNode, GeneratedNode, DefaultValueNode, OnNode, ValuesNode, SelectModifierNode, CreateTypeNode, DropTypeNode, ExplainNode, DefaultInsertValueNode, AggregateFunctionNode, OverNode, PartitionByNode, PartitionByItemNode, SetOperationNode, BinaryOperationNode, UnaryOperationNode, UsingNode, FunctionNode, CaseNode, WhenNode, JSONReferenceNode, JSONPathNode, JSONPathLegNode, JSONOperatorChainNode, TupleNode, MergeQueryNode, MatchedNode, AddIndexNode, CastNode, FetchNode, TopNode, OutputNode, RenameConstraintNode, RefreshMaterializedViewNode, OrActionNode, CollateNode, Kysely, Generated, ExpressionBuilder, OperandExpression, SqlBool, SelectQueryBuilder, Expression, ExpressionWrapper, QueryId, RootOperationNode, QueryResult, UnknownRow, Dialect, KyselyConfig } from 'kysely';
|
|
6
|
+
|
|
7
|
+
declare class DefaultOperationNodeVisitor extends OperationNodeVisitor {
|
|
8
|
+
protected defaultVisit(node: OperationNode): void;
|
|
9
|
+
protected visitSelectQuery(node: SelectQueryNode): void;
|
|
10
|
+
protected visitSelection(node: SelectionNode): void;
|
|
11
|
+
protected visitColumn(node: ColumnNode): void;
|
|
12
|
+
protected visitAlias(node: AliasNode): void;
|
|
13
|
+
protected visitTable(node: TableNode): void;
|
|
14
|
+
protected visitFrom(node: FromNode): void;
|
|
15
|
+
protected visitReference(node: ReferenceNode): void;
|
|
16
|
+
protected visitAnd(node: AndNode): void;
|
|
17
|
+
protected visitOr(node: OrNode): void;
|
|
18
|
+
protected visitValueList(node: ValueListNode): void;
|
|
19
|
+
protected visitParens(node: ParensNode): void;
|
|
20
|
+
protected visitJoin(node: JoinNode): void;
|
|
21
|
+
protected visitRaw(node: RawNode): void;
|
|
22
|
+
protected visitWhere(node: WhereNode): void;
|
|
23
|
+
protected visitInsertQuery(node: InsertQueryNode): void;
|
|
24
|
+
protected visitDeleteQuery(node: DeleteQueryNode): void;
|
|
25
|
+
protected visitReturning(node: ReturningNode): void;
|
|
26
|
+
protected visitCreateTable(node: CreateTableNode): void;
|
|
27
|
+
protected visitAddColumn(node: AddColumnNode): void;
|
|
28
|
+
protected visitColumnDefinition(node: ColumnDefinitionNode): void;
|
|
29
|
+
protected visitDropTable(node: DropTableNode): void;
|
|
30
|
+
protected visitOrderBy(node: OrderByNode): void;
|
|
31
|
+
protected visitOrderByItem(node: OrderByItemNode): void;
|
|
32
|
+
protected visitGroupBy(node: GroupByNode): void;
|
|
33
|
+
protected visitGroupByItem(node: GroupByItemNode): void;
|
|
34
|
+
protected visitUpdateQuery(node: UpdateQueryNode): void;
|
|
35
|
+
protected visitColumnUpdate(node: ColumnUpdateNode): void;
|
|
36
|
+
protected visitLimit(node: LimitNode): void;
|
|
37
|
+
protected visitOffset(node: OffsetNode): void;
|
|
38
|
+
protected visitOnConflict(node: OnConflictNode): void;
|
|
39
|
+
protected visitOnDuplicateKey(node: OnDuplicateKeyNode): void;
|
|
40
|
+
protected visitCheckConstraint(node: CheckConstraintNode): void;
|
|
41
|
+
protected visitDataType(node: DataTypeNode): void;
|
|
42
|
+
protected visitSelectAll(node: SelectAllNode): void;
|
|
43
|
+
protected visitIdentifier(node: IdentifierNode): void;
|
|
44
|
+
protected visitSchemableIdentifier(node: SchemableIdentifierNode): void;
|
|
45
|
+
protected visitValue(node: ValueNode): void;
|
|
46
|
+
protected visitPrimitiveValueList(node: PrimitiveValueListNode): void;
|
|
47
|
+
protected visitOperator(node: OperatorNode): void;
|
|
48
|
+
protected visitCreateIndex(node: CreateIndexNode): void;
|
|
49
|
+
protected visitDropIndex(node: DropIndexNode): void;
|
|
50
|
+
protected visitList(node: ListNode): void;
|
|
51
|
+
protected visitPrimaryKeyConstraint(node: PrimaryKeyConstraintNode): void;
|
|
52
|
+
protected visitUniqueConstraint(node: UniqueConstraintNode): void;
|
|
53
|
+
protected visitReferences(node: ReferencesNode): void;
|
|
54
|
+
protected visitWith(node: WithNode): void;
|
|
55
|
+
protected visitCommonTableExpression(node: CommonTableExpressionNode): void;
|
|
56
|
+
protected visitCommonTableExpressionName(node: CommonTableExpressionNameNode): void;
|
|
57
|
+
protected visitHaving(node: HavingNode): void;
|
|
58
|
+
protected visitCreateSchema(node: CreateSchemaNode): void;
|
|
59
|
+
protected visitDropSchema(node: DropSchemaNode): void;
|
|
60
|
+
protected visitAlterTable(node: AlterTableNode): void;
|
|
61
|
+
protected visitDropColumn(node: DropColumnNode): void;
|
|
62
|
+
protected visitRenameColumn(node: RenameColumnNode): void;
|
|
63
|
+
protected visitAlterColumn(node: AlterColumnNode): void;
|
|
64
|
+
protected visitModifyColumn(node: ModifyColumnNode): void;
|
|
65
|
+
protected visitAddConstraint(node: AddConstraintNode): void;
|
|
66
|
+
protected visitDropConstraint(node: DropConstraintNode): void;
|
|
67
|
+
protected visitForeignKeyConstraint(node: ForeignKeyConstraintNode): void;
|
|
68
|
+
protected visitCreateView(node: CreateViewNode): void;
|
|
69
|
+
protected visitDropView(node: DropViewNode): void;
|
|
70
|
+
protected visitGenerated(node: GeneratedNode): void;
|
|
71
|
+
protected visitDefaultValue(node: DefaultValueNode): void;
|
|
72
|
+
protected visitOn(node: OnNode): void;
|
|
73
|
+
protected visitValues(node: ValuesNode): void;
|
|
74
|
+
protected visitSelectModifier(node: SelectModifierNode): void;
|
|
75
|
+
protected visitCreateType(node: CreateTypeNode): void;
|
|
76
|
+
protected visitDropType(node: DropTypeNode): void;
|
|
77
|
+
protected visitExplain(node: ExplainNode): void;
|
|
78
|
+
protected visitDefaultInsertValue(node: DefaultInsertValueNode): void;
|
|
79
|
+
protected visitAggregateFunction(node: AggregateFunctionNode): void;
|
|
80
|
+
protected visitOver(node: OverNode): void;
|
|
81
|
+
protected visitPartitionBy(node: PartitionByNode): void;
|
|
82
|
+
protected visitPartitionByItem(node: PartitionByItemNode): void;
|
|
83
|
+
protected visitSetOperation(node: SetOperationNode): void;
|
|
84
|
+
protected visitBinaryOperation(node: BinaryOperationNode): void;
|
|
85
|
+
protected visitUnaryOperation(node: UnaryOperationNode): void;
|
|
86
|
+
protected visitUsing(node: UsingNode): void;
|
|
87
|
+
protected visitFunction(node: FunctionNode): void;
|
|
88
|
+
protected visitCase(node: CaseNode): void;
|
|
89
|
+
protected visitWhen(node: WhenNode): void;
|
|
90
|
+
protected visitJSONReference(node: JSONReferenceNode): void;
|
|
91
|
+
protected visitJSONPath(node: JSONPathNode): void;
|
|
92
|
+
protected visitJSONPathLeg(node: JSONPathLegNode): void;
|
|
93
|
+
protected visitJSONOperatorChain(node: JSONOperatorChainNode): void;
|
|
94
|
+
protected visitTuple(node: TupleNode): void;
|
|
95
|
+
protected visitMergeQuery(node: MergeQueryNode): void;
|
|
96
|
+
protected visitMatched(node: MatchedNode): void;
|
|
97
|
+
protected visitAddIndex(node: AddIndexNode): void;
|
|
98
|
+
protected visitCast(node: CastNode): void;
|
|
99
|
+
protected visitFetch(node: FetchNode): void;
|
|
100
|
+
protected visitTop(node: TopNode): void;
|
|
101
|
+
protected visitOutput(node: OutputNode): void;
|
|
102
|
+
protected visitRenameConstraint(node: RenameConstraintNode): void;
|
|
103
|
+
protected visitRefreshMaterializedView(node: RefreshMaterializedViewNode): void;
|
|
104
|
+
protected visitOrAction(node: OrActionNode): void;
|
|
105
|
+
protected visitCollate(node: CollateNode): void;
|
|
106
|
+
}
|
|
107
|
+
type AnyKysely = Kysely<any>;
|
|
108
|
+
|
|
109
|
+
type kyselyUtils_AnyKysely = AnyKysely;
|
|
110
|
+
type kyselyUtils_DefaultOperationNodeVisitor = DefaultOperationNodeVisitor;
|
|
111
|
+
declare const kyselyUtils_DefaultOperationNodeVisitor: typeof DefaultOperationNodeVisitor;
|
|
112
|
+
declare namespace kyselyUtils {
|
|
113
|
+
export { type kyselyUtils_AnyKysely as AnyKysely, kyselyUtils_DefaultOperationNodeVisitor as DefaultOperationNodeVisitor };
|
|
114
|
+
}
|
|
6
115
|
|
|
7
116
|
type Optional<T extends object, K extends keyof T = keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
|
|
8
117
|
type NullableIf<T, Condition extends boolean> = Condition extends true ? T | null : T;
|
|
@@ -543,7 +652,7 @@ declare abstract class BaseCrudDialect<Schema extends SchemaDef> {
|
|
|
543
652
|
transformPrimitive(value: unknown, _type: BuiltinType, _forArrayField: boolean): unknown;
|
|
544
653
|
transformOutput(value: unknown, _type: BuiltinType): unknown;
|
|
545
654
|
buildSelectModel(model: string, modelAlias: string): SelectQueryBuilder<any, any, {}>;
|
|
546
|
-
buildFilterSortTake(model:
|
|
655
|
+
buildFilterSortTake(model: string, args: FindArgs<Schema, GetModels<Schema>, true>, query: SelectQueryBuilder<any, any, {}>, modelAlias: string): SelectQueryBuilder<any, any, {}>;
|
|
547
656
|
buildFilter(model: string, modelAlias: string, where: boolean | object | undefined): Expression<SqlBool>;
|
|
548
657
|
private buildCursorFilter;
|
|
549
658
|
private isLogicalCombinator;
|
|
@@ -732,7 +841,7 @@ type MutationHooksArgs<Schema extends SchemaDef> = {
|
|
|
732
841
|
* A query ID that uniquely identifies the mutation operation. You can use it to correlate
|
|
733
842
|
* data between the before and after mutation hooks.
|
|
734
843
|
*/
|
|
735
|
-
queryId:
|
|
844
|
+
queryId: QueryId;
|
|
736
845
|
};
|
|
737
846
|
type BeforeEntityMutationCallback<Schema extends SchemaDef> = (args: PluginBeforeEntityMutationArgs<Schema>) => MaybePromise<void>;
|
|
738
847
|
type AfterEntityMutationCallback<Schema extends SchemaDef> = (args: PluginAfterEntityMutationArgs<Schema>) => MaybePromise<void>;
|
|
@@ -941,7 +1050,7 @@ type ClientContract<Schema extends SchemaDef> = {
|
|
|
941
1050
|
/**
|
|
942
1051
|
* The raw Kysely query builder without any ZenStack enhancements.
|
|
943
1052
|
*/
|
|
944
|
-
readonly $qbRaw:
|
|
1053
|
+
readonly $qbRaw: AnyKysely;
|
|
945
1054
|
/**
|
|
946
1055
|
* Starts an interactive transaction.
|
|
947
1056
|
*/
|
|
@@ -1547,34 +1656,37 @@ declare const ZenStackClient: ClientConstructor;
|
|
|
1547
1656
|
declare function getCrudDialect<Schema extends SchemaDef>(schema: Schema, options: ClientOptions<Schema>): BaseCrudDialect<Schema>;
|
|
1548
1657
|
|
|
1549
1658
|
/**
|
|
1550
|
-
*
|
|
1551
|
-
*/
|
|
1552
|
-
declare class ZenStackError extends Error {
|
|
1553
|
-
}
|
|
1554
|
-
/**
|
|
1555
|
-
* Error thrown when input validation fails.
|
|
1556
|
-
*/
|
|
1557
|
-
declare class InputValidationError extends ZenStackError {
|
|
1558
|
-
readonly model: string;
|
|
1559
|
-
constructor(model: string, message: string, cause?: unknown);
|
|
1560
|
-
}
|
|
1561
|
-
/**
|
|
1562
|
-
* Error thrown when a query fails.
|
|
1563
|
-
*/
|
|
1564
|
-
declare class QueryError extends ZenStackError {
|
|
1565
|
-
constructor(message: string, cause?: unknown);
|
|
1566
|
-
}
|
|
1567
|
-
/**
|
|
1568
|
-
* Error thrown when an internal error occurs.
|
|
1569
|
-
*/
|
|
1570
|
-
declare class InternalError extends ZenStackError {
|
|
1571
|
-
}
|
|
1572
|
-
/**
|
|
1573
|
-
* Error thrown when an entity is not found.
|
|
1659
|
+
* Reason code for ORM errors.
|
|
1574
1660
|
*/
|
|
1575
|
-
declare
|
|
1576
|
-
|
|
1577
|
-
|
|
1661
|
+
declare enum ORMErrorReason {
|
|
1662
|
+
/**
|
|
1663
|
+
* ORM client configuration error.
|
|
1664
|
+
*/
|
|
1665
|
+
CONFIG_ERROR = "config-error",
|
|
1666
|
+
/**
|
|
1667
|
+
* Invalid input error.
|
|
1668
|
+
*/
|
|
1669
|
+
INVALID_INPUT = "invalid-input",
|
|
1670
|
+
/**
|
|
1671
|
+
* The specified record was not found.
|
|
1672
|
+
*/
|
|
1673
|
+
NOT_FOUND = "not-found",
|
|
1674
|
+
/**
|
|
1675
|
+
* Operation is rejected by access policy.
|
|
1676
|
+
*/
|
|
1677
|
+
REJECTED_BY_POLICY = "rejected-by-policy",
|
|
1678
|
+
/**
|
|
1679
|
+
* Error was thrown by the underlying database driver.
|
|
1680
|
+
*/
|
|
1681
|
+
DB_QUERY_ERROR = "db-query-error",
|
|
1682
|
+
/**
|
|
1683
|
+
* The requested operation is not supported.
|
|
1684
|
+
*/
|
|
1685
|
+
NOT_SUPPORTED = "not-supported",
|
|
1686
|
+
/**
|
|
1687
|
+
* An internal error occurred.
|
|
1688
|
+
*/
|
|
1689
|
+
INTERNAL_ERROR = "internal-error"
|
|
1578
1690
|
}
|
|
1579
1691
|
/**
|
|
1580
1692
|
* Reason code for policy rejection.
|
|
@@ -1594,12 +1706,35 @@ declare enum RejectedByPolicyReason {
|
|
|
1594
1706
|
OTHER = "other"
|
|
1595
1707
|
}
|
|
1596
1708
|
/**
|
|
1597
|
-
*
|
|
1709
|
+
* ZenStack ORM error.
|
|
1598
1710
|
*/
|
|
1599
|
-
declare class
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1711
|
+
declare class ORMError extends Error {
|
|
1712
|
+
reason: ORMErrorReason;
|
|
1713
|
+
constructor(reason: ORMErrorReason, message?: string, options?: ErrorOptions);
|
|
1714
|
+
/**
|
|
1715
|
+
* The name of the model that the error pertains to.
|
|
1716
|
+
*/
|
|
1717
|
+
model?: string;
|
|
1718
|
+
/**
|
|
1719
|
+
* The error code given by the underlying database driver.
|
|
1720
|
+
*/
|
|
1721
|
+
dbErrorCode?: unknown;
|
|
1722
|
+
/**
|
|
1723
|
+
* The error message given by the underlying database driver.
|
|
1724
|
+
*/
|
|
1725
|
+
dbErrorMessage?: string;
|
|
1726
|
+
/**
|
|
1727
|
+
* The reason code for policy rejection. Only available when `reason` is `REJECTED_BY_POLICY`.
|
|
1728
|
+
*/
|
|
1729
|
+
rejectedByPolicyReason?: RejectedByPolicyReason;
|
|
1730
|
+
/**
|
|
1731
|
+
* The SQL query that was executed. Only available when `reason` is `DB_QUERY_ERROR`.
|
|
1732
|
+
*/
|
|
1733
|
+
sql?: string;
|
|
1734
|
+
/**
|
|
1735
|
+
* The parameters used in the SQL query. Only available when `reason` is `DB_QUERY_ERROR`.
|
|
1736
|
+
*/
|
|
1737
|
+
sqlParams?: readonly unknown[];
|
|
1603
1738
|
}
|
|
1604
1739
|
|
|
1605
1740
|
declare function hasModel(schema: SchemaDef, model: string): boolean;
|
|
@@ -1707,109 +1842,6 @@ declare namespace queryUtils {
|
|
|
1707
1842
|
export { queryUtils_aggregate as aggregate, queryUtils_buildJoinPairs as buildJoinPairs, queryUtils_ensureArray as ensureArray, queryUtils_extractFieldName as extractFieldName, queryUtils_extractIdFields as extractIdFields, queryUtils_extractModelName as extractModelName, queryUtils_fieldHasDefaultValue as fieldHasDefaultValue, queryUtils_flattenCompoundUniqueFilters as flattenCompoundUniqueFilters, queryUtils_getDelegateDescendantModels as getDelegateDescendantModels, queryUtils_getDiscriminatorField as getDiscriminatorField, queryUtils_getEnum as getEnum, queryUtils_getField as getField, queryUtils_getIdFields as getIdFields, queryUtils_getIdValues as getIdValues, queryUtils_getManyToManyRelation as getManyToManyRelation, queryUtils_getModel as getModel, queryUtils_getRelationForeignKeyFieldPairs as getRelationForeignKeyFieldPairs, queryUtils_getTypeDef as getTypeDef, queryUtils_getUniqueFields as getUniqueFields, queryUtils_hasModel as hasModel, queryUtils_isEnum as isEnum, queryUtils_isForeignKeyField as isForeignKeyField, queryUtils_isInheritedField as isInheritedField, queryUtils_isRelationField as isRelationField, queryUtils_isScalarField as isScalarField, queryUtils_makeDefaultOrderBy as makeDefaultOrderBy, queryUtils_requireField as requireField, queryUtils_requireIdFields as requireIdFields, queryUtils_requireModel as requireModel, queryUtils_stripAlias as stripAlias };
|
|
1708
1843
|
}
|
|
1709
1844
|
|
|
1710
|
-
declare class DefaultOperationNodeVisitor extends OperationNodeVisitor {
|
|
1711
|
-
protected defaultVisit(node: OperationNode): void;
|
|
1712
|
-
protected visitSelectQuery(node: SelectQueryNode): void;
|
|
1713
|
-
protected visitSelection(node: SelectionNode): void;
|
|
1714
|
-
protected visitColumn(node: ColumnNode): void;
|
|
1715
|
-
protected visitAlias(node: AliasNode): void;
|
|
1716
|
-
protected visitTable(node: TableNode): void;
|
|
1717
|
-
protected visitFrom(node: FromNode): void;
|
|
1718
|
-
protected visitReference(node: ReferenceNode): void;
|
|
1719
|
-
protected visitAnd(node: AndNode): void;
|
|
1720
|
-
protected visitOr(node: OrNode): void;
|
|
1721
|
-
protected visitValueList(node: ValueListNode): void;
|
|
1722
|
-
protected visitParens(node: ParensNode): void;
|
|
1723
|
-
protected visitJoin(node: JoinNode): void;
|
|
1724
|
-
protected visitRaw(node: RawNode): void;
|
|
1725
|
-
protected visitWhere(node: WhereNode): void;
|
|
1726
|
-
protected visitInsertQuery(node: InsertQueryNode): void;
|
|
1727
|
-
protected visitDeleteQuery(node: DeleteQueryNode): void;
|
|
1728
|
-
protected visitReturning(node: ReturningNode): void;
|
|
1729
|
-
protected visitCreateTable(node: CreateTableNode): void;
|
|
1730
|
-
protected visitAddColumn(node: AddColumnNode): void;
|
|
1731
|
-
protected visitColumnDefinition(node: ColumnDefinitionNode): void;
|
|
1732
|
-
protected visitDropTable(node: DropTableNode): void;
|
|
1733
|
-
protected visitOrderBy(node: OrderByNode): void;
|
|
1734
|
-
protected visitOrderByItem(node: OrderByItemNode): void;
|
|
1735
|
-
protected visitGroupBy(node: GroupByNode): void;
|
|
1736
|
-
protected visitGroupByItem(node: GroupByItemNode): void;
|
|
1737
|
-
protected visitUpdateQuery(node: UpdateQueryNode): void;
|
|
1738
|
-
protected visitColumnUpdate(node: ColumnUpdateNode): void;
|
|
1739
|
-
protected visitLimit(node: LimitNode): void;
|
|
1740
|
-
protected visitOffset(node: OffsetNode): void;
|
|
1741
|
-
protected visitOnConflict(node: OnConflictNode): void;
|
|
1742
|
-
protected visitOnDuplicateKey(node: OnDuplicateKeyNode): void;
|
|
1743
|
-
protected visitCheckConstraint(node: CheckConstraintNode): void;
|
|
1744
|
-
protected visitDataType(node: DataTypeNode): void;
|
|
1745
|
-
protected visitSelectAll(node: SelectAllNode): void;
|
|
1746
|
-
protected visitIdentifier(node: IdentifierNode): void;
|
|
1747
|
-
protected visitSchemableIdentifier(node: SchemableIdentifierNode): void;
|
|
1748
|
-
protected visitValue(node: ValueNode): void;
|
|
1749
|
-
protected visitPrimitiveValueList(node: PrimitiveValueListNode): void;
|
|
1750
|
-
protected visitOperator(node: OperatorNode): void;
|
|
1751
|
-
protected visitCreateIndex(node: CreateIndexNode): void;
|
|
1752
|
-
protected visitDropIndex(node: DropIndexNode): void;
|
|
1753
|
-
protected visitList(node: ListNode): void;
|
|
1754
|
-
protected visitPrimaryKeyConstraint(node: PrimaryKeyConstraintNode): void;
|
|
1755
|
-
protected visitUniqueConstraint(node: UniqueConstraintNode): void;
|
|
1756
|
-
protected visitReferences(node: ReferencesNode): void;
|
|
1757
|
-
protected visitWith(node: WithNode): void;
|
|
1758
|
-
protected visitCommonTableExpression(node: CommonTableExpressionNode): void;
|
|
1759
|
-
protected visitCommonTableExpressionName(node: CommonTableExpressionNameNode): void;
|
|
1760
|
-
protected visitHaving(node: HavingNode): void;
|
|
1761
|
-
protected visitCreateSchema(node: CreateSchemaNode): void;
|
|
1762
|
-
protected visitDropSchema(node: DropSchemaNode): void;
|
|
1763
|
-
protected visitAlterTable(node: AlterTableNode): void;
|
|
1764
|
-
protected visitDropColumn(node: DropColumnNode): void;
|
|
1765
|
-
protected visitRenameColumn(node: RenameColumnNode): void;
|
|
1766
|
-
protected visitAlterColumn(node: AlterColumnNode): void;
|
|
1767
|
-
protected visitModifyColumn(node: ModifyColumnNode): void;
|
|
1768
|
-
protected visitAddConstraint(node: AddConstraintNode): void;
|
|
1769
|
-
protected visitDropConstraint(node: DropConstraintNode): void;
|
|
1770
|
-
protected visitForeignKeyConstraint(node: ForeignKeyConstraintNode): void;
|
|
1771
|
-
protected visitCreateView(node: CreateViewNode): void;
|
|
1772
|
-
protected visitDropView(node: DropViewNode): void;
|
|
1773
|
-
protected visitGenerated(node: GeneratedNode): void;
|
|
1774
|
-
protected visitDefaultValue(node: DefaultValueNode): void;
|
|
1775
|
-
protected visitOn(node: OnNode): void;
|
|
1776
|
-
protected visitValues(node: ValuesNode): void;
|
|
1777
|
-
protected visitSelectModifier(node: SelectModifierNode): void;
|
|
1778
|
-
protected visitCreateType(node: CreateTypeNode): void;
|
|
1779
|
-
protected visitDropType(node: DropTypeNode): void;
|
|
1780
|
-
protected visitExplain(node: ExplainNode): void;
|
|
1781
|
-
protected visitDefaultInsertValue(node: DefaultInsertValueNode): void;
|
|
1782
|
-
protected visitAggregateFunction(node: AggregateFunctionNode): void;
|
|
1783
|
-
protected visitOver(node: OverNode): void;
|
|
1784
|
-
protected visitPartitionBy(node: PartitionByNode): void;
|
|
1785
|
-
protected visitPartitionByItem(node: PartitionByItemNode): void;
|
|
1786
|
-
protected visitSetOperation(node: SetOperationNode): void;
|
|
1787
|
-
protected visitBinaryOperation(node: BinaryOperationNode): void;
|
|
1788
|
-
protected visitUnaryOperation(node: UnaryOperationNode): void;
|
|
1789
|
-
protected visitUsing(node: UsingNode): void;
|
|
1790
|
-
protected visitFunction(node: FunctionNode): void;
|
|
1791
|
-
protected visitCase(node: CaseNode): void;
|
|
1792
|
-
protected visitWhen(node: WhenNode): void;
|
|
1793
|
-
protected visitJSONReference(node: JSONReferenceNode): void;
|
|
1794
|
-
protected visitJSONPath(node: JSONPathNode): void;
|
|
1795
|
-
protected visitJSONPathLeg(node: JSONPathLegNode): void;
|
|
1796
|
-
protected visitJSONOperatorChain(node: JSONOperatorChainNode): void;
|
|
1797
|
-
protected visitTuple(node: TupleNode): void;
|
|
1798
|
-
protected visitMergeQuery(node: MergeQueryNode): void;
|
|
1799
|
-
protected visitMatched(node: MatchedNode): void;
|
|
1800
|
-
protected visitAddIndex(node: AddIndexNode): void;
|
|
1801
|
-
protected visitCast(node: CastNode): void;
|
|
1802
|
-
protected visitFetch(node: FetchNode): void;
|
|
1803
|
-
protected visitTop(node: TopNode): void;
|
|
1804
|
-
protected visitOutput(node: OutputNode): void;
|
|
1805
|
-
}
|
|
1806
|
-
|
|
1807
|
-
type kyselyUtils_DefaultOperationNodeVisitor = DefaultOperationNodeVisitor;
|
|
1808
|
-
declare const kyselyUtils_DefaultOperationNodeVisitor: typeof DefaultOperationNodeVisitor;
|
|
1809
|
-
declare namespace kyselyUtils {
|
|
1810
|
-
export { kyselyUtils_DefaultOperationNodeVisitor as DefaultOperationNodeVisitor };
|
|
1811
|
-
}
|
|
1812
|
-
|
|
1813
1845
|
declare class ExpressionVisitor {
|
|
1814
1846
|
visit(expr: Expression$1): void;
|
|
1815
1847
|
protected visitLiteral(_e: LiteralExpression): void;
|
|
@@ -1829,4 +1861,4 @@ declare namespace schemaUtils {
|
|
|
1829
1861
|
export { schemaUtils_ExpressionVisitor as ExpressionVisitor };
|
|
1830
1862
|
}
|
|
1831
1863
|
|
|
1832
|
-
export { type AfterEntityMutationCallback, type AggregateArgs, type AggregateResult, type AllModelOperations, type AuthType, BaseCrudDialect, type BatchResult, type BeforeEntityMutationCallback, type BooleanFilter, type BytesFilter, CRUD, CRUD_EXT, type ClientConstructor, type ClientContract, type ClientOptions, type ComputedFieldsOptions, type CountArgs, type CountResult, type CreateArgs, type CreateManyAndReturnArgs, type CreateManyArgs, type CoreCrudOperation as CrudOperation, type DateTimeFilter, type DeleteArgs, type DeleteManyArgs, type EntityMutationHooksDef, type FindArgs, type FindFirstArgs, type FindManyArgs, type FindUniqueArgs, type GroupByArgs, type GroupByResult, type HasComputedFields, type HasProcedures, type IncludeInput,
|
|
1864
|
+
export { type AfterEntityMutationCallback, type AggregateArgs, type AggregateResult, type AllModelOperations, type AuthType, BaseCrudDialect, type BatchResult, type BeforeEntityMutationCallback, type BooleanFilter, type BytesFilter, CRUD, CRUD_EXT, type ClientConstructor, type ClientContract, type ClientOptions, type ComputedFieldsOptions, type CountArgs, type CountResult, type CreateArgs, type CreateManyAndReturnArgs, type CreateManyArgs, type CoreCrudOperation as CrudOperation, type DateTimeFilter, type DeleteArgs, type DeleteManyArgs, type EntityMutationHooksDef, type FindArgs, type FindFirstArgs, type FindManyArgs, type FindUniqueArgs, type GroupByArgs, type GroupByResult, type HasComputedFields, type HasProcedures, type IncludeInput, type JsonArray, type JsonObject, type JsonValue, kyselyUtils as KyselyUtils, type ModelOperations, type ModelResult, type NullsOrder, type NumberFilter, ORMError, ORMErrorReason, type OmitInput, type OnKyselyQueryArgs, type OnKyselyQueryCallback, type OperationsIneligibleForDelegateModels, type OrderBy, type PluginAfterEntityMutationArgs, type PluginBeforeEntityMutationArgs, type ProcedureFunc, type Procedures, type ProceduresOptions, type ProceedKyselyQueryFunction, queryUtils as QueryUtils, RejectedByPolicyReason, type RuntimePlugin, schemaUtils as SchemaUtils, type SelectIncludeOmit, type SelectInput, type SelectSubset, type SimplifiedModelResult, type SortOrder, type StringFilter, type Subset, type ToKysely, type TransactionClientContract, TransactionIsolationLevel, type TypeDefResult, type UpdateArgs, type UpdateManyAndReturnArgs, type UpdateManyArgs, type UpsertArgs, type WhereInput, type WhereUniqueInput, type ZModelFunction, type ZModelFunctionContext, ZenStackClient, type ZenStackPromise, definePlugin, getCrudDialect };
|