Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

partiql-js

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

partiql-js

<code>partiql-js</code> An implementation of PartiQL written in Rust

latest
npmnpm
Version
0.202107.0
Version published
Maintainers
1
Created
Source

partiql-js

An implementation of PartiQL written in Rust

Document

Installation

npm add partiql
yarn add partiql

Usage

import partiql

def test_evaluate():
    sql = "SELECT NAME, LOGNAME"
    input = """
{
  "SHELL": "/bin/bash",
  "NAME": "my machine name",
  "PWD": "/home/fuyutarow/partiql-rs",
  "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 (
        partiql.evaluate(
            sql,
            input,
            "json",
            "json",
        )
        == expected
    )

Familiy

contentlangpackage
pqCLI (brew, scoop)
partiql-rsRust (cargo)https://crates.io/crates/partiql-rs
partiql-jsJavaScript (npm)https://www.npmjs.com/package/partiql-js
partiql-pyPython (pip)https://pypi.org/project/partiql

FAQs

Package last updated on 07 Jul 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts