Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
synhya opened this issue Mar 3, 2024 · 0 comments · May be fixed by #159
Open

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

synhya opened this issue Mar 3, 2024 · 0 comments · May be fixed by #159
Labels
enhancement New feature or request

Comments

@synhya
Copy link

synhya commented Mar 3, 2024

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 synhya added the enhancement New feature or request label Mar 3, 2024
synhya pushed a commit to synhya/kirimase that referenced this issue Mar 3, 2024
@synhya synhya linked a pull request Mar 3, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant