feat(cli): prisma + workers, prisma + turso, planetscale (postgres/mysql) support (#567)

This commit is contained in:
Aman Varshney
2025-09-08 12:15:26 +05:30
committed by GitHub
parent 33344d91be
commit cd5d0f0aeb
66 changed files with 1486 additions and 729 deletions

View File

@@ -10,10 +10,20 @@ generator client {
{{/if}}
{{#if (eq runtime "workers")}}
runtime = "workerd"
{{#if (eq dbSetup "d1")}}
previewFeatures = ["driverAdapters"]
{{/if}}
{{/if}}
{{#if (eq dbSetup "turso")}}
previewFeatures = ["driverAdapters"]
{{/if}}
}
datasource db {
provider = "sqlite"
{{#if (eq dbSetup "turso")}}
url = "file:./local.db"
{{else}}
url = env("DATABASE_URL")
{{/if}}
}