I need to use the bit string type (the schema is already established). As a stopgap I can modify my queries to return a string (mybitfield :: text), but it would be nice to have native support.
https://www.postgresql.org/docs/current/static/functions-bitstring.html
The mapped type could be configurable to be an array, map, string, integer, etc.. Integer could be a little tricky for large fields. A map might be the closest native type in spirit - i.e., 101 becomes %{0 => true, 1 => false, 2 => true} and vice versa.
I'd be willing to work on this.
I need to use the bit string type (the schema is already established). As a stopgap I can modify my queries to return a string (
mybitfield :: text), but it would be nice to have native support.https://www.postgresql.org/docs/current/static/functions-bitstring.html
The mapped type could be configurable to be an array, map, string, integer, etc.. Integer could be a little tricky for large fields. A map might be the closest native type in spirit - i.e.,
101becomes%{0 => true, 1 => false, 2 => true}and vice versa.I'd be willing to work on this.