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 {
|
|
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
|
|
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 {
|
|
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.
|
|
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.
|
|
48
|
+
"kern-db": "^0.3.0"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@kern-orm/test-harness": "workspace:*",
|