Using drift as a SQL query constructor #2512
Replies: 1 comment 22 replies
-
Yes, you can implement a custom
Most parts of drift are built with the assumption of running against sqlite3. For DQL statements, the differences usually aren't that bad (although things like date and time functions probably won't work), but types or things like It think it can make sense to try this out, but be aware that you won't get a reliable solution like the one for sqlite3. If you're willing to tackle issues as they appear (PRs to add support for different DBMS implementations are welcome!), you can use drift with MariaDB. |
Beta Was this translation helpful? Give feedback.
-
I was wondering if one could use drift only to construct queries for a
MariaDB
database for example which is notsqlite
, because drift is type safe and way better than writing raw queries that return untyped data.I know drift is not meant to be used like that obviously, but would there be any obvious issues?
Beta Was this translation helpful? Give feedback.
All reactions