You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am building a language server for Postgres and am thinking about how to add type checking without reinventing the wheel. sqlx came to my mind for this, but I can’t find an „official“ way to run the type checks during runtime. I think I can use prepare to achieve what I want manually, but maybe I am missing a simpler option here. After all, i just need a function that takes an sql statement string, prepares the statement and returns errors such as missing columns without executing it. Is that something that sqlx provides?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hey,
I am building a language server for Postgres and am thinking about how to add type checking without reinventing the wheel. sqlx came to my mind for this, but I can’t find an „official“ way to run the type checks during runtime. I think I can use
prepare
to achieve what I want manually, but maybe I am missing a simpler option here. After all, i just need a function that takes an sql statement string, prepares the statement and returns errors such as missing columns without executing it. Is that something that sqlx provides?Beta Was this translation helpful? Give feedback.
All reactions