Function bit_count

Source
pub fn bit_count(bytes: &[u8]) -> i64
Expand description

Returns the number of bits set in the binary string

ยงExample

query T
SELECT bit_count('\x1234567890'::bytea);
----
15