@prisma/adapter-mariadb 7.5.0-dev.12 → 7.5.0-dev.14

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.js CHANGED
@@ -370,6 +370,15 @@ var MariaDbTransaction = class extends MariaDbQueryable {
370
370
  this.cleanup?.();
371
371
  await this.client.end();
372
372
  }
373
+ async createSavepoint(name2) {
374
+ await this.executeRaw({ sql: `SAVEPOINT ${name2}`, args: [], argTypes: [] });
375
+ }
376
+ async rollbackToSavepoint(name2) {
377
+ await this.executeRaw({ sql: `ROLLBACK TO ${name2}`, args: [], argTypes: [] });
378
+ }
379
+ async releaseSavepoint(name2) {
380
+ await this.executeRaw({ sql: `RELEASE SAVEPOINT ${name2}`, args: [], argTypes: [] });
381
+ }
373
382
  };
374
383
  var PrismaMariaDbAdapter = class extends MariaDbQueryable {
375
384
  constructor(client, capabilities, options) {
package/dist/index.mjs CHANGED
@@ -334,6 +334,15 @@ var MariaDbTransaction = class extends MariaDbQueryable {
334
334
  this.cleanup?.();
335
335
  await this.client.end();
336
336
  }
337
+ async createSavepoint(name2) {
338
+ await this.executeRaw({ sql: `SAVEPOINT ${name2}`, args: [], argTypes: [] });
339
+ }
340
+ async rollbackToSavepoint(name2) {
341
+ await this.executeRaw({ sql: `ROLLBACK TO ${name2}`, args: [], argTypes: [] });
342
+ }
343
+ async releaseSavepoint(name2) {
344
+ await this.executeRaw({ sql: `RELEASE SAVEPOINT ${name2}`, args: [], argTypes: [] });
345
+ }
337
346
  };
338
347
  var PrismaMariaDbAdapter = class extends MariaDbQueryable {
339
348
  constructor(client, capabilities, options) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma/adapter-mariadb",
3
- "version": "7.5.0-dev.12",
3
+ "version": "7.5.0-dev.14",
4
4
  "description": "Prisma's driver adapter for \"mariadb\"",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -32,7 +32,7 @@
32
32
  "sideEffects": false,
33
33
  "dependencies": {
34
34
  "mariadb": "3.4.5",
35
- "@prisma/driver-adapter-utils": "7.5.0-dev.12"
35
+ "@prisma/driver-adapter-utils": "7.5.0-dev.14"
36
36
  },
37
37
  "scripts": {
38
38
  "dev": "DEV=true tsx helpers/build.ts",