coze-coding-dev-sdk 0.7.9 → 0.7.10
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.
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Database client module
|
|
3
3
|
*/
|
|
4
|
-
import {
|
|
4
|
+
import { NodePgDatabase } from 'drizzle-orm/node-postgres';
|
|
5
5
|
import pg from 'pg';
|
|
6
6
|
import { DatabasePoolConfig } from './models';
|
|
7
7
|
export declare function loadEnv(): void;
|
|
8
8
|
export declare function getDbUrl(): string;
|
|
9
9
|
export declare function getPool(config?: DatabasePoolConfig): Promise<pg.Pool>;
|
|
10
|
-
export declare function getDb<T extends Record<string, unknown> = Record<string, never>>(schema?: T): Promise<
|
|
10
|
+
export declare function getDb<T extends Record<string, unknown> = Record<string, never>>(schema?: T): Promise<NodePgDatabase<T>>;
|
|
11
11
|
export declare function getClient(): Promise<pg.PoolClient>;
|
|
12
12
|
export declare function closePool(): Promise<void>;
|
|
13
13
|
//# sourceMappingURL=client.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../src/database/client.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../src/database/client.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAW,cAAc,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,MAAM,IAAI,CAAC;AAEpB,OAAO,EAAkB,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAI9D,wBAAgB,OAAO,IAAI,IAAI,CAyD9B;AAED,wBAAgB,QAAQ,IAAI,MAAM,CAiBjC;AAsCD,wBAAsB,OAAO,CAAC,MAAM,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,EAAE,CAAC,IAAI,CAAC,CAM3E;AAED,wBAAsB,KAAK,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,EACnF,MAAM,CAAC,EAAE,CAAC,GACT,OAAO,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAM5B;AAED,wBAAsB,SAAS,IAAI,OAAO,CAAC,EAAE,CAAC,UAAU,CAAC,CAGxD;AAED,wBAAsB,SAAS,IAAI,OAAO,CAAC,IAAI,CAAC,CAM/C"}
|