@prisma/adapter-pg 7.6.0-dev.14 → 7.6.0-dev.15
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.mts +19 -0
- package/dist/index.d.ts +19 -0
- package/dist/index.js +1 -0
- package/dist/index.mjs +1 -0
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -56,13 +56,32 @@ declare class PrismaPgAdapter extends PgQueryable<StdClient> implements SqlDrive
|
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
declare type PrismaPgOptions = {
|
|
59
|
+
/** The name of the schema to use in generated queries */
|
|
59
60
|
schema?: string;
|
|
61
|
+
/**
|
|
62
|
+
* Whether to call `pool.end()` on an externally provided pool when the adapter is disposed.
|
|
63
|
+
* Defaults to `false`.
|
|
64
|
+
*/
|
|
60
65
|
disposeExternalPool?: boolean;
|
|
66
|
+
/** Callback attached to the pool's 'error' events. */
|
|
61
67
|
onPoolError?: (err: Error) => void;
|
|
68
|
+
/** Callback attached to connection's 'error' events. */
|
|
62
69
|
onConnectionError?: (err: Error) => void;
|
|
70
|
+
/**
|
|
71
|
+
* Optional parser for user-defined types. Called with the type's OID, the value to parse, and
|
|
72
|
+
* a queryable for performing additional queries if necessary.
|
|
73
|
+
*/
|
|
63
74
|
userDefinedTypeParser?: UserDefinedTypeParser;
|
|
75
|
+
/**
|
|
76
|
+
* Optional function to generate names for prepared statements. The generated strings are passed
|
|
77
|
+
* as the `name` property in the query to `pg.Client#query()`, which uses them to cache the
|
|
78
|
+
* underlying statements. If not provided, prepared statements are not cached.
|
|
79
|
+
*/
|
|
80
|
+
statementNameGenerator?: StatementNameGenerator;
|
|
64
81
|
};
|
|
65
82
|
|
|
83
|
+
declare type StatementNameGenerator = (query: SqlQuery) => string;
|
|
84
|
+
|
|
66
85
|
declare type StdClient = pg.Pool;
|
|
67
86
|
|
|
68
87
|
declare type TransactionClient = pg.PoolClient;
|
package/dist/index.d.ts
CHANGED
|
@@ -56,13 +56,32 @@ declare class PrismaPgAdapter extends PgQueryable<StdClient> implements SqlDrive
|
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
declare type PrismaPgOptions = {
|
|
59
|
+
/** The name of the schema to use in generated queries */
|
|
59
60
|
schema?: string;
|
|
61
|
+
/**
|
|
62
|
+
* Whether to call `pool.end()` on an externally provided pool when the adapter is disposed.
|
|
63
|
+
* Defaults to `false`.
|
|
64
|
+
*/
|
|
60
65
|
disposeExternalPool?: boolean;
|
|
66
|
+
/** Callback attached to the pool's 'error' events. */
|
|
61
67
|
onPoolError?: (err: Error) => void;
|
|
68
|
+
/** Callback attached to connection's 'error' events. */
|
|
62
69
|
onConnectionError?: (err: Error) => void;
|
|
70
|
+
/**
|
|
71
|
+
* Optional parser for user-defined types. Called with the type's OID, the value to parse, and
|
|
72
|
+
* a queryable for performing additional queries if necessary.
|
|
73
|
+
*/
|
|
63
74
|
userDefinedTypeParser?: UserDefinedTypeParser;
|
|
75
|
+
/**
|
|
76
|
+
* Optional function to generate names for prepared statements. The generated strings are passed
|
|
77
|
+
* as the `name` property in the query to `pg.Client#query()`, which uses them to cache the
|
|
78
|
+
* underlying statements. If not provided, prepared statements are not cached.
|
|
79
|
+
*/
|
|
80
|
+
statementNameGenerator?: StatementNameGenerator;
|
|
64
81
|
};
|
|
65
82
|
|
|
83
|
+
declare type StatementNameGenerator = (query: SqlQuery) => string;
|
|
84
|
+
|
|
66
85
|
declare type StdClient = pg.Pool;
|
|
67
86
|
|
|
68
87
|
declare type TransactionClient = pg.PoolClient;
|
package/dist/index.js
CHANGED
package/dist/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/adapter-pg",
|
|
3
|
-
"version": "7.6.0-dev.
|
|
3
|
+
"version": "7.6.0-dev.15",
|
|
4
4
|
"description": "Prisma's driver adapter for \"pg\"",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -34,10 +34,10 @@
|
|
|
34
34
|
"pg": "^8.16.3",
|
|
35
35
|
"postgres-array": "3.0.4",
|
|
36
36
|
"@types/pg": "^8.16.0",
|
|
37
|
-
"@prisma/driver-adapter-utils": "7.6.0-dev.
|
|
37
|
+
"@prisma/driver-adapter-utils": "7.6.0-dev.15"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@prisma/debug": "7.6.0-dev.
|
|
40
|
+
"@prisma/debug": "7.6.0-dev.15"
|
|
41
41
|
},
|
|
42
42
|
"scripts": {
|
|
43
43
|
"dev": "DEV=true tsx helpers/build.ts",
|