pqb 0.10.2 → 0.10.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 +3 -3
- package/dist/index.js +290 -279
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +290 -279
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -604,7 +604,7 @@ declare class WhereQueryBuilder<Q extends QueryBase = QueryBase> extends Where i
|
|
|
604
604
|
baseQuery: Query;
|
|
605
605
|
withData: {};
|
|
606
606
|
internal: {};
|
|
607
|
-
constructor(q: QueryBase | string, shape:
|
|
607
|
+
constructor(q: QueryBase | string, { shape, joinedShapes }: Pick<QueryData, 'shape' | 'joinedShapes'>);
|
|
608
608
|
clone<T extends this>(this: T): T;
|
|
609
609
|
}
|
|
610
610
|
|
|
@@ -713,7 +713,7 @@ declare class OnQueryBuilder<S extends QueryBase = QueryBase, J extends QueryBas
|
|
|
713
713
|
selectable: Omit<S['selectable'], keyof S['shape']>;
|
|
714
714
|
}> implements QueryBase {
|
|
715
715
|
joinTo: QueryBase;
|
|
716
|
-
constructor(q: QueryBase | string,
|
|
716
|
+
constructor(q: QueryBase | string, data: Pick<QueryData, 'shape' | 'joinedShapes'>, joinTo: QueryBase);
|
|
717
717
|
on<T extends this>(this: T, ...args: OnArgs<T>): T;
|
|
718
718
|
_on<T extends this>(this: T, ...args: OnArgs<T>): T;
|
|
719
719
|
orOn<T extends this>(this: T, ...args: OnArgs<T>): T;
|
|
@@ -3467,7 +3467,7 @@ declare const primaryKeyToCode: (primaryKey: TableData.PrimaryKey, t: string) =>
|
|
|
3467
3467
|
declare const indexToCode: (index: TableData.Index, t: string) => Code[];
|
|
3468
3468
|
declare const foreignKeyToCode: (foreignKey: TableData.ForeignKey, t: string) => Code[];
|
|
3469
3469
|
declare const foreignKeyArgsToCode: (foreignKey: TableData.ForeignKey) => Code[];
|
|
3470
|
-
declare const columnDefaultArgumentToCode: (value: unknown) => string;
|
|
3470
|
+
declare const columnDefaultArgumentToCode: (t: string, value: unknown) => string;
|
|
3471
3471
|
declare const columnForeignKeysToCode: (foreignKeys: ForeignKey<string, string[]>[]) => Code[];
|
|
3472
3472
|
declare const foreignKeyArgumentToCode: (foreignKey: ForeignKey<string, string[]>) => Code[];
|
|
3473
3473
|
declare const columnIndexesToCode: (indexes: Exclude<ColumnData['indexes'], undefined>) => Code[];
|