sqlalchemy_dlock.utils module¶
- sqlalchemy_dlock.utils.ensure_int64(i: int) int[source]¶
ensure the integer in PostgreSQL advisory lock’s range (Signed INT64)
max of signed int64:
2**63-1(+0x7FFF_FFFF_FFFF_FFFF)min of signed int64:
-2**63(-0x8000_0000_0000_0000)