Is there currently a way to hint at a data type when building a SQL string?
I'm trying to build an insert/update SQL statement for Postgres with a BIT datatype column. When I build the statement with sql-bricks insert("table_with_bit_column", {"bit_column": 1}); ... it errors out complaining that the int datatype is not compatible with a bit datatype.
I know I can do 1::BIT when handwriting the SQL, but I'm not sure how to do this in sql-bricks.
Is this something that is supported with sql-bricks?
Is there currently a way to hint at a data type when building a SQL string?
I'm trying to build an insert/update SQL statement for Postgres with a BIT datatype column. When I build the statement with sql-bricks
insert("table_with_bit_column", {"bit_column": 1});
... it errors out complaining that the int datatype is not compatible with a bit datatype.I know I can do
1::BIT
when handwriting the SQL, but I'm not sure how to do this in sql-bricks.Is this something that is supported with sql-bricks?
No worries if it isn't, just curious :)