@prisma/sqlcommenter 7.1.0-dev.36 → 7.1.0-dev.38
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/README.md +4 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -135,11 +135,15 @@ A function that receives query context and returns key-value pairs. Return an em
|
|
|
135
135
|
```typescript
|
|
136
136
|
interface SqlCommenterContext {
|
|
137
137
|
query: SqlCommenterQueryInfo
|
|
138
|
+
sql?: string
|
|
138
139
|
}
|
|
139
140
|
```
|
|
140
141
|
|
|
141
142
|
Context provided to plugins containing information about the query.
|
|
142
143
|
|
|
144
|
+
- **`query`**: Information about the Prisma query being executed. See [`SqlCommenterQueryInfo`](#sqlcommenterqueryinfo).
|
|
145
|
+
- **`sql`**: The SQL query being executed. It is only available when using driver adapters but not when using Accelerate.
|
|
146
|
+
|
|
143
147
|
### `SqlCommenterQueryInfo`
|
|
144
148
|
|
|
145
149
|
```typescript
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/sqlcommenter",
|
|
3
|
-
"version": "7.1.0-dev.
|
|
3
|
+
"version": "7.1.0-dev.38",
|
|
4
4
|
"description": "SQL commenter types for Prisma",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
],
|
|
31
31
|
"sideEffects": false,
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@prisma/json-protocol": "7.1.0-dev.
|
|
33
|
+
"@prisma/json-protocol": "7.1.0-dev.38"
|
|
34
34
|
},
|
|
35
35
|
"scripts": {
|
|
36
36
|
"dev": "DEV=true tsx helpers/build.ts",
|