pqb 0.26.3 → 0.26.4
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 +5 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -2549,7 +2549,7 @@ interface DefaultColumnTypes<SchemaConfig extends ColumnSchemaConfig> extends Ti
|
|
|
2549
2549
|
}): EmptyObject;
|
|
2550
2550
|
check(check: RawSQLBase): EmptyObject;
|
|
2551
2551
|
}
|
|
2552
|
-
declare const makeColumnTypes: <SchemaConfig extends ColumnSchemaConfig
|
|
2552
|
+
declare const makeColumnTypes: <SchemaConfig extends ColumnSchemaConfig<orchid_core.ColumnTypeBase<orchid_core.ColumnTypeSchemaArg, unknown, any, orchid_core.BaseOperators, unknown, unknown, any, unknown, any, orchid_core.ColumnDataBase>>>(schema: SchemaConfig) => DefaultColumnTypes<SchemaConfig>;
|
|
2553
2553
|
|
|
2554
2554
|
type NumberColumnData = BaseNumberData & {
|
|
2555
2555
|
identity: TableData.Identity;
|
|
@@ -2632,7 +2632,7 @@ declare class BigSerialColumn<Schema extends ColumnSchemaConfig> extends NumberA
|
|
|
2632
2632
|
toCode(t: string): Code;
|
|
2633
2633
|
}
|
|
2634
2634
|
|
|
2635
|
-
interface DefaultSchemaConfig extends ColumnSchemaConfig {
|
|
2635
|
+
interface DefaultSchemaConfig extends ColumnSchemaConfig<ColumnType> {
|
|
2636
2636
|
parse<T extends {
|
|
2637
2637
|
type: unknown;
|
|
2638
2638
|
}, Output>(this: T, fn: (input: T['type']) => Output): ParseColumn<T, unknown, Output>;
|
|
@@ -2946,7 +2946,7 @@ interface DbResult<ColumnTypes> extends Db<string, Record<string, never>, EmptyO
|
|
|
2946
2946
|
* })
|
|
2947
2947
|
* ```
|
|
2948
2948
|
*/
|
|
2949
|
-
declare const createDb: <SchemaConfig extends ColumnSchemaConfig = DefaultSchemaConfig, ColumnTypes = DefaultColumnTypes<SchemaConfig>>({ log, logger, snakeCase, nowSQL, schemaConfig, columnTypes: ctOrFn, ...options }: DbOptions<SchemaConfig, ColumnTypes>) => DbResult<ColumnTypes>;
|
|
2949
|
+
declare const createDb: <SchemaConfig extends ColumnSchemaConfig<ColumnTypeBase<orchid_core.ColumnTypeSchemaArg, unknown, any, orchid_core.BaseOperators, unknown, unknown, any, unknown, any, orchid_core.ColumnDataBase>> = DefaultSchemaConfig, ColumnTypes = DefaultColumnTypes<SchemaConfig>>({ log, logger, snakeCase, nowSQL, schemaConfig, columnTypes: ctOrFn, ...options }: DbOptions<SchemaConfig, ColumnTypes>) => DbResult<ColumnTypes>;
|
|
2950
2950
|
|
|
2951
2951
|
type ToSQLCtx = {
|
|
2952
2952
|
queryBuilder: Db;
|
|
@@ -5719,7 +5719,7 @@ declare class DynamicRawSQL<T extends QueryColumn, ColumnTypes = DefaultColumnTy
|
|
|
5719
5719
|
}
|
|
5720
5720
|
declare function raw<T = unknown>(...args: StaticSQLArgs): RawSQL<QueryColumn<T>>;
|
|
5721
5721
|
declare function raw<T = unknown>(...args: [DynamicSQLArg]): DynamicRawSQL<QueryColumn<T>>;
|
|
5722
|
-
declare const countSelect: RawSQL<QueryColumn<unknown, orchid_core.BaseOperators>, DefaultColumnTypes<ColumnSchemaConfig
|
|
5722
|
+
declare const countSelect: RawSQL<QueryColumn<unknown, orchid_core.BaseOperators>, DefaultColumnTypes<ColumnSchemaConfig<orchid_core.ColumnTypeBase<orchid_core.ColumnTypeSchemaArg, unknown, any, orchid_core.BaseOperators, unknown, unknown, any, unknown, any, orchid_core.ColumnDataBase>>>>[];
|
|
5723
5723
|
declare function sqlQueryArgsToExpression(args: SQLQueryArgs): RawSQL<QueryColumn>;
|
|
5724
5724
|
|
|
5725
5725
|
declare abstract class RawSqlMethods<ColumnTypes> {
|
|
@@ -6961,7 +6961,7 @@ declare abstract class ColumnType<Schema extends ColumnTypeSchemaArg = ColumnTyp
|
|
|
6961
6961
|
generated<T extends PickColumnData>(this: T, ...args: StaticSQLArgs): T;
|
|
6962
6962
|
}
|
|
6963
6963
|
|
|
6964
|
-
declare const simplifyColumnDefault: (value?: string) => RawSQL<orchid_core.QueryColumn<unknown, orchid_core.BaseOperators>, DefaultColumnTypes<orchid_core.ColumnSchemaConfig
|
|
6964
|
+
declare const simplifyColumnDefault: (value?: string) => RawSQL<orchid_core.QueryColumn<unknown, orchid_core.BaseOperators>, DefaultColumnTypes<orchid_core.ColumnSchemaConfig<ColumnTypeBase<orchid_core.ColumnTypeSchemaArg, unknown, any, orchid_core.BaseOperators, unknown, unknown, any, unknown, any, orchid_core.ColumnDataBase>>>> | undefined;
|
|
6965
6965
|
declare const instantiateColumn: (typeFn: () => ColumnTypeBase, params: ColumnFromDbParams) => ColumnTypeBase;
|
|
6966
6966
|
declare const getConstraintKind: (it: TableData.Constraint) => 'constraint' | 'foreignKey' | 'check';
|
|
6967
6967
|
|