@squiz/db-lib 1.64.0 → 1.65.0
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +6 -0
- package/lib/AbstractRepository.d.ts +1 -1
- package/lib/index.js +246 -29
- package/lib/index.js.map +4 -4
- package/package.json +4 -4
- package/src/AbstractRepository.ts +5 -4
- package/tsconfig.tsbuildinfo +1 -1
package/CHANGELOG.md
CHANGED
@@ -38,7 +38,7 @@ export declare abstract class AbstractRepository<SHAPE extends object, DATA_CLAS
|
|
38
38
|
new (data?: Record<string, unknown>): DATA_CLASS;
|
39
39
|
});
|
40
40
|
protected getConnection(): Promise<PoolClient>;
|
41
|
-
create(value:
|
41
|
+
create(value: SHAPE, transactionClient?: PoolClient | null): Promise<SHAPE>;
|
42
42
|
update(where: Partial<SHAPE>, newValue: Exclude<Partial<SHAPE>, Record<string, never>>, transactionClient?: PoolClient | null): Promise<SHAPE[]>;
|
43
43
|
delete(where: Partial<SHAPE>, transactionClient?: PoolClient | null): Promise<number>;
|
44
44
|
protected createWhereStringFromPartialModel(values: Partial<SHAPE>, initialIndex?: number): string;
|