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

Extend documentation on postgres sql with Kysely #690

Open
themataleao opened this issue Jun 7, 2024 · 0 comments
Open

Extend documentation on postgres sql with Kysely #690

themataleao opened this issue Jun 7, 2024 · 0 comments

Comments

@themataleao
Copy link

Dear Vercel Team,

I would really appreciate better documentation on the Postgres library and its ORM vendors.

I am now using Kysely and it was nowhere described how the table is created inside the database. I was able to find it by looking at the Kysely demo. However, they used a method that is not a production-ready solution either. It just creates the table and populates it when the application starts.

I have now written a script that creates the table once and I can use it from my server actions.

This brings me to a second problem where I cannot find any documentation:

I need one database for different environments: dev, preview and prod.

I have now created a second database for prod only. But I still need to create the table on it. What's the recommended way to create the tables based on the environment? Also, I don't know how to tell my Kysely client to create the tables on the prod database locally. Or even how to connect to a different database at all.

Any suggestion would be highly appreciated :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant