Mini
Mini
Explore posts from servers
DTDrizzle Team
Created by Mini on 7/26/2024 in #help
Using drizzle with dynamic drivers
Confused on how to make db.ts file. I can install 3 drivers for 3 db but they have different imports and structure
3 replies
DTDrizzle Team
Created by Mini on 7/26/2024 in #help
Using drizzle with dynamic drivers
drizzle.config.ts
import { defineConfig } from 'drizzle-kit';
import * as dotenv from 'dotenv';

dotenv.config();

export default defineConfig({
// @ts-expect-error eslint-disable-next-line @typescript-eslint/ban-ts-comment
dialect: process.env.DIALECT || 'postgres',
schema: './src/lib/server/drizzle/schema.ts',
out: './src/lib/server/drizzle',
dbCredentials: {
// @ts-expect-error eslint-disable-next-line @typescript-eslint/ban-ts-comment
url: process.env.DATABASE_URL || ''
}
});
import { defineConfig } from 'drizzle-kit';
import * as dotenv from 'dotenv';

dotenv.config();

export default defineConfig({
// @ts-expect-error eslint-disable-next-line @typescript-eslint/ban-ts-comment
dialect: process.env.DIALECT || 'postgres',
schema: './src/lib/server/drizzle/schema.ts',
out: './src/lib/server/drizzle',
dbCredentials: {
// @ts-expect-error eslint-disable-next-line @typescript-eslint/ban-ts-comment
url: process.env.DATABASE_URL || ''
}
});
3 replies
DTDrizzle Team
Created by Naeemgg on 3/14/2024 in #help
error with drizzle-kit `introspect:pg` and `push:pg` | vercel postgres
ah okay
12 replies
DTDrizzle Team
Created by Naeemgg on 3/14/2024 in #help
error with drizzle-kit `introspect:pg` and `push:pg` | vercel postgres
works fine with npx
12 replies
DTDrizzle Team
Created by Naeemgg on 3/14/2024 in #help
error with drizzle-kit `introspect:pg` and `push:pg` | vercel postgres
❯ pnpm dlx drizzle-kit introspect
drizzle-kit: v0.23.0


Error please install required packages: 'drizzle-orm'
❯ pnpm dlx drizzle-kit introspect
drizzle-kit: v0.23.0


Error please install required packages: 'drizzle-orm'
12 replies
DTDrizzle Team
Created by Naeemgg on 3/14/2024 in #help
error with drizzle-kit `introspect:pg` and `push:pg` | vercel postgres
Happening with me too, did you find anything @Naeem / @DoggeSlapper ?
12 replies