sqlextension
This module makes some SQL commands available for use with python-sql.
Install
pip install mds-sqlextension
Available SQL functions
AnyInArray (any)
ArrayAgg (array_agg)
Ascii (ascii)
Concat2 (concat)
FuzzyEqal (%)
Lower (lower)
Replace (replace)
ReplaceRegexp (regexp_replace)
RPad (rpad)
SplitPart (split_part)
StringAgg (string_agg)
Available SQL expressions
Overlaps ( (start1, end1) overlaps (start2, end2) ):
tab1.select( tab1.id, where=Overlaps('2017-10-01', '2017-10-15', tab1.start, tab1.end) == True )RegexMatchWithCase(<column>, <regular expression>)
RegexMatchNoCase(<column>, <regular expression>):
tab1.select( tab1.id, where=RegexMatchNoCase(tab1.rgbcolor, '^#[0-9,a-f]{6}$') )
To make FuzzyEqual work, call CREATE EXTENSION pg_trgm; in PostgreSQL.
Requires
python-sql
Changes
0.1.11 - 04/30/2021
add: LPad
0.1.10 - 03/02/2021
fix: parameter order in StringAgg()
0.1.9 - 02/22/2021
add: parameter ‘order’ to StringAgg
0.1.8 - 02/13/2018
new: two operators - RegexMatchNoCase + RegexMatchWithCase
0.1.7 - 03/09/2018
fix: generate valid params in ‘Overlaps’
0.1.6 - 03/08/2018
added expression: Overlaps
0.1.5 - 02/01/2018
added function: ReplaceRegexp
0.1.4 - 12/14/2017
bugfix: import-syntax in python3
added docstrings for help
0.1.3 - 07/14/2017
added ‘split_part’
0.1.2 - 06/09/2017
import optimized
0.1.1 - 06/09/2017
first public version
Metadata
Release files for mds-sqlextension 0.1.11
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| mds-sqlextension-0.1.11.tar.gz | 4.5 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mds_sqlextension-0.1.11-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.1 kB
Release files / mds-sqlextension-0.1.11.tar.gz
| Download URL | mds-sqlextension-0.1.11.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
34e8d4428d0ba9d361a17f5c0ad9ded4854da3c7b42d550f5b27f464909b23e2
|
|
BLAKE2b-256 checksum How to use checksums |
cfae5419ead323ca5672c6b724c148be38d514a9302d521186e21d7648c91cac
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.15.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/38.2.4 requests-toolbelt/0.8.0 tqdm/4.19.5 CPython/3.5.2
|
Release files / mds_sqlextension-0.1.11-py3-none-any.whl
| Download URL | mds_sqlextension-0.1.11-py3-none-any.whl |
|---|---|
| Size | 5.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
354ee39e0c9cf062b012fb055256b59587c984da9d823e4bb5827e21954fe362
|
|
BLAKE2b-256 checksum How to use checksums |
06b6c48a115d6a96c37802e7d8b72d44051cf7f4d198f3b6d8cc3f1a65456e62
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.15.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/38.2.4 requests-toolbelt/0.8.0 tqdm/4.19.5 CPython/3.5.2
|
Security for mds-sqlextension 0.1.11
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.