Replies: 11 comments 21 replies
This comment has been hidden.
This comment has been hidden.
|
@ruheni @janpio first of all great work with the Turso libsql Adapter 👏🏽 ! Is it a known issue that when using embedded replicas you can not write to the DB? I was experimenting with this and embedded replicas as explained here -> https://www.prisma.io/blog/prisma-turso-ea-support-rXGd_Tmy3UXX and found out all inserts fail with this error -> I'm wondering if this is really a Prisma issue or maybe a [2] PrismaClientKnownRequestError:
[2] Invalid `prisma.todo.create()` invocation:
[2]
[2]
[2] TRANSACTION_CLOSED: The transaction is closed
[2] code: "TRANSACTION_CLOSED"
[2]
[2] at new U (/home/edgar/workspace/scaffold-apps/beth-stack/node_modules/@prisma/client/runtime/library.js:26:1479)
[2] at handleRequestError (/home/edgar/workspace/scaffold-apps/beth-stack/node_modules/@prisma/client/runtime/library.js:123:6816)
[2] at handleAndLogRequestError (/home/edgar/workspace/scaffold-apps/beth-stack/node_modules/@prisma/client/runtime/library.js:123:6200)
[2] at /home/edgar/workspace/scaffold-apps/beth-stack/node_modules/@prisma/client/runtime/library.js:123:5920
[2] at processTicksAndRejections (:61:76)
[2] POST - http://localhost:3000/api/todos failed
[2] 2023-11-05T14:27:30.140811Z ERROR tower_http::trace::on_failure: response failed classification=Code: 9 latency=42 msIt seems the transaction is closed prematurely or something similar, going back to no It might be worth mentioning somewhere that so far, due to this still being experimental, inserts to the db don't work while also using embedded replicas. It's hard to go back though after experiencing the crazy fast query responses. |
|
Really waiting for applying migrations with schema entity changes, is there anything in progress for that? |
|
Probably it is a known issue but just want to point this:
|
|
Is this still working? seeing this error: issue we are using for tracking the db work. Code for those who wanna take a look. |
|
Basically I can find no way to use Turso without embedded replicas. |
|
Hi there, I've encountered an issue while using the Prisma Client extension for turso DB. When executing the following INSERT statement: receiving this error message: It seems like there's an issue with the return value of the create operation. Could you please advise on how to resolve this issue? Thank you in advance for your assistance! Best regards, |
|
Hi there I've found a issue while using the Prisma Client with the SQLite Adapter (Turso).
"next": "15.2.2",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"@libsql/client": "^0.14.0",
"@prisma/adapter-libsql": "^6.5.0",
"@prisma/client": "^6.5.0",
"prisma": "^6.5.0",When i executing the npm i
npm error code ERESOLVE
npm error ERESOLVE could not resolve
npm error
npm error While resolving: @prisma/adapter-libsql@6.5.0
npm error Found: @libsql/client@0.14.0
npm error node_modules/@libsql/client
npm error @libsql/client@"^0.14.0" from the root project
npm error
npm error Could not resolve dependency:
npm error peer @libsql/client@"^0.3.5 || ^0.4.0 || ^0.5.0 || ^0.6.0 || ^0.7.0 || ^0.8.0" from @prisma/adapter-libsql@6.5.0
npm error node_modules/@prisma/adapter-libsql
npm error @prisma/adapter-libsql@"^6.5.0" from the root project
npm error
npm error Conflicting peer dependency: @libsql/client@0.8.1
npm error node_modules/@libsql/client
npm error peer @libsql/client@"^0.3.5 || ^0.4.0 || ^0.5.0 || ^0.6.0 || ^0.7.0 || ^0.8.0" from @prisma/adapter-libsql@6.5.0
npm error node_modules/@prisma/adapter-libsql
npm error @prisma/adapter-libsql@"^6.5.0" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.I've been working correctly because if i use the There are any fix for this? Best regards, |
|
Hi all, tried out the early access for Versions: my config file import path from 'node:path';
import { defineConfig } from 'prisma/config';
import { PrismaLibSQL } from '@prisma/adapter-libsql';
type Env = {
DATABASE_URL: string;
DATABASE_AUTH_TOKEN: string;
};
const migrateConfig = process.env.UNSUPPORTED_PRISMA_MIGRATION
? {}
: {
migrate: {
async adapter(env) {
return new PrismaLibSQL({
url: env.DATABASE_URL,
authToken: env.DATABASE_AUTH_TOKEN
});
}
}
};
export default defineConfig<Env>({
earlyAccess: true,
schema: path.join('prisma', 'schema.prisma'),
studio: {
async adapter(env) {
return new PrismaLibSQL({
url: env.DATABASE_URL,
authToken: env.DATABASE_AUTH_TOKEN
});
}
},
...migrateConfig
}); |
|
In case anyone else runs into this in 6.6.0. |
|
I'm trying to use the turso database adapter to get end-to-end wasm with prisma, but I'm not sure what all the pieces are that I need to put together. Is this even supported at the moment? Do I need to write my own driver adapter? |






Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Support for Turso is in early access behind the
driverAdapterspreview feature. You can learn about it in our blog post.Please share your feedback about
@prisma/adapter-libsqlreleased in v5.4.0 in this issue.All reactions