Replies: 2 comments
-
I'm attempting a small proof of concept for this, in which I have
And branch on the variant to handle each DB backend:
AnBut Can anyone comment on this? Is there some way around the problem that I'm not seeing? |
Beta Was this translation helpful? Give feedback.
-
Ah, I see: #916 |
Beta Was this translation helpful? Give feedback.
-
I'm wondering if anyone's used sqlx in a program that supports multiple DB backends (I'm thinking postgres + sqlite in particular) with as little code repeat as possible? There's a lot (but not 100%) overlap in the SQL for each backend. The usecase is having DB-using code that can run on either a server (postgres) or an edge device (sqlite). I've done this in diesel, and I'd like to gauge how hard it would be to achieve something similar in sqlx. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions