@prisma/adapter-libsql
Advanced tools
Comparing version 5.6.0-dev.17 to 5.6.0-dev.18
@@ -0,3 +1,3 @@ | ||
import { Client, Transaction as Transaction$1 } from '@libsql/client'; | ||
import { DriverAdapter, Result, Transaction, Queryable, Query, ResultSet } from '@prisma/driver-adapter-utils'; | ||
import { Client, Transaction as Transaction$1 } from '@libsql/client'; | ||
import { Mutex } from 'async-mutex'; | ||
@@ -4,0 +4,0 @@ |
@@ -32,4 +32,4 @@ "use strict"; | ||
// src/conversion.ts | ||
var import_types = require("util/types"); | ||
var import_driver_adapter_utils = require("@prisma/driver-adapter-utils"); | ||
var import_types = require("util/types"); | ||
var debug = (0, import_driver_adapter_utils.Debug)("prisma:driver-adapter:libsql:conversion"); | ||
@@ -36,0 +36,0 @@ function mapDeclType(declType) { |
{ | ||
"name": "@prisma/adapter-libsql", | ||
"version": "5.6.0-dev.17", | ||
"version": "5.6.0-dev.18", | ||
"description": "Prisma's driver adapter for libSQL and Turso", | ||
@@ -18,3 +18,3 @@ "main": "dist/index.js", | ||
"async-mutex": "0.4.0", | ||
"@prisma/driver-adapter-utils": "5.6.0-dev.17" | ||
"@prisma/driver-adapter-utils": "5.6.0-dev.18" | ||
}, | ||
@@ -21,0 +21,0 @@ "devDependencies": { |
@@ -58,3 +58,3 @@ # @prisma/adapter-libsql | ||
```sh | ||
turso db shell turso-prisma < baseline.sql | ||
turso db shell turso-prisma < baseline.sql | ||
``` | ||
@@ -73,9 +73,9 @@ | ||
// Import needed packages | ||
import { PrismaClient } from '@prisma/client'; | ||
import { PrismaLibSQL } from '@prisma/adapter-libsql'; | ||
import { createClient } from '@libsql/client'; | ||
import { PrismaClient } from '@prisma/client' | ||
import { PrismaLibSQL } from '@prisma/adapter-libsql' | ||
import { createClient } from '@libsql/client' | ||
// Setup | ||
const connectionString = `${process.env.TURSO_DATABASE_URL}`; | ||
const authToken = `${process.env.TURSO_AUTH_TOKEN}`; | ||
const connectionString = `${process.env.TURSO_DATABASE_URL}` | ||
const authToken = `${process.env.TURSO_AUTH_TOKEN}` | ||
@@ -86,5 +86,5 @@ // Init prisma client | ||
authToken, | ||
}); | ||
const adapter = new PrismaLibSQL(libsql); | ||
const prisma = new PrismaClient({ adapter }); | ||
}) | ||
const adapter = new PrismaLibSQL(libsql) | ||
const prisma = new PrismaClient({ adapter }) | ||
@@ -91,0 +91,0 @@ // Use Prisma Client as normal |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
34511
7
+ Added@prisma/driver-adapter-utils@5.6.0-dev.18(transitive)
- Removed@prisma/driver-adapter-utils@5.6.0-dev.17(transitive)