Use & and = on psycopg2 range types.
Project description
This module overrides the Range.__and__ function, so that it returns a boolean value based on if the two objects overlap.
The rationale behind this is that it mirrors the range && range operator in postgres.
There is also an improved equality operator, and a function for normalising ranges (if possible).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file psycopg2-range-overlaps-1.0.1.tar.gz
.
File metadata
- Download URL: psycopg2-range-overlaps-1.0.1.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 33baa75c36944e39e7c93c51d82c984cf3ad6085b90bfef73906c3d50cd78312 |
|
MD5 | 8f0137f9386ab9d022a845a852ea3112 |
|
BLAKE2b-256 | 0f5895ad53986aa10561a53a430691bb6c3a9e69ccc30a078d51811685423827 |