@rejot-dev/sqlparser-wasm
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

SQLParser (WASM)

A WebAssembly (WASM) wrapper around the (DataFusion) SQLParser Rust crate, providing SQL parsing capabilities in the browser and Node.js environments.

Overview

This project consists of two main packages:

  1. ./src the Rust source for the WASM lib.
  2. sqlparser-wasm - The WebAssembly library as generated by wasm-pack.
  3. sqlparser - Wrapper around sqlparser-wasm to provide types.

Development

Prerequisites

  • Bun
  • Rust toolchain
  • wasm-pack

Building & Testing

  • Install Cargo, wasm-pack
# Build the WASM package
bun run build
$ cd packages/sqlparser
$ bun test

Building on Mac (Apple Silicon)

A newer version of llvm/clang is needed to build the WASM module.

brew install llvm

And make available:

export PATH="/opt/homebrew/opt/llvm/bin:$PATH"

License

This project is dual-licensed under:

  • Apache License 2.0
  • MIT License

See the LICENSE_APACHE and LICENSE_MIT files for more details.

Readme

Keywords

none

Package Sidebar

Install

npm i @rejot-dev/sqlparser-wasm

Weekly Downloads

404

Version

0.1.0

License

none

Unpacked Size

3.64 MB

Total Files

5

Last publish

Collaborators

  • schuttejan
  • wilco-rejot