-
Hi, If I have a view, in a drift file, with a bool column how do I specify that it should be a boolean() when drift is generating the code? .i.e: Column = is_favourite Generates How do I output Many thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Does But also, can you post the query used in the view and perhaps the table definitions referenced therein? In most cases, drift should be able to infer the column type on its own. With more details I can look into why that didn't work here. |
Beta Was this translation helpful? Give feedback.
Does
CAST(... as BOOL)
work? Drift should pick up the hint and rewrite the cast to an integer when emitting the final SQL.But also, can you post the query used in the view and perhaps the table definitions referenced therein? In most cases, drift should be able to infer the column type on its own. With more details I can look into why that didn't work here.