@prisma/adapter-libsql 7.5.0-dev.3 → 7.5.0-dev.31

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.
@@ -354,6 +354,15 @@ var LibSqlTransaction = class extends LibSqlQueryable {
354
354
  this.#unlockParent();
355
355
  }
356
356
  }
357
+ async createSavepoint(name2) {
358
+ await this.executeRaw({ sql: `SAVEPOINT ${name2}`, args: [], argTypes: [] });
359
+ }
360
+ async rollbackToSavepoint(name2) {
361
+ await this.executeRaw({ sql: `ROLLBACK TO ${name2}`, args: [], argTypes: [] });
362
+ }
363
+ async releaseSavepoint(name2) {
364
+ await this.executeRaw({ sql: `RELEASE SAVEPOINT ${name2}`, args: [], argTypes: [] });
365
+ }
357
366
  };
358
367
  var PrismaLibSqlAdapter = class extends LibSqlQueryable {
359
368
  constructor(client, adapterOptions) {
@@ -328,6 +328,15 @@ var LibSqlTransaction = class extends LibSqlQueryable {
328
328
  this.#unlockParent();
329
329
  }
330
330
  }
331
+ async createSavepoint(name2) {
332
+ await this.executeRaw({ sql: `SAVEPOINT ${name2}`, args: [], argTypes: [] });
333
+ }
334
+ async rollbackToSavepoint(name2) {
335
+ await this.executeRaw({ sql: `ROLLBACK TO ${name2}`, args: [], argTypes: [] });
336
+ }
337
+ async releaseSavepoint(name2) {
338
+ await this.executeRaw({ sql: `RELEASE SAVEPOINT ${name2}`, args: [], argTypes: [] });
339
+ }
331
340
  };
332
341
  var PrismaLibSqlAdapter = class extends LibSqlQueryable {
333
342
  constructor(client, adapterOptions) {
package/dist/index-web.js CHANGED
@@ -354,6 +354,15 @@ var LibSqlTransaction = class extends LibSqlQueryable {
354
354
  this.#unlockParent();
355
355
  }
356
356
  }
357
+ async createSavepoint(name2) {
358
+ await this.executeRaw({ sql: `SAVEPOINT ${name2}`, args: [], argTypes: [] });
359
+ }
360
+ async rollbackToSavepoint(name2) {
361
+ await this.executeRaw({ sql: `ROLLBACK TO ${name2}`, args: [], argTypes: [] });
362
+ }
363
+ async releaseSavepoint(name2) {
364
+ await this.executeRaw({ sql: `RELEASE SAVEPOINT ${name2}`, args: [], argTypes: [] });
365
+ }
357
366
  };
358
367
  var PrismaLibSqlAdapter = class extends LibSqlQueryable {
359
368
  constructor(client, adapterOptions) {
@@ -328,6 +328,15 @@ var LibSqlTransaction = class extends LibSqlQueryable {
328
328
  this.#unlockParent();
329
329
  }
330
330
  }
331
+ async createSavepoint(name2) {
332
+ await this.executeRaw({ sql: `SAVEPOINT ${name2}`, args: [], argTypes: [] });
333
+ }
334
+ async rollbackToSavepoint(name2) {
335
+ await this.executeRaw({ sql: `ROLLBACK TO ${name2}`, args: [], argTypes: [] });
336
+ }
337
+ async releaseSavepoint(name2) {
338
+ await this.executeRaw({ sql: `RELEASE SAVEPOINT ${name2}`, args: [], argTypes: [] });
339
+ }
331
340
  };
332
341
  var PrismaLibSqlAdapter = class extends LibSqlQueryable {
333
342
  constructor(client, adapterOptions) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma/adapter-libsql",
3
- "version": "7.5.0-dev.3",
3
+ "version": "7.5.0-dev.31",
4
4
  "description": "Prisma's driver adapter for libSQL and Turso",
5
5
  "main": "dist/index-node.js",
6
6
  "module": "dist/index-node.mjs",
@@ -43,7 +43,7 @@
43
43
  "dependencies": {
44
44
  "@libsql/client": "^0.17.0",
45
45
  "async-mutex": "0.5.0",
46
- "@prisma/driver-adapter-utils": "7.5.0-dev.3"
46
+ "@prisma/driver-adapter-utils": "7.5.0-dev.31"
47
47
  },
48
48
  "scripts": {
49
49
  "dev": "DEV=true tsx helpers/build.ts",