Commit Graph

1 Commits

Author SHA1 Message Date
Federico Caselli baec9a3ac8 Add new str` subclass for postgresql bitstring
Adds a new ``str`` subclass :class:`dialects.postgresql.BitString`
representing PostgreSQL bitstrings in python, that includes
functionality for converting to and from ``int`` and ``bytes``, in
addition to implementing utility methods and operators for dealing
with bits.

This new class is returned automatically by the :class:`postgresql.BIT`
type.

Fixes: #10556
Closes: #12594
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/12594
Pull-request-sha: da47f40739

Change-Id: I64685660527c23666f7351b2c393fa86dfb643ea
2025-07-01 22:44:41 -04:00