piqel
TypeScript icon, indicating that this package has built-in type declarations

0.202208.1 • Public • Published
An implementation of PartiQL written in Rust

Document(WIP)

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

Readme

Keywords

Package Sidebar

Install

npm i piqel

Weekly Downloads

0

Version

0.202208.1

License

MIT

Unpacked Size

1.24 MB

Total Files

7

Last publish

Collaborators

  • fuyutarow