-
Notifications
You must be signed in to change notification settings - Fork 21
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: Add support for Prisma #589
Comments
Basic querying now works after the We have now come to the next hurdle when testing a simple migrate. When running the following command //schema.prisma
// This is your Prisma schema file,
// learn more about it in the docs: https://pris.ly/d/prisma-schema
generator client {
provider = "prisma-client-js"
}
datasource db {
provider = "postgresql"
url = env("DATABASE_URL")
}
model User {
id Int @id @default(autoincrement())
name String
}
Here is where the relevant line in Primsa which throw the error. This error is also thrown when directly querying the How should we proceed? |
I've also been testing this today, and I've run into multiple challenges with running migrations. There are multiple
|
Prisma indeed talks to these system tables a lot to get all the information about the tables and columns to craft our models and fields (and everything related to these). So If the shadow database problem is related to |
To be fair, why does a simple |
What you are suggesting already exists as |
@belmeopmenieuwesim We have also been experimenting with an alternative development model where migration commands are executed on a local PostgreSQL copy of your Cloud Spanner database. This would mean that commands like Would you be interested in a quick call to see if this would be a possibility for your use case? |
That is very kind of you @olavloite. But as of now we decided to stick with using native Postgres with MikroORM. |
hi @olavloite , im also running into same issue where i'd like to use prisma to manage my spanner db, and im maintaining a shadow postgres db to do db schema management, and then apply these migration files to spanner. the solution you mentioned above sounds reasonable to me. wondering can we hop on a quick call if you're available? |
@jillxuu Certainly, could you drop me an email on the email address list for my GitHub account? (https://github.com/olavloite). |
Add support for the NodeJS Prisma ORM.
Related to #581
The text was updated successfully, but these errors were encountered: