New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@prisma/adapter-libsql

Package Overview
Dependencies
Maintainers
10
Versions
1991
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@prisma/adapter-libsql - npm Package Compare versions

Comparing version 5.6.0-dev.17 to 5.6.0-dev.18

LICENSE

2

dist/index.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc