mirror of
https://github.com/sqlalchemy/sqlalchemy.git
synced 2026-08-09 23:10:07 -04:00
- Added custom `BitString` implementation which inherits from `str` and overrides methods and operators appropriately and implements the bitwise operations in a manner consistent with postgresql. Also exposes class and instance methods ensuring instances can be converted to/from `int` and `bytes` sensibly. - Added default implementations of `bind_processor` and `result_processor` to `postgresql.BIT` type to convert `BitString` to/from string for PG drivers. - Override `bind_processor` and `result_processor` in AsyncpgBit in order to convert `BitString` to/from `asynpg.BitString` in `asyncpg` driver. - Added support for bitwise comparators to postgresql `BIT` instances Fixes: 10556