Confused as to how compile time query checks work #3509
Unanswered
kartikynwa
asked this question in
Q&A
Replies: 1 comment
-
Well, your database needs to be migrated to have the shema you expect. There are a number of solutions (the CLI, migrate-feature, external tooling such as Atlas..) how to do this, some better/worse for your workflow on a legal, organisational and personal level. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
My main concern is whether it needs me to use sqlx's migrate feature. I see that it requires DATABASE_URL to be set, so I am guessing it talks to the database itself to validate the result of the query (using PREPARE based on other discussions). But I don't understand where exactly the database server knows the schema from. Thanks.
Beta Was this translation helpful? Give feedback.
All reactions