kern-orm 0.10.0 → 0.12.0

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.
@@ -1,5 +1,5 @@
1
1
  import { ResultMode, ResultMode as ResultMode$1, SqlQuery } from "kern-db/builder";
2
- import { AcceptedNull, AcceptedValues, AnySqlQuery, AnySqlQuery as AnySqlQuery$1, BaseDerivableType, Connection, ConnectionError, Database, Database as Database$1, DatabaseOptions, DecodedFields, DerivableType, DerivableType as DerivableType$1, DerivableTypeWithParameters, Driver, DriverErrorFields, DriverResult, FieldTypes, InitialSqlQueryState, InitialSqlQueryState as InitialSqlQueryState$1, IsolationLevel, NotFoundError as NotFoundError$1, OneRow, OneRow as OneRow$1, OneValueRows, OneValueRows as OneValueRows$1, PollLockOptions, PollLockOptions as PollLockOptions$1, QueryError, QueryErrorCode, QueryErrorCondition, ResultByRows, ResultByRows as ResultByRows$1, ResultDecodeError as ResultDecodeError$1, ResultRows, ResultRows as ResultRows$1, SessionOptions, SessionOptions as SessionOptions$1, SqlFragment as SqlFragment$1, SqlFragment as SqlFragment$2, SqlQuery as SqlQuery$1, SqlQueryResult, SqlQueryState, SqlStatement, SqlStatement as SqlStatement$1, SqlValue, TextValue, TransactionConnectionError, TransactionOptions, TransactionOptions as TransactionOptions$1, TypeOptions, TypeOptions as TypeOptions$1, TypeTransform, TypeTransform as TypeTransform$1, ValueRows, ValueRows as ValueRows$1, createDatabase, createStatement as createStatement$1, isQueryError, toDriverError, typeValues } from "kern-db";
2
+ import { AcceptedNull, AcceptedValues, AnySqlQuery, AnySqlQuery as AnySqlQuery$1, BaseDerivableType, Connection, ConnectionError, Database, Database as Database$1, DatabaseOptions, DecodedFields, DerivableType, DerivableType as DerivableType$1, DerivableTypeWithParameters, Driver, DriverErrorFields, DriverResult, FieldTypes, InitialSqlQueryState, InitialSqlQueryState as InitialSqlQueryState$1, IsolationLevel, NotFoundError as NotFoundError$1, OneRow, OneRow as OneRow$1, OneValueRows, OneValueRows as OneValueRows$1, PollLockOptions, PollLockOptions as PollLockOptions$1, QueryError, QueryErrorCode, QueryErrorCondition, ResultByRows, ResultByRows as ResultByRows$1, ResultDecodeError as ResultDecodeError$1, ResultRows, ResultRows as ResultRows$1, SessionOptions, SessionOptions as SessionOptions$1, SqlFragment as SqlFragment$1, SqlFragment as SqlFragment$2, SqlQuery as SqlQuery$1, SqlQueryResult, SqlQueryState, SqlStatement, SqlStatement as SqlStatement$1, SqlValue, TextValue, TransactionConnectionError, TransactionOptions, TransactionOptions as TransactionOptions$1, TypeOptions, TypeOptions as TypeOptions$1, TypeTransform, TypeTransform as TypeTransform$1, ValueRows, ValueRows as ValueRows$1, createDatabase, createStatement as createStatement$1, isOutcomeUnknown, isQueryError, toDriverError, typeValues } from "kern-db";
3
3
  declare const operatorSignature: unique symbol;
4
4
  /** Runtime mark of generic operators. */
5
5
  declare const genericOperatorBrand: unique symbol;
@@ -2996,4 +2996,4 @@ declare function param<E extends AnyExpression, V extends (E extends AnyExpressi
2996
2996
  * A run of capital letters is one word, such as `user_id` for `userID`, and digits stay in their word, such as `line2`.
2997
2997
  */
2998
2998
  declare function toSnakeCase(key: string): string;
2999
- export { matches as $, TypeInput as $i, UnfilteredAggregateOptions as $n, Condition as $r, Tables as $t, SqlQueryResult as A, QueryValueType as Ai, least as An, ConflictUpdateSet as Ar, MergeRelations as At, createDatabase as B, KeyColumns as Bi, SelectedFieldTypes as Bn, RowLockOptions as Br, SchemaContext as Bt, ResultByRows$1 as C, ValuesQuery as Ci, NullSkippingResult as Cn, AnySelectQuery as Cr, bindSchema as Ct, SessionOptions$1 as D, InitialQueryState as Di, caseWhen as Dn, SingletonInsertMany as Dr, TransformedQuery as Dt, ResultRows$1 as E, Grouped as Ei, TypedOperandOperators as En, SelectQuery as Er, SynchronousResult as Et, TransactionConnectionError as F, AnyTableKeys as Fi, GroupSelectionResult as Fn, FilteredStateRows as Fr, RelationDeclarations as Ft, SqlTemplate as G, TableOptions as Gi, Literal as Gn, PrimaryKeyColumn as Gr, UsedRelation as Gt, isQueryError as H, Table as Hi, SelectionFieldTypes as Hn, GroupTerms as Hr, TableContext as Ht, TransactionOptions$1 as I, ColumnDefinitions as Ii, GroupedField as In, FoundQueryState as Ir, RelationKey as It, sql as J, defineTable as Ji, AggregateOptions as Jn, WhereCallback as Jr, AnySchema as Jt, identifier$1 as K, ToColumns as Ki, literal as Kn, PrimaryKeyValues as Kr, many as Kt, TypeOptions$1 as L, ColumnOperators as Li, GroupedRecord as Ln, FoundState as Lr, RelationKeys as Lt, SqlStatement$1 as M, SingletonQueryState as Mi, ExpressionInput as Mn, UpdateSet as Mr, OneRelationKeys as Mt, SqlValue as N, TableQueryState as Ni, ExpressionValue as Nn, UpdateValues as Nr, Relation as Nt, SqlFragment$2 as O, QueryState as Oi, coalesce as On, from as Or, TransformedQueryState as Ot, TextValue as P, AnyTable as Pi, GroupOperandValue as Pn, UpsertValues as Pr, RelationDeclaration as Pt, NotAColumn as Q, Type as Qi, StringAggOptions as Qn, CombinedCondition as Qr, SchemaTables as Qt, TypeTransform$1 as R, ColumnShape as Ri, MergeSelection as Rn, GroupedState as Rr, RelationKind as Rt, QueryErrorCondition as S, TypedScalarQuery as Si, FollowingOperand as Sn, RelationRefs as Sr, DbQueryState as St, ResultMode$1 as T, FoundKey as Ti, TypedOperandInput as Tn, ResultOf as Tr, NotSynchronous as Tt, toDriverError as U, TableFactoryOptions as Ui, SelectionResult as Un, KeyCheck as Ur, TableRelations as Ut, createStatement$1 as V, Selectable as Vi, Selection as Vn, GroupTerm as Vr, SchemaRelations as Vt, toSnakeCase as W, TableKeys as Wi, SelectionUses as Wn, NotAKey as Wr, UsableRelation as Wt, MatchCheck as X, AnyType as Xi, GroupAggregateExpression as Xn, WhereFilter as Xr, SchemaPart as Xt, ColumnRefKey as Y, RequiredRelationError as Yi, CountExpression as Yn, WhereCondition as Yr, Schema as Yt, MatchResult as Z, BaseType as Zi, GroupValue as Zn, WhereValues as Zr, SchemaPartRelations as Zt, OneRow$1 as _, Operand as _i, HelperEffect as _n, asc as _r, AnyDb as _t, Database$1 as a, ColumnAttributes as aa, ExistsValueType as ai, AnyQuery as an, max as ar, TextLengthSignature as at, QueryError as b, OperandUses as bi, CaseCondition as bn, ColumnRefs as br, DbMutationState as bt, DerivableType$1 as c, BoundOperators as ca, CountValueType as ci, ConflictActionRequired as cn, stringAgg as cr, textOperators as ct, DriverErrorFields as d, OperatorDefinitions as da, EqualityOperators as di, InitialInsertState as dn, OrderDirection as dr, AnyExpression as dt, TypeOperators as ea, ConditionOperand as ei, defineSchema as en, UnfilteredStringAggOptions as er, defineExpression as et, DriverResult as f, GenericOperator as fa, HasEquality as fi, InitialMutationState as fn, OrderKey as fr, BaseOperators as ft, NotFoundError$1 as g, ComparisonSignature as gi, Helper as gn, SelectedRefs as gr, UntypedExpression as gt, IsolationLevel as h, defineGenericOperator as ha, BooleanResult as hi, MutationQueryState as hn, Ordering as hr, TypedExpression as ht, ConnectionError as i, Column as ia, or as ii, SelectionState as in, every as ir, TextConversionSignature as it, SqlQueryState as j, SelectQueryState as ji, ColumnFieldTypes as jn, InsertValues as jr, NoRelations as jt, SqlQuery$1 as k, QueryStateOf as ki, greatest as kn, ColumnValue as kr, DeclaredRelations as kt, DerivableTypeWithParameters as l, MergeOperators as la, CompileOptions as li, ConflictKeyRequired as ln, sum as lr, NumberTypeOperators as lt, InitialSqlQueryState$1 as m, OperatorSignature as ma, equalityOperators as mi, MutationQuery as mn, OrderTerms as mr, ExpressionOperators as mt, BaseDerivableType as n, defineType$1 as na, and as ni, RecordQuery as nn, count as nr, TRUE as nt, DatabaseOptions as o, KeyKind as oa, FilteredRows as oi, SelectQueryKind as on, min as or, TextOperators as ot, FieldTypes as p, GenericOperatorImplementation as pa, InSignature as pi, InsertMutationState as pn, OrderTerm as pr, Expression as pt, param as q, createTableFactory as qi, AggregateExpression as qn, EqValue as qr, one as qt, Connection as r, AnyColumn as ra, not as ri, RecordQueryState as rn, countDistinct as rr, PatternSignature as rt, DecodedFields as s, ToColumn as sa, QueryResult as si, AnyMutationQuery as sn, some as sr, TextTypeOperators as st, AnySqlQuery$1 as t, TypeOutput as ta, Predicate as ti, AnyRecordQuery as tn, avg as tr, FALSE as tt, Driver as u, NoOperators as ua, EqualityOperator as ui, ConflictTarget as un, OrderColumns as ur, orderingOperators as ut, OneValueRows$1 as v, OperandValue as vi, defineHelper as vn, desc as vr, BindOptions as vt, ResultDecodeError$1 as w, EmptyRecord as wi, TypedOperand as wn, BoundSelectQuery as wr, AnyTransformedQuery as wt, QueryErrorCode as x, ScalarQuery as xi, CaseValue as xn, QueryContext as xr, DbOf as xt, PollLockOptions$1 as y, compare as yi, CaseBranch as yn, orderBy as yr, Db as yt, ValueRows$1 as z, ColumnValues as zi, NestedQuery as zn, SelectedOperandType as zr, RequiredMember as zt };
2999
+ export { NotAColumn as $, Type as $i, StringAggOptions as $n, CombinedCondition as $r, SchemaTables as $t, SqlQueryResult as A, QueryStateOf as Ai, greatest as An, ColumnValue as Ar, DeclaredRelations as At, createDatabase as B, ColumnValues as Bi, NestedQuery as Bn, SelectedOperandType as Br, RequiredMember as Bt, ResultByRows$1 as C, TypedScalarQuery as Ci, FollowingOperand as Cn, RelationRefs as Cr, DbQueryState as Ct, SessionOptions$1 as D, Grouped as Di, TypedOperandOperators as Dn, SelectQuery as Dr, SynchronousResult as Dt, ResultRows$1 as E, FoundKey as Ei, TypedOperandInput as En, ResultOf as Er, NotSynchronous as Et, TransactionConnectionError as F, AnyTable as Fi, GroupOperandValue as Fn, UpsertValues as Fr, RelationDeclaration as Ft, toSnakeCase as G, TableKeys as Gi, SelectionUses as Gn, NotAKey as Gr, UsableRelation as Gt, isOutcomeUnknown as H, Selectable as Hi, Selection as Hn, GroupTerm as Hr, SchemaRelations as Ht, TransactionOptions$1 as I, AnyTableKeys as Ii, GroupSelectionResult as In, FilteredStateRows as Ir, RelationDeclarations as It, param as J, createTableFactory as Ji, AggregateExpression as Jn, EqValue as Jr, one as Jt, SqlTemplate as K, TableOptions as Ki, Literal as Kn, PrimaryKeyColumn as Kr, UsedRelation as Kt, TypeOptions$1 as L, ColumnDefinitions as Li, GroupedField as Ln, FoundQueryState as Lr, RelationKey as Lt, SqlStatement$1 as M, SelectQueryState as Mi, ColumnFieldTypes as Mn, InsertValues as Mr, NoRelations as Mt, SqlValue as N, SingletonQueryState as Ni, ExpressionInput as Nn, UpdateSet as Nr, OneRelationKeys as Nt, SqlFragment$2 as O, InitialQueryState as Oi, caseWhen as On, SingletonInsertMany as Or, TransformedQuery as Ot, TextValue as P, TableQueryState as Pi, ExpressionValue as Pn, UpdateValues as Pr, Relation as Pt, MatchResult as Q, BaseType as Qi, GroupValue as Qn, WhereValues as Qr, SchemaPartRelations as Qt, TypeTransform$1 as R, ColumnOperators as Ri, GroupedRecord as Rn, FoundState as Rr, RelationKeys as Rt, QueryErrorCondition as S, ScalarQuery as Si, CaseValue as Sn, QueryContext as Sr, DbOf as St, ResultMode$1 as T, EmptyRecord as Ti, TypedOperand as Tn, BoundSelectQuery as Tr, AnyTransformedQuery as Tt, isQueryError as U, Table as Ui, SelectionFieldTypes as Un, GroupTerms as Ur, TableContext as Ut, createStatement$1 as V, KeyColumns as Vi, SelectedFieldTypes as Vn, RowLockOptions as Vr, SchemaContext as Vt, toDriverError as W, TableFactoryOptions as Wi, SelectionResult as Wn, KeyCheck as Wr, TableRelations as Wt, ColumnRefKey as X, RequiredRelationError as Xi, CountExpression as Xn, WhereCondition as Xr, Schema as Xt, sql as Y, defineTable as Yi, AggregateOptions as Yn, WhereCallback as Yr, AnySchema as Yt, MatchCheck as Z, AnyType as Zi, GroupAggregateExpression as Zn, WhereFilter as Zr, SchemaPart as Zt, OneRow$1 as _, ComparisonSignature as _i, Helper as _n, SelectedRefs as _r, UntypedExpression as _t, Database$1 as a, Column as aa, or as ai, SelectionState as an, every as ar, TextConversionSignature as at, QueryError as b, compare as bi, CaseBranch as bn, orderBy as br, Db as bt, DerivableType$1 as c, ToColumn as ca, QueryResult as ci, AnyMutationQuery as cn, some as cr, TextTypeOperators as ct, DriverErrorFields as d, NoOperators as da, EqualityOperator as di, ConflictTarget as dn, OrderColumns as dr, orderingOperators as dt, TypeInput as ea, Condition as ei, Tables as en, UnfilteredAggregateOptions as er, matches as et, DriverResult as f, OperatorDefinitions as fa, EqualityOperators as fi, InitialInsertState as fn, OrderDirection as fr, AnyExpression as ft, NotFoundError$1 as g, defineGenericOperator as ga, BooleanResult as gi, MutationQueryState as gn, Ordering as gr, TypedExpression as gt, IsolationLevel as h, OperatorSignature as ha, equalityOperators as hi, MutationQuery as hn, OrderTerms as hr, ExpressionOperators as ht, ConnectionError as i, AnyColumn as ia, not as ii, RecordQueryState as in, countDistinct as ir, PatternSignature as it, SqlQueryState as j, QueryValueType as ji, least as jn, ConflictUpdateSet as jr, MergeRelations as jt, SqlQuery$1 as k, QueryState as ki, coalesce as kn, from as kr, TransformedQueryState as kt, DerivableTypeWithParameters as l, BoundOperators as la, CountValueType as li, ConflictActionRequired as ln, stringAgg as lr, textOperators as lt, InitialSqlQueryState$1 as m, GenericOperatorImplementation as ma, InSignature as mi, InsertMutationState as mn, OrderTerm as mr, Expression as mt, BaseDerivableType as n, TypeOutput as na, Predicate as ni, AnyRecordQuery as nn, avg as nr, FALSE as nt, DatabaseOptions as o, ColumnAttributes as oa, ExistsValueType as oi, AnyQuery as on, max as or, TextLengthSignature as ot, FieldTypes as p, GenericOperator as pa, HasEquality as pi, InitialMutationState as pn, OrderKey as pr, BaseOperators as pt, identifier$1 as q, ToColumns as qi, literal as qn, PrimaryKeyValues as qr, many as qt, Connection as r, defineType$1 as ra, and as ri, RecordQuery as rn, count as rr, TRUE as rt, DecodedFields as s, KeyKind as sa, FilteredRows as si, SelectQueryKind as sn, min as sr, TextOperators as st, AnySqlQuery$1 as t, TypeOperators as ta, ConditionOperand as ti, defineSchema as tn, UnfilteredStringAggOptions as tr, defineExpression as tt, Driver as u, MergeOperators as ua, CompileOptions as ui, ConflictKeyRequired as un, sum as ur, NumberTypeOperators as ut, OneValueRows$1 as v, Operand as vi, HelperEffect as vn, asc as vr, AnyDb as vt, ResultDecodeError$1 as w, ValuesQuery as wi, NullSkippingResult as wn, AnySelectQuery as wr, bindSchema as wt, QueryErrorCode as x, OperandUses as xi, CaseCondition as xn, ColumnRefs as xr, DbMutationState as xt, PollLockOptions$1 as y, OperandValue as yi, defineHelper as yn, desc as yr, BindOptions as yt, ValueRows$1 as z, ColumnShape as zi, MergeSelection as zn, GroupedState as zr, RelationKind as zt };
package/dist/index.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- import { $ as matches, $i as TypeInput, $n as UnfilteredAggregateOptions, $r as Condition, $t as Tables, A as SqlQueryResult, Ai as QueryValueType, An as least, Ar as ConflictUpdateSet, At as MergeRelations, B as createDatabase, Bi as KeyColumns, Bn as SelectedFieldTypes, Br as RowLockOptions, Bt as SchemaContext, C as ResultByRows, Ci as ValuesQuery, Cn as NullSkippingResult, Cr as AnySelectQuery, Ct as bindSchema, D as SessionOptions, Di as InitialQueryState, Dn as caseWhen, Dr as SingletonInsertMany, Dt as TransformedQuery, E as ResultRows, Ei as Grouped, En as TypedOperandOperators, Er as SelectQuery, Et as SynchronousResult, F as TransactionConnectionError, Fi as AnyTableKeys, Fn as GroupSelectionResult, Fr as FilteredStateRows, Ft as RelationDeclarations, G as SqlTemplate, Gi as TableOptions, Gn as Literal, Gr as PrimaryKeyColumn, Gt as UsedRelation, H as isQueryError, Hi as Table, Hn as SelectionFieldTypes, Hr as GroupTerms, Ht as TableContext, I as TransactionOptions, Ii as ColumnDefinitions, In as GroupedField, Ir as FoundQueryState, It as RelationKey, J as sql, Ji as defineTable, Jn as AggregateOptions, Jr as WhereCallback, Jt as AnySchema, K as identifier, Ki as ToColumns, Kn as literal, Kr as PrimaryKeyValues, Kt as many, L as TypeOptions, Li as ColumnOperators, Ln as GroupedRecord, Lr as FoundState, Lt as RelationKeys, M as SqlStatement, Mi as SingletonQueryState, Mn as ExpressionInput, Mr as UpdateSet, Mt as OneRelationKeys, N as SqlValue, Ni as TableQueryState, Nn as ExpressionValue, Nr as UpdateValues, Nt as Relation, O as SqlFragment, Oi as QueryState, On as coalesce, Or as from, Ot as TransformedQueryState, P as TextValue, Pi as AnyTable, Pn as GroupOperandValue, Pr as UpsertValues, Pt as RelationDeclaration, Q as NotAColumn, Qi as Type, Qn as StringAggOptions, Qr as CombinedCondition, Qt as SchemaTables, R as TypeTransform, Ri as ColumnShape, Rn as MergeSelection, Rr as GroupedState, Rt as RelationKind, S as QueryErrorCondition, Si as TypedScalarQuery, Sn as FollowingOperand, Sr as RelationRefs, St as DbQueryState, T as ResultMode, Ti as FoundKey, Tn as TypedOperandInput, Tr as ResultOf, Tt as NotSynchronous, U as toDriverError, Ui as TableFactoryOptions, Un as SelectionResult, Ur as KeyCheck, Ut as TableRelations, V as createStatement, Vi as Selectable, Vn as Selection, Vr as GroupTerm, Vt as SchemaRelations, W as toSnakeCase, Wi as TableKeys, Wn as SelectionUses, Wr as NotAKey, Wt as UsableRelation, X as MatchCheck, Xi as AnyType, Xn as GroupAggregateExpression, Xr as WhereFilter, Xt as SchemaPart, Y as ColumnRefKey, Yi as RequiredRelationError, Yn as CountExpression, Yr as WhereCondition, Yt as Schema, Z as MatchResult, Zi as BaseType, Zn as GroupValue, Zr as WhereValues, Zt as SchemaPartRelations, _ as OneRow, _i as Operand, _n as HelperEffect, _r as asc, _t as AnyDb, a as Database, aa as ColumnAttributes, ai as ExistsValueType, an as AnyQuery, ar as max, at as TextLengthSignature, b as QueryError, bi as OperandUses, bn as CaseCondition, br as ColumnRefs, bt as DbMutationState, c as DerivableType, ca as BoundOperators, ci as CountValueType, cn as ConflictActionRequired, cr as stringAgg, ct as textOperators, d as DriverErrorFields, da as OperatorDefinitions, di as EqualityOperators, dn as InitialInsertState, dr as OrderDirection, dt as AnyExpression, ea as TypeOperators, ei as ConditionOperand, en as defineSchema, er as UnfilteredStringAggOptions, et as defineExpression, f as DriverResult, fa as GenericOperator, fi as HasEquality, fn as InitialMutationState, fr as OrderKey, ft as BaseOperators, g as NotFoundError, gi as ComparisonSignature, gn as Helper, gr as SelectedRefs, gt as UntypedExpression, h as IsolationLevel, ha as defineGenericOperator, hi as BooleanResult, hn as MutationQueryState, hr as Ordering, ht as TypedExpression, i as ConnectionError, ia as Column, ii as or, in as SelectionState, ir as every, it as TextConversionSignature, j as SqlQueryState, ji as SelectQueryState, jn as ColumnFieldTypes, jr as InsertValues, jt as NoRelations, k as SqlQuery, ki as QueryStateOf, kn as greatest, kr as ColumnValue, kt as DeclaredRelations, l as DerivableTypeWithParameters, la as MergeOperators, li as CompileOptions, ln as ConflictKeyRequired, lr as sum, lt as NumberTypeOperators, m as InitialSqlQueryState, ma as OperatorSignature, mi as equalityOperators, mn as MutationQuery, mr as OrderTerms, mt as ExpressionOperators, n as BaseDerivableType, na as defineType, ni as and, nn as RecordQuery, nr as count, nt as TRUE, o as DatabaseOptions, oa as KeyKind, oi as FilteredRows, on as SelectQueryKind, or as min, ot as TextOperators, p as FieldTypes, pa as GenericOperatorImplementation, pi as InSignature, pn as InsertMutationState, pr as OrderTerm, pt as Expression, q as param, qi as createTableFactory, qn as AggregateExpression, qr as EqValue, qt as one, r as Connection, ra as AnyColumn, ri as not, rn as RecordQueryState, rr as countDistinct, rt as PatternSignature, s as DecodedFields, sa as ToColumn, si as QueryResult, sn as AnyMutationQuery, sr as some, st as TextTypeOperators, t as AnySqlQuery, ta as TypeOutput, ti as Predicate, tn as AnyRecordQuery, tr as avg, tt as FALSE, u as Driver, ua as NoOperators, ui as EqualityOperator, un as ConflictTarget, ur as OrderColumns, ut as orderingOperators, v as OneValueRows, vi as OperandValue, vn as defineHelper, vr as desc, vt as BindOptions, w as ResultDecodeError, wi as EmptyRecord, wn as TypedOperand, wr as BoundSelectQuery, wt as AnyTransformedQuery, x as QueryErrorCode, xi as ScalarQuery, xn as CaseValue, xr as QueryContext, xt as DbOf, y as PollLockOptions, yi as compare, yn as CaseBranch, yr as orderBy, yt as Db, z as ValueRows, zi as ColumnValues, zn as NestedQuery, zr as SelectedOperandType, zt as RequiredMember } from "./index-aiyU5HR5.mjs";
2
- export { type AggregateExpression, type AggregateOptions, type AnyColumn, type AnyDb, type AnyExpression, type AnyMutationQuery, type AnyQuery, type AnyRecordQuery, type AnySchema, type AnySelectQuery, type AnySqlQuery, type AnyTable, type AnyTableKeys, type AnyTransformedQuery, type AnyType, type BaseDerivableType, type BaseOperators, type BaseType, type BindOptions, type BooleanResult, type BoundOperators, type BoundSelectQuery, type CaseBranch, type CaseCondition, type CaseValue, type Column, type ColumnAttributes, type ColumnDefinitions, type ColumnFieldTypes, type ColumnOperators, type ColumnRefKey, type ColumnRefs, type ColumnShape, type ColumnValue, type ColumnValues, type CombinedCondition, type ComparisonSignature, type CompileOptions, type Condition, type ConditionOperand, type ConflictActionRequired, type ConflictKeyRequired, type ConflictTarget, type ConflictUpdateSet, type Connection, ConnectionError, type CountExpression, type CountValueType, type Database, type DatabaseOptions, type Db, type DbMutationState, type DbOf, type DbQueryState, type DeclaredRelations, type DecodedFields, type DerivableType, type DerivableTypeWithParameters, type Driver, type DriverErrorFields, type DriverResult, type EmptyRecord, type EqValue, type EqualityOperator, type EqualityOperators, type ExistsValueType, type Expression, type ExpressionInput, type ExpressionOperators, type ExpressionValue, FALSE, type FieldTypes, type FilteredRows, type FilteredStateRows, type FollowingOperand, type FoundKey, type FoundQueryState, type FoundState, type GenericOperator, type GenericOperatorImplementation, type GroupAggregateExpression, type GroupOperandValue, type GroupSelectionResult, type GroupTerm, type GroupTerms, type GroupValue, type Grouped, type GroupedField, type GroupedRecord, type GroupedState, type HasEquality, type Helper, type HelperEffect, type InSignature, type InitialInsertState, type InitialMutationState, type InitialQueryState, type InitialSqlQueryState, type InsertMutationState, type InsertValues, type IsolationLevel, type KeyCheck, type KeyColumns, type KeyKind, type Literal, type MatchCheck, type MatchResult, type MergeOperators, type MergeRelations, type MergeSelection, type MutationQuery, type MutationQueryState, type NestedQuery, type NoOperators, type NoRelations, type NotAColumn, type NotAKey, NotFoundError, type NotSynchronous, type NullSkippingResult, type NumberTypeOperators, type OneRelationKeys, type OneRow, type OneValueRows, type Operand, type OperandUses, type OperandValue, type OperatorDefinitions, type OperatorSignature, type OrderColumns, type OrderDirection, type OrderKey, type OrderTerm, type OrderTerms, type Ordering, type PatternSignature, type PollLockOptions, type Predicate, type PrimaryKeyColumn, type PrimaryKeyValues, type QueryContext, QueryError, type QueryErrorCode, type QueryErrorCondition, type QueryResult, type QueryState, type QueryStateOf, type QueryValueType, type RecordQuery, type RecordQueryState, type Relation, type RelationDeclaration, type RelationDeclarations, type RelationKey, type RelationKeys, type RelationKind, type RelationRefs, type RequiredMember, RequiredRelationError, type ResultByRows, ResultDecodeError, type ResultMode, type ResultOf, type ResultRows, type RowLockOptions, type ScalarQuery, type Schema, type SchemaContext, type SchemaPart, type SchemaPartRelations, type SchemaRelations, type SchemaTables, type SelectQuery, type SelectQueryKind, type SelectQueryState, type Selectable, type SelectedFieldTypes, type SelectedOperandType, type SelectedRefs, type Selection, type SelectionFieldTypes, type SelectionResult, type SelectionState, type SelectionUses, type SessionOptions, type SingletonInsertMany, type SingletonQueryState, type SqlFragment, type SqlQuery, type SqlQueryResult, type SqlQueryState, type SqlStatement, type SqlTemplate, type SqlValue, type StringAggOptions, type SynchronousResult, TRUE, type Table, type TableContext, type TableFactoryOptions, type TableKeys, type TableOptions, type TableQueryState, type TableRelations, type Tables, type TextConversionSignature, type TextLengthSignature, type TextOperators, type TextTypeOperators, type TextValue, type ToColumn, type ToColumns, TransactionConnectionError, type TransactionOptions, type TransformedQuery, type TransformedQueryState, type Type, type TypeInput, type TypeOperators, type TypeOptions, type TypeOutput, type TypeTransform, type TypedExpression, type TypedOperand, type TypedOperandInput, type TypedOperandOperators, type TypedScalarQuery, type UnfilteredAggregateOptions, type UnfilteredStringAggOptions, type UntypedExpression, type UpdateSet, type UpdateValues, type UpsertValues, type UsableRelation, type UsedRelation, type ValueRows, type ValuesQuery, type WhereCallback, type WhereCondition, type WhereFilter, type WhereValues, and, asc, avg, bindSchema, caseWhen, coalesce, compare, count, countDistinct, createDatabase, createStatement, createTableFactory, defineExpression, defineGenericOperator, defineHelper, defineSchema, defineTable, defineType, desc, equalityOperators, every, from, greatest, identifier, isQueryError, least, literal, many, matches, max, min, not, one, or, orderBy, orderingOperators, param, some, sql, stringAgg, sum, textOperators, toDriverError, toSnakeCase };
1
+ import { $ as NotAColumn, $i as Type, $n as StringAggOptions, $r as CombinedCondition, $t as SchemaTables, A as SqlQueryResult, Ai as QueryStateOf, An as greatest, Ar as ColumnValue, At as DeclaredRelations, B as createDatabase, Bi as ColumnValues, Bn as NestedQuery, Br as SelectedOperandType, Bt as RequiredMember, C as ResultByRows, Ci as TypedScalarQuery, Cn as FollowingOperand, Cr as RelationRefs, Ct as DbQueryState, D as SessionOptions, Di as Grouped, Dn as TypedOperandOperators, Dr as SelectQuery, Dt as SynchronousResult, E as ResultRows, Ei as FoundKey, En as TypedOperandInput, Er as ResultOf, Et as NotSynchronous, F as TransactionConnectionError, Fi as AnyTable, Fn as GroupOperandValue, Fr as UpsertValues, Ft as RelationDeclaration, G as toSnakeCase, Gi as TableKeys, Gn as SelectionUses, Gr as NotAKey, Gt as UsableRelation, H as isOutcomeUnknown, Hi as Selectable, Hn as Selection, Hr as GroupTerm, Ht as SchemaRelations, I as TransactionOptions, Ii as AnyTableKeys, In as GroupSelectionResult, Ir as FilteredStateRows, It as RelationDeclarations, J as param, Ji as createTableFactory, Jn as AggregateExpression, Jr as EqValue, Jt as one, K as SqlTemplate, Ki as TableOptions, Kn as Literal, Kr as PrimaryKeyColumn, Kt as UsedRelation, L as TypeOptions, Li as ColumnDefinitions, Ln as GroupedField, Lr as FoundQueryState, Lt as RelationKey, M as SqlStatement, Mi as SelectQueryState, Mn as ColumnFieldTypes, Mr as InsertValues, Mt as NoRelations, N as SqlValue, Ni as SingletonQueryState, Nn as ExpressionInput, Nr as UpdateSet, Nt as OneRelationKeys, O as SqlFragment, Oi as InitialQueryState, On as caseWhen, Or as SingletonInsertMany, Ot as TransformedQuery, P as TextValue, Pi as TableQueryState, Pn as ExpressionValue, Pr as UpdateValues, Pt as Relation, Q as MatchResult, Qi as BaseType, Qn as GroupValue, Qr as WhereValues, Qt as SchemaPartRelations, R as TypeTransform, Ri as ColumnOperators, Rn as GroupedRecord, Rr as FoundState, Rt as RelationKeys, S as QueryErrorCondition, Si as ScalarQuery, Sn as CaseValue, Sr as QueryContext, St as DbOf, T as ResultMode, Ti as EmptyRecord, Tn as TypedOperand, Tr as BoundSelectQuery, Tt as AnyTransformedQuery, U as isQueryError, Ui as Table, Un as SelectionFieldTypes, Ur as GroupTerms, Ut as TableContext, V as createStatement, Vi as KeyColumns, Vn as SelectedFieldTypes, Vr as RowLockOptions, Vt as SchemaContext, W as toDriverError, Wi as TableFactoryOptions, Wn as SelectionResult, Wr as KeyCheck, Wt as TableRelations, X as ColumnRefKey, Xi as RequiredRelationError, Xn as CountExpression, Xr as WhereCondition, Xt as Schema, Y as sql, Yi as defineTable, Yn as AggregateOptions, Yr as WhereCallback, Yt as AnySchema, Z as MatchCheck, Zi as AnyType, Zn as GroupAggregateExpression, Zr as WhereFilter, Zt as SchemaPart, _ as OneRow, _i as ComparisonSignature, _n as Helper, _r as SelectedRefs, _t as UntypedExpression, a as Database, aa as Column, ai as or, an as SelectionState, ar as every, at as TextConversionSignature, b as QueryError, bi as compare, bn as CaseBranch, br as orderBy, bt as Db, c as DerivableType, ca as ToColumn, ci as QueryResult, cn as AnyMutationQuery, cr as some, ct as TextTypeOperators, d as DriverErrorFields, da as NoOperators, di as EqualityOperator, dn as ConflictTarget, dr as OrderColumns, dt as orderingOperators, ea as TypeInput, ei as Condition, en as Tables, er as UnfilteredAggregateOptions, et as matches, f as DriverResult, fa as OperatorDefinitions, fi as EqualityOperators, fn as InitialInsertState, fr as OrderDirection, ft as AnyExpression, g as NotFoundError, ga as defineGenericOperator, gi as BooleanResult, gn as MutationQueryState, gr as Ordering, gt as TypedExpression, h as IsolationLevel, ha as OperatorSignature, hi as equalityOperators, hn as MutationQuery, hr as OrderTerms, ht as ExpressionOperators, i as ConnectionError, ia as AnyColumn, ii as not, in as RecordQueryState, ir as countDistinct, it as PatternSignature, j as SqlQueryState, ji as QueryValueType, jn as least, jr as ConflictUpdateSet, jt as MergeRelations, k as SqlQuery, ki as QueryState, kn as coalesce, kr as from, kt as TransformedQueryState, l as DerivableTypeWithParameters, la as BoundOperators, li as CountValueType, ln as ConflictActionRequired, lr as stringAgg, lt as textOperators, m as InitialSqlQueryState, ma as GenericOperatorImplementation, mi as InSignature, mn as InsertMutationState, mr as OrderTerm, mt as Expression, n as BaseDerivableType, na as TypeOutput, ni as Predicate, nn as AnyRecordQuery, nr as avg, nt as FALSE, o as DatabaseOptions, oa as ColumnAttributes, oi as ExistsValueType, on as AnyQuery, or as max, ot as TextLengthSignature, p as FieldTypes, pa as GenericOperator, pi as HasEquality, pn as InitialMutationState, pr as OrderKey, pt as BaseOperators, q as identifier, qi as ToColumns, qn as literal, qr as PrimaryKeyValues, qt as many, r as Connection, ra as defineType, ri as and, rn as RecordQuery, rr as count, rt as TRUE, s as DecodedFields, sa as KeyKind, si as FilteredRows, sn as SelectQueryKind, sr as min, st as TextOperators, t as AnySqlQuery, ta as TypeOperators, ti as ConditionOperand, tn as defineSchema, tr as UnfilteredStringAggOptions, tt as defineExpression, u as Driver, ua as MergeOperators, ui as CompileOptions, un as ConflictKeyRequired, ur as sum, ut as NumberTypeOperators, v as OneValueRows, vi as Operand, vn as HelperEffect, vr as asc, vt as AnyDb, w as ResultDecodeError, wi as ValuesQuery, wn as NullSkippingResult, wr as AnySelectQuery, wt as bindSchema, x as QueryErrorCode, xi as OperandUses, xn as CaseCondition, xr as ColumnRefs, xt as DbMutationState, y as PollLockOptions, yi as OperandValue, yn as defineHelper, yr as desc, yt as BindOptions, z as ValueRows, zi as ColumnShape, zn as MergeSelection, zr as GroupedState, zt as RelationKind } from "./index-Cv9QJ_v7.mjs";
2
+ export { type AggregateExpression, type AggregateOptions, type AnyColumn, type AnyDb, type AnyExpression, type AnyMutationQuery, type AnyQuery, type AnyRecordQuery, type AnySchema, type AnySelectQuery, type AnySqlQuery, type AnyTable, type AnyTableKeys, type AnyTransformedQuery, type AnyType, type BaseDerivableType, type BaseOperators, type BaseType, type BindOptions, type BooleanResult, type BoundOperators, type BoundSelectQuery, type CaseBranch, type CaseCondition, type CaseValue, type Column, type ColumnAttributes, type ColumnDefinitions, type ColumnFieldTypes, type ColumnOperators, type ColumnRefKey, type ColumnRefs, type ColumnShape, type ColumnValue, type ColumnValues, type CombinedCondition, type ComparisonSignature, type CompileOptions, type Condition, type ConditionOperand, type ConflictActionRequired, type ConflictKeyRequired, type ConflictTarget, type ConflictUpdateSet, type Connection, ConnectionError, type CountExpression, type CountValueType, type Database, type DatabaseOptions, type Db, type DbMutationState, type DbOf, type DbQueryState, type DeclaredRelations, type DecodedFields, type DerivableType, type DerivableTypeWithParameters, type Driver, type DriverErrorFields, type DriverResult, type EmptyRecord, type EqValue, type EqualityOperator, type EqualityOperators, type ExistsValueType, type Expression, type ExpressionInput, type ExpressionOperators, type ExpressionValue, FALSE, type FieldTypes, type FilteredRows, type FilteredStateRows, type FollowingOperand, type FoundKey, type FoundQueryState, type FoundState, type GenericOperator, type GenericOperatorImplementation, type GroupAggregateExpression, type GroupOperandValue, type GroupSelectionResult, type GroupTerm, type GroupTerms, type GroupValue, type Grouped, type GroupedField, type GroupedRecord, type GroupedState, type HasEquality, type Helper, type HelperEffect, type InSignature, type InitialInsertState, type InitialMutationState, type InitialQueryState, type InitialSqlQueryState, type InsertMutationState, type InsertValues, type IsolationLevel, type KeyCheck, type KeyColumns, type KeyKind, type Literal, type MatchCheck, type MatchResult, type MergeOperators, type MergeRelations, type MergeSelection, type MutationQuery, type MutationQueryState, type NestedQuery, type NoOperators, type NoRelations, type NotAColumn, type NotAKey, NotFoundError, type NotSynchronous, type NullSkippingResult, type NumberTypeOperators, type OneRelationKeys, type OneRow, type OneValueRows, type Operand, type OperandUses, type OperandValue, type OperatorDefinitions, type OperatorSignature, type OrderColumns, type OrderDirection, type OrderKey, type OrderTerm, type OrderTerms, type Ordering, type PatternSignature, type PollLockOptions, type Predicate, type PrimaryKeyColumn, type PrimaryKeyValues, type QueryContext, QueryError, type QueryErrorCode, type QueryErrorCondition, type QueryResult, type QueryState, type QueryStateOf, type QueryValueType, type RecordQuery, type RecordQueryState, type Relation, type RelationDeclaration, type RelationDeclarations, type RelationKey, type RelationKeys, type RelationKind, type RelationRefs, type RequiredMember, RequiredRelationError, type ResultByRows, ResultDecodeError, type ResultMode, type ResultOf, type ResultRows, type RowLockOptions, type ScalarQuery, type Schema, type SchemaContext, type SchemaPart, type SchemaPartRelations, type SchemaRelations, type SchemaTables, type SelectQuery, type SelectQueryKind, type SelectQueryState, type Selectable, type SelectedFieldTypes, type SelectedOperandType, type SelectedRefs, type Selection, type SelectionFieldTypes, type SelectionResult, type SelectionState, type SelectionUses, type SessionOptions, type SingletonInsertMany, type SingletonQueryState, type SqlFragment, type SqlQuery, type SqlQueryResult, type SqlQueryState, type SqlStatement, type SqlTemplate, type SqlValue, type StringAggOptions, type SynchronousResult, TRUE, type Table, type TableContext, type TableFactoryOptions, type TableKeys, type TableOptions, type TableQueryState, type TableRelations, type Tables, type TextConversionSignature, type TextLengthSignature, type TextOperators, type TextTypeOperators, type TextValue, type ToColumn, type ToColumns, TransactionConnectionError, type TransactionOptions, type TransformedQuery, type TransformedQueryState, type Type, type TypeInput, type TypeOperators, type TypeOptions, type TypeOutput, type TypeTransform, type TypedExpression, type TypedOperand, type TypedOperandInput, type TypedOperandOperators, type TypedScalarQuery, type UnfilteredAggregateOptions, type UnfilteredStringAggOptions, type UntypedExpression, type UpdateSet, type UpdateValues, type UpsertValues, type UsableRelation, type UsedRelation, type ValueRows, type ValuesQuery, type WhereCallback, type WhereCondition, type WhereFilter, type WhereValues, and, asc, avg, bindSchema, caseWhen, coalesce, compare, count, countDistinct, createDatabase, createStatement, createTableFactory, defineExpression, defineGenericOperator, defineHelper, defineSchema, defineTable, defineType, desc, equalityOperators, every, from, greatest, identifier, isOutcomeUnknown, isQueryError, least, literal, many, matches, max, min, not, one, or, orderBy, orderingOperators, param, some, sql, stringAgg, sum, textOperators, toDriverError, toSnakeCase };
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { A as valuesQueryNode, B as oneNode, C as defineType, D as equalityOperators, E as Column, F as falseNode, I as noFilters, L as noJoins, M as createList, N as createNode, P as createSelectNode, R as noOrder, S as getBooleanType, T as isType$1, V as trueNode, _ as toCastValueNode, b as toNode, c as compare, d as getType, f as isExpression, g as toBooleanExpression, h as rejectSqlQueryOperand, i as textOperators, j as defineGenericOperator, k as isEqualityCompatible, l as compareNodes, m as operandNode, n as text, p as isOperandSource, s as orderingOperators, u as createIsNullNode, v as toExpression, w as describeRejectedDbType, x as toValueNode, y as toFunctionOperandNode, z as noProjections } from "./text-ucmJCsCN.mjs";
2
2
  import { SqlFragment, SqlQuery, assertUntypedValue, bindParameter, createFieldDecodeError, createResultDecodeError, encodeParameter, isRecordKey, quoteIdentifier, renderFragment, startSqlQuery, takeOnlyRow, toMissingResult, toValueRows } from "kern-db/builder";
3
- import { ConnectionError, NotFoundError, NotFoundError as NotFoundError$1, QueryError, ResultDecodeError, ResultDecodeError as ResultDecodeError$1, TransactionConnectionError, createDatabase, createStatement, createStatement as createStatement$1, identifier as identifier$1, isQueryError, toDriverError } from "kern-db";
3
+ import { ConnectionError, NotFoundError, NotFoundError as NotFoundError$1, QueryError, ResultDecodeError, ResultDecodeError as ResultDecodeError$1, TransactionConnectionError, createDatabase, createStatement, createStatement as createStatement$1, identifier as identifier$1, isOutcomeUnknown, isQueryError, toDriverError } from "kern-db";
4
4
  import { types } from "node:util";
5
5
  // src/ast/boolean.ts
6
6
  /** Combines predicate nodes with `AND` or `OR`, flattening nested groups of the same kind. */
@@ -4193,4 +4193,4 @@ const wordStart = /(?<=[\p{Ll}\p{N}])(?=\p{Lu})|(?<=\p{Lu})(?=\p{Lu}(?!s$)\p{Ll}
4193
4193
  function toSnakeCase(key) {
4194
4194
  return key.replace(wordStart, "_").toLowerCase();
4195
4195
  }
4196
- export { ConnectionError, FALSE, NotFoundError, QueryError, RequiredRelationError, ResultDecodeError, TRUE, TransactionConnectionError, and, asc, avg, bindSchema, caseWhen, coalesce, compare, count, countDistinct, createDatabase, createStatement, createTableFactory, defineExpression, defineGenericOperator, defineHelper, defineSchema, defineTable, defineType, desc, equalityOperators, every, from, greatest, identifier, isQueryError, least, literal, many, matches, max, min, not, one, or, orderBy, orderingOperators, param, some, sql, stringAgg, sum, textOperators, toDriverError, toSnakeCase };
4196
+ export { ConnectionError, FALSE, NotFoundError, QueryError, RequiredRelationError, ResultDecodeError, TRUE, TransactionConnectionError, and, asc, avg, bindSchema, caseWhen, coalesce, compare, count, countDistinct, createDatabase, createStatement, createTableFactory, defineExpression, defineGenericOperator, defineHelper, defineSchema, defineTable, defineType, desc, equalityOperators, every, from, greatest, identifier, isOutcomeUnknown, isQueryError, least, literal, many, matches, max, min, not, one, or, orderBy, orderingOperators, param, some, sql, stringAgg, sum, textOperators, toDriverError, toSnakeCase };
package/dist/types.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { Qi as Type, Zi as BaseType, da as OperatorDefinitions, di as EqualityOperators, dt as AnyExpression, fa as GenericOperator, fi as HasEquality, gi as ComparisonSignature, ia as Column, la as MergeOperators, lt as NumberTypeOperators, ot as TextOperators, pi as InSignature, st as TextTypeOperators, ua as NoOperators, ui as EqualityOperator } from "./index-aiyU5HR5.mjs";
1
+ import { $i as Type, Qi as BaseType, _i as ComparisonSignature, aa as Column, ct as TextTypeOperators, da as NoOperators, di as EqualityOperator, fa as OperatorDefinitions, fi as EqualityOperators, ft as AnyExpression, mi as InSignature, pa as GenericOperator, pi as HasEquality, st as TextOperators, ua as MergeOperators, ut as NumberTypeOperators } from "./index-Cv9QJ_v7.mjs";
2
2
  /**
3
3
  * Creates a one-dimensional array type of `element` values.
4
4
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kern-orm",
3
- "version": "0.10.0",
3
+ "version": "0.12.0",
4
4
  "description": "Fully typed relational query builder for PostgreSQL with ambient transactions and single-query relation loading",
5
5
  "keywords": [
6
6
  "orm",
@@ -45,7 +45,7 @@
45
45
  "prepublishOnly": "bun run build"
46
46
  },
47
47
  "dependencies": {
48
- "kern-db": "^0.1.0"
48
+ "kern-db": "^0.3.0"
49
49
  },
50
50
  "devDependencies": {
51
51
  "@kern-orm/test-harness": "workspace:*",