sqlite-utils-jq
Plugin adding a jq() SQL function to sqlite-utils.
Installation
Install this plugin in the same environment as sqlite-utils:
sqlite-utils install sqlite-utils-jq
Usage
This plugin adds a jq() function for executing jq programs against JSON values.
sqlite-utils memory "select jq(:doc, :expr) as result" \
-p doc '{"foo": "bar"}' \
-p expr '.foo' \
--table
Output:
result
--------
"bar"
Development
To set up this plugin locally, first checkout the code. Then create a new virtual environment:
cd sqlite-utils-jq
python3 -m venv venv
source venv/bin/activate
Now install the dependencies and test dependencies:
pip install -e '.[test]'
To run the tests:
pytest
Release files for sqlite-utils-jq 0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| sqlite-utils-jq-0.1.tar.gz | 2.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| sqlite_utils_jq-0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 4.6 kB
Release files / sqlite-utils-jq-0.1.tar.gz
| Download URL | sqlite-utils-jq-0.1.tar.gz |
|---|---|
| Size | 2.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
def1df6ab65efb0fadb58d5baab131f7023b9e200cef09f60c47cc24dc5ba132
|
|
BLAKE2b-256 checksum How to use checksums |
3f8e423b5572c0d91777e54c16107cb18ec1cb865a08d4c740d86a0c6898d53c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.4
|
Release files / sqlite_utils_jq-0.1-py3-none-any.whl
| Download URL | sqlite_utils_jq-0.1-py3-none-any.whl |
|---|---|
| Size | 2.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ef5d6da1061ee132aa3a0aa0dc52b3eb5e040bcc6fe1e795f83d5e243e88f77d
|
|
BLAKE2b-256 checksum How to use checksums |
00b44b3947806270007377955e4c884401bdcbf2e43e1681c720079a97dd1299
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.4
|