Try to use fluent for SQL with bitwise operator. Something like:
SELECT * FROM Car WHERE (status & 1) > 0
I didn’t see any QueryBuild.filter method to do the bitwise operation. Any idea?
Try to use fluent for SQL with bitwise operator. Something like:
SELECT * FROM Car WHERE (status & 1) > 0
I didn’t see any QueryBuild.filter method to do the bitwise operation. Any idea?
I got the answer from Discord.
filter(.sql(raw: “(status & 1) > 0”)