kirimase icon indicating copy to clipboard operation
kirimase copied to clipboard

[Feature Request] drizzle-planetscale connect() will be deprecated

Open synhya opened this issue 11 months ago • 0 comments

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 image

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

synhya avatar Mar 03 '24 19:03 synhya