piqel
v0.202208.1
Published
A implementation of PartiQL
Downloads
8
Readme
Installation
npm add piqel
yarn add piqel
Usage
import piqel
def test_evaluate():
sql = "SELECT NAME, LOGNAME"
input = """
{
"SHELL": "/bin/bash",
"NAME": "my machine name",
"PWD": "/home/fuyutarow/piqel",
"LOGNAME": "fuyutarow",
"HOME": "/home/fuyutarow",
"LANG": "C.UTF-8",
"USER": "fuyutarow",
"HOSTTYPE": "x86_64",
"_": "/usr/bin/env"
}
"""
expected = """[{"NAME":"my machine name","LOGNAME":"fuyutarow"}]"""
assert (
piqel.evaluate(
sql,
input,
"json",
"json",
)
== expected
)
Family
| content | lang | package | | --- | --- | --- | | pq | CLI (brew, scoop) | | | piqel | Rust (cargo) | https://crates.io/crates/piqel | | piqel-js | JavaScript (npm) | https://www.npmjs.com/package/piqel | | piqel-py | Python (pip) | https://pypi.org/project/piqel |