Open synhya opened 3 months ago
drizzle with planetscale generates code like this
export const connection = connect({ url: env.DATABASE_URL });
however docs say its not recommended way of handling connection
should be changed to ..
export const connection = new Client({ host: env.DATABASE_HOST, username: env.DATABASE_USERNAME, password: env.DATABASE_PASSWORD, });
with .env file updated respectively
drizzle with planetscale generates code like this
however docs say its not recommended way of handling connection
should be changed to ..
with .env file updated respectively