Replies: 1 comment 6 replies
-
All the query functions and methods generated uses a We can use anything that satisfies the interface, such as an |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I realize this would put the onus on the application to ensure its schema matches and doesn't have any incompatible settings (such as columns of array types between psql/sqlite), but how much work would it be to enable an application to tell sqlboiler to use a different dialect at runtime than the one that generated it? If I'd like to use postgres to generate models, for its strong enum typing, then use sqlite at runtime, say for running my application's unit tests, that would be ideal.
It seems like most of the library uses query mods anyway, so it would theoretically be pretty simple, with the appropriate API exposed (maybe a new major version?), but there are a few hardcoded raw sql statements in the generated code, such as in the Find and Exists methods, that would need to be addressed.
Beta Was this translation helpful? Give feedback.
All reactions