Replies: 1 comment
-
We have no support to embed fixed Dart expressions in SQL queries at the moment (an interesting idea though). I will mention though that you can embed arbitrary Dart expressions evaluated at runtime by using Dart components. That allows you to define the statement as e.g. SELECT a, b
FROM SomeTable
WHERE $condition And then call it with |
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
-
Not sure exactly how this would work, but is it possible to somehow reference a dart value (mapped by converter for that column) in a drift query criteria? e.g.
Currently I just use the integer value and add a comment, but that requires care in refactoring.
(I know that dart enums have special handling elsewhere, but I'll note for my use cases it's not always a dart enum)
Beta Was this translation helpful? Give feedback.
All reactions