pqb 0.72.1 → 0.72.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +41 -12
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -0
- package/dist/index.mjs.map +1 -1
- package/dist/internal.d.ts +17 -5
- package/dist/internal.js +3 -0
- package/dist/internal.js.map +1 -1
- package/dist/internal.mjs +3 -0
- package/dist/internal.mjs.map +1 -1
- package/dist/public.d.ts +2 -2
- package/package.json +5 -4
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
2
2
|
import { inspect } from "node:util";
|
|
3
|
+
import tag from "tagged-tag";
|
|
3
4
|
type UnionToIntersection<U> = (U extends any ? (x: U) => void : never) extends ((x: infer I) => void) ? I : never;
|
|
4
5
|
type MaybeArray<T> = T | T[];
|
|
5
6
|
type MaybePromise<T> = T | Promise<T>;
|
|
@@ -629,6 +630,10 @@ declare class SqlRefExpression extends Expression {
|
|
|
629
630
|
makeSQL(): string;
|
|
630
631
|
}
|
|
631
632
|
interface ColumnSchemaGetterTableClass {
|
|
633
|
+
data?: {
|
|
634
|
+
table: string | undefined;
|
|
635
|
+
name: string | undefined;
|
|
636
|
+
};
|
|
632
637
|
prototype: {
|
|
633
638
|
columns: {
|
|
634
639
|
shape: Column.Shape.ForValidation;
|
|
@@ -1764,9 +1769,8 @@ declare class UUIDColumn<Schema extends ColumnSchemaConfig> extends Column {
|
|
|
1764
1769
|
T & {
|
|
1765
1770
|
data: {
|
|
1766
1771
|
primaryKey: Name;
|
|
1767
|
-
default: true;
|
|
1768
1772
|
};
|
|
1769
|
-
};
|
|
1773
|
+
} & Column.Data.Default;
|
|
1770
1774
|
toCode(ctx: ColumnToCodeCtx, key: string): Code;
|
|
1771
1775
|
}
|
|
1772
1776
|
declare class XMLColumn<Schema extends ColumnSchemaConfig> extends Column {
|
|
@@ -3856,7 +3860,7 @@ type WhereArg<T extends PickQuerySelectableRelations> = { [K in keyof T['__selec
|
|
|
3856
3860
|
* db.table.where((q) => q.relation.count().equals(10))
|
|
3857
3861
|
* ```
|
|
3858
3862
|
*/
|
|
3859
|
-
type WhereQueryBuilder<T extends PickQueryRelations> = EmptyObject extends T['relations'] ? { [K in keyof T]: K extends keyof Where | keyof QueryExpressions | 'table' | 'get' | 'columnTypes' | '__selectable' | 'relations' | 'useHelper' | 'modify' | 'result' | 'returnType' | 'withData' | 'windows' | 'then' ? T[K] : never; } : { [K in keyof T['relations'] | keyof T]: K extends keyof T['relations'] ? T['relations'][K]['query'] : K extends keyof T & (keyof Where | keyof QueryExpressions | 'table' | 'get' | 'columnTypes' | '__selectable' | 'relations' | 'useHelper' | 'modify' | 'result' | 'returnType' | 'withData' | 'windows' | 'then') ? T[K] : never; };
|
|
3863
|
+
type WhereQueryBuilder<T extends PickQueryRelations> = EmptyObject extends T['relations'] ? { [K in keyof T]: K extends keyof Where | keyof QueryExpressions | 'table' | 'get' | 'columnTypes' | '__selectable' | 'relations' | 'useHelper' | 'modify' | 'result' | 'returnType' | 'withData' | 'windows' | 'then' | 'none' ? T[K] : never; } : { [K in keyof T['relations'] | keyof T]: K extends keyof T['relations'] ? T['relations'][K]['query'] : K extends keyof T & (keyof Where | keyof QueryExpressions | 'table' | 'get' | 'columnTypes' | '__selectable' | 'relations' | 'useHelper' | 'modify' | 'result' | 'returnType' | 'withData' | 'windows' | 'then' | 'none') ? T[K] : never; };
|
|
3860
3864
|
type WhereArgs<T extends PickQuerySelectableRelations> = WhereArg<T>[];
|
|
3861
3865
|
type WhereNotArgs<T extends PickQuerySelectableRelations> = [WhereArg<T>];
|
|
3862
3866
|
type WhereInColumn<T extends PickQuerySelectableRelations> = keyof T['__selectable'] | [keyof T['__selectable'], ...(keyof T['__selectable'])[]];
|
|
@@ -4975,6 +4979,18 @@ interface QueryInternal<SinglePrimaryKey = any, UniqueColumns = any, UniqueColum
|
|
|
4975
4979
|
*/
|
|
4976
4980
|
nestedCreateBatchMax: number;
|
|
4977
4981
|
}
|
|
4982
|
+
interface Brand<Token extends PropertyKey> {
|
|
4983
|
+
readonly [tag]: { [K in Token]: never; };
|
|
4984
|
+
}
|
|
4985
|
+
type Branded<Type, Token extends PropertyKey> = Type & Brand<Token>;
|
|
4986
|
+
type BrandColumnKey = '__inputType' | '__outputType' | '__queryType';
|
|
4987
|
+
type BrandToken<Token extends PropertyKey, ColumnToken extends true | string> = string extends ColumnToken ? Token : ColumnToken extends string ? ColumnToken : Token;
|
|
4988
|
+
type BrandColumn<Column, Token extends PropertyKey> = Column extends {
|
|
4989
|
+
data: {
|
|
4990
|
+
branded: infer ColumnToken extends true | string;
|
|
4991
|
+
};
|
|
4992
|
+
} ? { [K in keyof Column]: K extends BrandColumnKey ? Branded<Column[K], BrandToken<Token, ColumnToken>> : Column[K]; } : Column;
|
|
4993
|
+
type BrandColumnsShape<Shape, Table extends string | undefined> = { [K in keyof Shape]: BrandColumn<Shape[K], `${Table}.${K & string}`>; };
|
|
4978
4994
|
type ShapeHasPrimaryKeys<Shape extends Column.QueryColumnsInit> = { [K in keyof Shape]: Shape[K]['data']['primaryKey'] extends string ? K : never; }[keyof Shape];
|
|
4979
4995
|
type TablePrimaryKeys<Shape extends Column.QueryColumnsInit> = ShapeHasPrimaryKeys<Shape> extends never ? never : { [K in ShapeHasPrimaryKeys<Shape>]: UniqueQueryTypeOrExpression<Shape[K]['__queryType']>; };
|
|
4980
4996
|
type ShapeUniqueColumns<Shape extends Column.QueryColumnsInit> = { [K in keyof Shape]: Shape[K]['data']['unique'] extends string ? { [C in K]: UniqueQueryTypeOrExpression<Shape[K]['__queryType']>; } : never; }[keyof Shape];
|
|
@@ -5077,7 +5093,7 @@ declare class Db<Table extends string | undefined = undefined, Shape extends Col
|
|
|
5077
5093
|
q: QueryData;
|
|
5078
5094
|
__isQuery: true;
|
|
5079
5095
|
__as: Table & string;
|
|
5080
|
-
__selectable: SelectableFromShape<ComputedColumnsFromOptions<Shape, Options>, Table>;
|
|
5096
|
+
__selectable: SelectableFromShape<ComputedColumnsFromOptions<Table, Shape, Options>, Table>;
|
|
5081
5097
|
__readOnly: ReadOnly;
|
|
5082
5098
|
__materialized: Options extends {
|
|
5083
5099
|
materialized: true;
|
|
@@ -5103,8 +5119,8 @@ declare class Db<Table extends string | undefined = undefined, Shape extends Col
|
|
|
5103
5119
|
error: new (message: string, length: number, name: QueryErrorName) => QueryError<this>;
|
|
5104
5120
|
internal: QueryInternal<TablePrimaryKeys<Shape> extends never ? never : { [K in keyof TablePrimaryKeys<Shape>]: (keyof TablePrimaryKeys<Shape> extends K ? never : keyof TablePrimaryKeys<Shape>) extends never ? TablePrimaryKeys<Shape>[K] : never; }[keyof TablePrimaryKeys<Shape>], TablePrimaryKeys<Shape> | ShapeUniqueColumns<Shape> | TableDataItemsUniqueColumns<Shape, Data>, { [K in keyof Shape]: Shape[K]['data']['unique'] extends string ? K : never; }[keyof Shape] | keyof TablePrimaryKeys<Shape>, TableDataItemsUniqueColumnTuples<Shape, Data>, UniqueConstraints<Shape> | TableDataItemsUniqueConstraints<Data>>;
|
|
5105
5121
|
catch: QueryCatch;
|
|
5106
|
-
shape: ComputedColumnsFromOptions<Shape, Options>;
|
|
5107
|
-
constructor(adapterNotInTransaction: Adapter, qb: QueryBuilder, table: Table | undefined, shape: ComputedColumnsFromOptions<Shape, Options>, columnTypes: ColumnTypes, asyncStorage: AsyncLocalStorage<AsyncState>, options: DbTableOptions<ColumnTypes, Table, ComputedColumnsFromOptions<Shape, Options>>, tableData?: TableData, viewData?: QueryInternal['viewData']);
|
|
5122
|
+
shape: ComputedColumnsFromOptions<Table, Shape, Options>;
|
|
5123
|
+
constructor(adapterNotInTransaction: Adapter, qb: QueryBuilder, table: Table | undefined, shape: ComputedColumnsFromOptions<Table, Shape, Options>, columnTypes: ColumnTypes, asyncStorage: AsyncLocalStorage<AsyncState>, options: DbTableOptions<ColumnTypes, Table, ComputedColumnsFromOptions<Table, Shape, Options>>, tableData?: TableData, viewData?: QueryInternal['viewData']);
|
|
5108
5124
|
/**
|
|
5109
5125
|
* When in transaction, returns a db adapter object for the transaction,
|
|
5110
5126
|
* returns a default adapter object otherwise.
|
|
@@ -5173,7 +5189,7 @@ declare class Db<Table extends string | undefined = undefined, Shape extends Col
|
|
|
5173
5189
|
queryArrays<R extends any[] = any[]>(...args: SQLQueryArgs): Promise<QueryResult<R>>;
|
|
5174
5190
|
}
|
|
5175
5191
|
interface DbTableConstructor<ColumnTypes> {
|
|
5176
|
-
<Table extends string, Shape extends Column.QueryColumnsInit, Data extends MaybeArray<TableDataItem>, Options extends DbTableOptions<ColumnTypes, Table, Shape> | undefined>(table: Table, shape?: ((t: ColumnTypes) => Shape) | Shape, tableData?: TableDataFn<Shape, Data>, options?: Options): Db<Table, Shape, Data, ColumnTypes, Options extends {
|
|
5192
|
+
<Table extends string, Shape extends Column.QueryColumnsInit, Data extends MaybeArray<TableDataItem>, Options extends DbTableOptions<ColumnTypes, Table, Shape> | undefined>(table: Table, shape?: ((t: ColumnTypes) => Shape) | Shape, tableData?: TableDataFn<Shape, Data>, options?: Options): Db<Table, BrandColumnsShape<Shape, Table>, Data, ColumnTypes, Options extends {
|
|
5177
5193
|
readOnly: true;
|
|
5178
5194
|
} ? true : undefined, Options>;
|
|
5179
5195
|
}
|
|
@@ -5193,7 +5209,7 @@ type MapTableScopesOption<T> = T extends {
|
|
|
5193
5209
|
} ? {
|
|
5194
5210
|
nonDeleted: unknown;
|
|
5195
5211
|
} : EmptyObject;
|
|
5196
|
-
interface DbResult<ColumnTypes> extends Db<undefined, EmptyObject, never, ColumnTypes, never
|
|
5212
|
+
interface DbResult<ColumnTypes> extends Db<undefined, EmptyObject, never, ColumnTypes, never>, DbTableConstructor<ColumnTypes> {
|
|
5197
5213
|
adapterNotInTransaction: Adapter;
|
|
5198
5214
|
adapter: Adapter;
|
|
5199
5215
|
close: Adapter['close'];
|
|
@@ -6724,6 +6740,11 @@ declare namespace Column {
|
|
|
6724
6740
|
};
|
|
6725
6741
|
}
|
|
6726
6742
|
export type Generated<T extends Column.Pick.Data> = { [K in keyof T]: K extends 'data' ? { [K in keyof T['data']]: K extends 'default' ? true : T['data'][K]; } : K extends '__inputType' ? never : T[K]; };
|
|
6743
|
+
export interface Branded<Token extends true | string = true> {
|
|
6744
|
+
data: {
|
|
6745
|
+
branded: Token;
|
|
6746
|
+
};
|
|
6747
|
+
}
|
|
6727
6748
|
export namespace Pick {
|
|
6728
6749
|
interface Data {
|
|
6729
6750
|
data: Column.Data;
|
|
@@ -6882,6 +6903,7 @@ declare namespace Column {
|
|
|
6882
6903
|
name?: string;
|
|
6883
6904
|
readOnly?: boolean;
|
|
6884
6905
|
appReadOnly: true | undefined;
|
|
6906
|
+
branded: true | string | undefined;
|
|
6885
6907
|
}
|
|
6886
6908
|
export interface Data extends ColumnDataComputedProp {
|
|
6887
6909
|
key: string;
|
|
@@ -6930,6 +6952,7 @@ declare namespace Column {
|
|
|
6930
6952
|
readonly?: boolean;
|
|
6931
6953
|
valueToArray?: boolean;
|
|
6932
6954
|
skipValueToArray?: boolean;
|
|
6955
|
+
branded: true | string | undefined;
|
|
6933
6956
|
}
|
|
6934
6957
|
export namespace Data {
|
|
6935
6958
|
interface Default {
|
|
@@ -7285,6 +7308,7 @@ declare abstract class Column {
|
|
|
7285
7308
|
* @deprecated use `type`, `inputType`, `outputType`, `queryType` instead
|
|
7286
7309
|
*/
|
|
7287
7310
|
narrowAllTypes: this['__schema']['narrowAllTypes'];
|
|
7311
|
+
brand<T, Token extends true | string = true>(this: T, _token?: Token): T & Column.Branded<Token>;
|
|
7288
7312
|
input<T extends {
|
|
7289
7313
|
inputSchema: unknown;
|
|
7290
7314
|
}, InputSchema extends this['__schema']['__schemaType']>(this: T, fn: (schema: T['inputSchema']) => InputSchema): { [K in keyof T]: K extends 'inputSchema' ? InputSchema : T[K]; };
|
|
@@ -8813,13 +8837,18 @@ declare const getColumnBaseType: (column: Column.Pick.Data, domainsMap: DbStruct
|
|
|
8813
8837
|
interface ColumnDataComputedProp extends ColumnDataSelectSqlProp {
|
|
8814
8838
|
computed?: Expression;
|
|
8815
8839
|
}
|
|
8816
|
-
type ComputedColumnsFromOptions<Shape, Options> = Options extends {
|
|
8840
|
+
type ComputedColumnsFromOptions<Table extends string | undefined, Shape, Options> = Options extends {
|
|
8817
8841
|
computed: (...args: any) => infer R;
|
|
8818
|
-
} ? { [K in (keyof Shape | keyof R) & string]: K extends keyof Shape ? Shape[K] : K extends keyof R ? R[K]
|
|
8842
|
+
} ? { [K in (keyof Shape | keyof R) & string]: K extends keyof Shape ? Shape[K] : K extends keyof R ? BrandColumn<ComputedColumnValue<R[K]>, `${Table}.${K & string}`> : never; } : Shape;
|
|
8843
|
+
type ComputedColumnValue<T> = T extends {
|
|
8844
|
+
result: {
|
|
8845
|
+
value: infer Value extends Column.Pick.QueryColumn;
|
|
8846
|
+
};
|
|
8847
|
+
} | (() => {
|
|
8819
8848
|
result: {
|
|
8820
8849
|
value: infer Value extends Column.Pick.QueryColumn;
|
|
8821
8850
|
};
|
|
8822
|
-
}) ? Value : never
|
|
8851
|
+
}) ? Value : never;
|
|
8823
8852
|
interface ComputedOptionsConfig {
|
|
8824
8853
|
[K: string]: QueryOrExpression<unknown> | ReturnsQueryOrExpression<unknown>;
|
|
8825
8854
|
}
|
|
@@ -11147,4 +11176,4 @@ declare const testTransaction: {
|
|
|
11147
11176
|
*/
|
|
11148
11177
|
close(arg: Arg$1): Promise<void>;
|
|
11149
11178
|
};
|
|
11150
|
-
export { type Adapter, AdapterClass, type AdapterConfigBase, type AdapterParams, type AdapterSchemaConfigOptions, type AfterCommitStandaloneHook, type AfterHook, ArrayColumn, type ArrayColumnValue, type ArrayData, type AsyncState, type BaseNumberData, BigIntColumn, BigSerialColumn, BitColumn, BitVaryingColumn, BooleanColumn, BoxColumn, ByteaColumn, CidrColumn, CircleColumn, CitextColumn, type Code, type Codes, Column, type ColumnFromDbParams, type ColumnRefExpression, type ColumnSchemaConfig, type ColumnSchemaGetterColumns, type ColumnSchemaGetterTableClass, type ColumnToCodeCtx, type ColumnTypeSchemaArg, type ColumnsByType, type ColumnsShape, type ComputedColumnsFromOptions, type ComputedOptionsConfig, type ComputedOptionsFactory, type CreateCtx, type CreateData, type CreateManyMethodsNames, type CreateMethodsNames, type CreateSelf, CustomTypeColumn, DateBaseColumn, DateColumn, type DateColumnData, type DateColumnInput, DateTimeBaseClass, DateTimeTzBaseClass, Db, type DbDomainArg, type DbExtension, type DbOptions, type DbResult, type DbSharedOptions, type DbSqlMethod, type DbStructureDomainsMap, type DbTableOptionScopes, type DbTableOptions, DecimalColumn, type DecimalColumnData, type DefaultColumnTypes, type DefaultPrivileges, type DefaultSchemaConfig, type DeleteMethodsNames, DomainColumn, DoublePrecisionColumn, type DriverAdapter, DynamicRawSQL, type EmptyObject, type EmptyTuple, EnumColumn, Expression, type ExpressionData, type FromArg, type FromResult, type GeneratorIgnore, type Grant, type HookSelectValue, InetColumn, IntegerBaseColumn, IntegerColumn, IntervalColumn, type IsQuery, type IsolationLevel, JSONColumn, JSONTextColumn, type JoinedShapes, LimitedTextBaseColumn, LineColumn, LsegColumn, MacAddr8Column, MacAddrColumn, type MapTableScopesOption, type MaybeArray, type MaybePromise, type MergeQuery, MoneyColumn, type NoPrimaryKeyOption, type NonUniqDataItem, NotFoundError, NumberAsStringBaseColumn, NumberBaseColumn, type NumberColumnData, Operators, type OperatorsArray, type OperatorsDate, type OperatorsJson, type OperatorsNumber, type OperatorsOrdinalText, type OperatorsText, OrchidOrmInternalError, type Ord, PathColumn, type PickQueryInputType, type PickQueryInternal, type PickQueryQ, type PickQueryRelations, type PickQuerySelectableRelations, type PickQueryShape, PointColumn, PolygonColumn, PostgisGeographyPointColumn, type Query, type QueryAfterHook, type QueryBeforeActionHook, type QueryBeforeHook, type QueryData, QueryError, type QueryHasWhere, type QueryHelperResult, QueryHookUtils, QueryHooks, type QueryInternal, type QueryLogObject, type QueryLogOptions, type QueryLogger, type QueryManyTake, type QueryManyTakeOptional, type QueryOrExpression, type QueryResult, type QueryResultRow, type QueryReturnType, type QuerySchema, type QueryScopes, RawSql, type RawSqlBase, RealColumn, type RecordKeyTrue, type RecordOptionalString, type RecordString, type RecordStringOrNumber, type RecordUnknown, type RefreshMaterializedViewOptions, type RelationConfigBase, type RelationJoinQuery, type RelationsBase, type Rls, type RlsPolicy, type SchemaConfigFnWithOptions, type SearchWeight, type SelectSqlColumn, type SelectableFromShape, SerialColumn, type SerialColumnData, type ShallowSimplify, type ShapeUniqueColumns, type SingleSql, type SingleSqlItem, SmallIntColumn, SmallSerialColumn, type Sql, type SqlFn, type SqlSessionState, type StaticSQLArgs, type StorageOptions, StringColumn, type StringData, type TableData, type TableDataFn, type TableDataInput, type TableDataItem, type TableDataItemsUniqueColumnTuples, type TableDataItemsUniqueColumns, type TableDataItemsUniqueConstraints, type TableDataMethods, type TemplateLiteralArgs, TextBaseColumn, TextColumn, TimeColumn, TimestampColumn, TimestampTZColumn, type Timestamps, type ToSQLCtx, type ToSqlValues, type TransactionAdapter, TransactionAdapterClass, type TransactionOptions, TsQueryColumn, TsVectorColumn, UUIDColumn, type UniqueConstraints, type UniqueTableDataItem, UnknownColumn, type UpdateData, type UpsertData, type UpsertThis, VarCharColumn, VirtualColumn, type WhereArg, XMLColumn, _appendQuery, _appendQueryOnUpsertCreate, _clone, _createDbSqlMethod, _hookSelectColumns, _initQueryBuilder, _onUpsertUpdate, _orCreate, _prependWith, _prependWithOnUpsertCreate, _queryCreate, _queryCreateMany, _queryCreateManyFrom, _queryDefaults, _queryDelete, _queryFindBy, _queryFindByOptional, _queryHookAfterCreate, _queryHookAfterUpdate, _queryInsert, _queryInsertMany, _queryJoinOn, _queryRows, _querySelect, _queryTake, _queryTakeOptional, _queryUpdate, _queryUpdateOrThrow, _queryUpsert, _queryWhere, _queryWhereExists, _queryWhereIn, addCode, addTopCte, addTopCteSql, applyMixins, assignDbDataToColumn, backtickQuote, cloneQueryBaseUnscoped, codeToString, colors, columnsShapeToCode, constraintInnerToCode, constraintToCode, consumeColumnName, copyTableData, createDbWithAdapter, deepCompare, defaultSchemaConfig, emptyArray, emptyObject, escapeForMigration, escapeString, excludeInnerToCode, excludeToCode, exhaustive, getCallerFilePath, getClonedQueryData, getColumnBaseType, getColumnInfo, getColumnTypes, getDateAsDateFn, getDateAsNumberFn, getDriverErrorCode, getFreeAlias, getFreeSetAlias, getImportPath, getPrimaryKeys, getQueryAs, getQuerySchema, getShapeFromSelect, getSqlText, getStackTrace, getSupportedDefaultPrivileges, indexInnerToCode, indexToCode, internalSchemaConfig, isExpression, isQueryReturnsAll, isRawSQL, logColors, logParamToLogObject, makeColumnNullable, makeColumnTypes, makeColumnsByType, makeConnectRetryConfig, noop, objectHasValues, omit, parseTableData, parseTableDataInput, pathToLog, pick, pluralize, prepareSubQueryForSql, primaryKeyInnerToCode, pushQueryOnForOuter, pushQueryValueImmutable, pushTableDataCode, queryToSql, quoteIdentifier, quoteObjectKey, quoteTableWithSchema, raw, rawSqlToCode, rawSqlToSql, referencesArgsToCode, refreshMaterializedView, returnArg, setColumnData, setColumnEncode, setColumnParse, setColumnParseNull, setCurrentColumnName, setDataValue, setDefaultLanguage, setFreeAlias, setQueryObjectValueImmutable, singleQuote, sqlToRawSql, tableDataMethods, testTransaction, toArray, toCamelCase, toPascalCase, toSnakeCase, wrapAdapterFnWithConnectRetry };
|
|
11179
|
+
export { type Adapter, AdapterClass, type AdapterConfigBase, type AdapterParams, type AdapterSchemaConfigOptions, type AfterCommitStandaloneHook, type AfterHook, ArrayColumn, type ArrayColumnValue, type ArrayData, type AsyncState, type BaseNumberData, BigIntColumn, BigSerialColumn, BitColumn, BitVaryingColumn, BooleanColumn, BoxColumn, type BrandColumn, type BrandColumnsShape, type Branded, ByteaColumn, CidrColumn, CircleColumn, CitextColumn, type Code, type Codes, Column, type ColumnFromDbParams, type ColumnRefExpression, type ColumnSchemaConfig, type ColumnSchemaGetterColumns, type ColumnSchemaGetterTableClass, type ColumnToCodeCtx, type ColumnTypeSchemaArg, type ColumnsByType, type ColumnsShape, type ComputedColumnsFromOptions, type ComputedOptionsConfig, type ComputedOptionsFactory, type CreateCtx, type CreateData, type CreateManyMethodsNames, type CreateMethodsNames, type CreateSelf, CustomTypeColumn, DateBaseColumn, DateColumn, type DateColumnData, type DateColumnInput, DateTimeBaseClass, DateTimeTzBaseClass, Db, type DbDomainArg, type DbExtension, type DbOptions, type DbResult, type DbSharedOptions, type DbSqlMethod, type DbStructureDomainsMap, type DbTableOptionScopes, type DbTableOptions, DecimalColumn, type DecimalColumnData, type DefaultColumnTypes, type DefaultPrivileges, type DefaultSchemaConfig, type DeleteMethodsNames, DomainColumn, DoublePrecisionColumn, type DriverAdapter, DynamicRawSQL, type EmptyObject, type EmptyTuple, EnumColumn, Expression, type ExpressionData, type FromArg, type FromResult, type GeneratorIgnore, type Grant, type HookSelectValue, InetColumn, IntegerBaseColumn, IntegerColumn, IntervalColumn, type IsQuery, type IsolationLevel, JSONColumn, JSONTextColumn, type JoinedShapes, LimitedTextBaseColumn, LineColumn, LsegColumn, MacAddr8Column, MacAddrColumn, type MapTableScopesOption, type MaybeArray, type MaybePromise, type MergeQuery, MoneyColumn, type NoPrimaryKeyOption, type NonUniqDataItem, NotFoundError, NumberAsStringBaseColumn, NumberBaseColumn, type NumberColumnData, Operators, type OperatorsArray, type OperatorsDate, type OperatorsJson, type OperatorsNumber, type OperatorsOrdinalText, type OperatorsText, OrchidOrmInternalError, type Ord, PathColumn, type PickQueryInputType, type PickQueryInternal, type PickQueryQ, type PickQueryRelations, type PickQuerySelectableRelations, type PickQueryShape, PointColumn, PolygonColumn, PostgisGeographyPointColumn, type Query, type QueryAfterHook, type QueryBeforeActionHook, type QueryBeforeHook, type QueryData, QueryError, type QueryHasWhere, type QueryHelperResult, QueryHookUtils, QueryHooks, type QueryInternal, type QueryLogObject, type QueryLogOptions, type QueryLogger, type QueryManyTake, type QueryManyTakeOptional, type QueryOrExpression, type QueryResult, type QueryResultRow, type QueryReturnType, type QuerySchema, type QueryScopes, RawSql, type RawSqlBase, RealColumn, type RecordKeyTrue, type RecordOptionalString, type RecordString, type RecordStringOrNumber, type RecordUnknown, type RefreshMaterializedViewOptions, type RelationConfigBase, type RelationJoinQuery, type RelationsBase, type Rls, type RlsPolicy, type SchemaConfigFnWithOptions, type SearchWeight, type SelectSqlColumn, type SelectableFromShape, SerialColumn, type SerialColumnData, type ShallowSimplify, type ShapeUniqueColumns, type SingleSql, type SingleSqlItem, SmallIntColumn, SmallSerialColumn, type Sql, type SqlFn, type SqlSessionState, type StaticSQLArgs, type StorageOptions, StringColumn, type StringData, type TableData, type TableDataFn, type TableDataInput, type TableDataItem, type TableDataItemsUniqueColumnTuples, type TableDataItemsUniqueColumns, type TableDataItemsUniqueConstraints, type TableDataMethods, type TemplateLiteralArgs, TextBaseColumn, TextColumn, TimeColumn, TimestampColumn, TimestampTZColumn, type Timestamps, type ToSQLCtx, type ToSqlValues, type TransactionAdapter, TransactionAdapterClass, type TransactionOptions, TsQueryColumn, TsVectorColumn, UUIDColumn, type UniqueConstraints, type UniqueTableDataItem, UnknownColumn, type UpdateData, type UpsertData, type UpsertThis, VarCharColumn, VirtualColumn, type WhereArg, XMLColumn, _appendQuery, _appendQueryOnUpsertCreate, _clone, _createDbSqlMethod, _hookSelectColumns, _initQueryBuilder, _onUpsertUpdate, _orCreate, _prependWith, _prependWithOnUpsertCreate, _queryCreate, _queryCreateMany, _queryCreateManyFrom, _queryDefaults, _queryDelete, _queryFindBy, _queryFindByOptional, _queryHookAfterCreate, _queryHookAfterUpdate, _queryInsert, _queryInsertMany, _queryJoinOn, _queryRows, _querySelect, _queryTake, _queryTakeOptional, _queryUpdate, _queryUpdateOrThrow, _queryUpsert, _queryWhere, _queryWhereExists, _queryWhereIn, addCode, addTopCte, addTopCteSql, applyMixins, assignDbDataToColumn, backtickQuote, cloneQueryBaseUnscoped, codeToString, colors, columnsShapeToCode, constraintInnerToCode, constraintToCode, consumeColumnName, copyTableData, createDbWithAdapter, deepCompare, defaultSchemaConfig, emptyArray, emptyObject, escapeForMigration, escapeString, excludeInnerToCode, excludeToCode, exhaustive, getCallerFilePath, getClonedQueryData, getColumnBaseType, getColumnInfo, getColumnTypes, getDateAsDateFn, getDateAsNumberFn, getDriverErrorCode, getFreeAlias, getFreeSetAlias, getImportPath, getPrimaryKeys, getQueryAs, getQuerySchema, getShapeFromSelect, getSqlText, getStackTrace, getSupportedDefaultPrivileges, indexInnerToCode, indexToCode, internalSchemaConfig, isExpression, isQueryReturnsAll, isRawSQL, logColors, logParamToLogObject, makeColumnNullable, makeColumnTypes, makeColumnsByType, makeConnectRetryConfig, noop, objectHasValues, omit, parseTableData, parseTableDataInput, pathToLog, pick, pluralize, prepareSubQueryForSql, primaryKeyInnerToCode, pushQueryOnForOuter, pushQueryValueImmutable, pushTableDataCode, queryToSql, quoteIdentifier, quoteObjectKey, quoteTableWithSchema, raw, rawSqlToCode, rawSqlToSql, referencesArgsToCode, refreshMaterializedView, returnArg, setColumnData, setColumnEncode, setColumnParse, setColumnParseNull, setCurrentColumnName, setDataValue, setDefaultLanguage, setFreeAlias, setQueryObjectValueImmutable, singleQuote, sqlToRawSql, tableDataMethods, testTransaction, toArray, toCamelCase, toPascalCase, toSnakeCase, wrapAdapterFnWithConnectRetry };
|
package/dist/index.js
CHANGED