@rejot-dev/sqlparser-wasm
v0.1.0
Published
A WebAssembly (WASM) wrapper around the (DataFusion) SQLParser Rust crate, providing SQL parsing capabilities in the browser and Node.js environments.
Readme
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:
./srcthe Rust source for the WASM lib.sqlparser-wasm- The WebAssembly library as generated by wasm-pack.sqlparser- Wrapper aroundsqlparser-wasmto 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 testBuilding on Mac (Apple Silicon)
A newer version of llvm/clang is needed to build the WASM module.
brew install llvmAnd 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.
