pqb 0.18.16 → 0.18.17
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
|
@@ -493,14 +493,14 @@ type DbTableOptions = {
|
|
|
493
493
|
} & QueryLogOptions;
|
|
494
494
|
type QueryDefaultReturnData<Shape extends ColumnsShapeBase> = Pick<ColumnShapeOutput<Shape>, DefaultSelectColumns<Shape>[number]>[];
|
|
495
495
|
declare const anyShape: Record<string, ColumnType<unknown, BaseOperators, unknown, unknown, unknown>>;
|
|
496
|
-
interface Db<Table extends string | undefined = undefined, Shape extends ColumnsShape = Record<string, never>, Relations extends RelationsBase = EmptyObject, CT extends ColumnTypesBase = DefaultColumnTypes, Data = QueryDefaultReturnData<Shape>> extends DbBase<Adapter, Table, Shape, CT>, QueryMethods<CT> {
|
|
496
|
+
interface Db<Table extends string | undefined = undefined, Shape extends ColumnsShape = Record<string, never>, Relations extends RelationsBase = EmptyObject, CT extends ColumnTypesBase = DefaultColumnTypes, ShapeWithComputed extends ColumnsShape = Shape, Data = QueryDefaultReturnData<Shape>> extends DbBase<Adapter, Table, Shape, CT, ShapeWithComputed>, QueryMethods<CT> {
|
|
497
497
|
new (adapter: Adapter, queryBuilder: Db<Table, Shape, Relations, CT>, table?: Table, shape?: Shape, options?: DbTableOptions): this;
|
|
498
498
|
internal: Query['internal'];
|
|
499
499
|
queryBuilder: Db;
|
|
500
500
|
onQueryBuilder: Query['onQueryBuilder'];
|
|
501
501
|
primaryKeys: Query['primaryKeys'];
|
|
502
502
|
q: QueryData;
|
|
503
|
-
selectable: SelectableFromShape<
|
|
503
|
+
selectable: SelectableFromShape<ShapeWithComputed, Table>;
|
|
504
504
|
returnType: Query['returnType'];
|
|
505
505
|
then: QueryThen<Data>;
|
|
506
506
|
catch: QueryCatch<Data>;
|
|
@@ -516,13 +516,13 @@ interface Db<Table extends string | undefined = undefined, Shape extends Columns
|
|
|
516
516
|
}[keyof Shape], true>;
|
|
517
517
|
};
|
|
518
518
|
}
|
|
519
|
-
declare class Db<Table extends string | undefined = undefined, Shape extends ColumnsShape = Record<string, never>, Relations extends RelationsBase = EmptyObject, CT extends ColumnTypesBase = DefaultColumnTypes> implements Query {
|
|
519
|
+
declare class Db<Table extends string | undefined = undefined, Shape extends ColumnsShape = Record<string, never>, Relations extends RelationsBase = EmptyObject, CT extends ColumnTypesBase = DefaultColumnTypes, ShapeWithComputed extends ColumnsShape = Shape> implements Query {
|
|
520
520
|
adapter: Adapter;
|
|
521
521
|
queryBuilder: Db;
|
|
522
522
|
table: Table;
|
|
523
|
-
shape:
|
|
523
|
+
shape: ShapeWithComputed;
|
|
524
524
|
columnTypes: CT;
|
|
525
|
-
constructor(adapter: Adapter, queryBuilder: Db, table: Table, shape:
|
|
525
|
+
constructor(adapter: Adapter, queryBuilder: Db, table: Table, shape: ShapeWithComputed, columnTypes: CT, transactionStorage: AsyncLocalStorage<TransactionState>, options: DbTableOptions);
|
|
526
526
|
[inspect.custom](): string;
|
|
527
527
|
/**
|
|
528
528
|
* Use `query` to perform raw SQL queries.
|