import { Client } from '@planetscale/database'import { drizzle } from 'drizzle-orm/planetscale-serverless'const db = drizzle(new Client({ url: dbUrl }), { schema })
import { Client } from '@planetscale/database'import { drizzle } from 'drizzle-orm/planetscale-serverless'const db = drizzle(new Client({ url: dbUrl }), { schema })
Warning:
Warning: You need to pass an instance of Client:import { Client } from "@planetscale/database";const client = new Client({ host: process.env["DATABASE_HOST"], username: process.env["DATABASE_USERNAME"], password: process.env["DATABASE_PASSWORD"],});const db = drizzle(client);Starting from version 0.30.0, you will encounter an error if you attempt to use anything other than a Client instance.Please make the necessary changes now to prevent any runtime errors in the future
Warning: You need to pass an instance of Client:import { Client } from "@planetscale/database";const client = new Client({ host: process.env["DATABASE_HOST"], username: process.env["DATABASE_USERNAME"], password: process.env["DATABASE_PASSWORD"],});const db = drizzle(client);Starting from version 0.30.0, you will encounter an error if you attempt to use anything other than a Client instance.Please make the necessary changes now to prevent any runtime errors in the future