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 $conditionAnd then call it with |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
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)
All reactions