A WebAssembly (WASM) wrapper around the (DataFusion) SQLParser Rust crate, providing SQL parsing capabilities in the browser and Node.js environments.
This project consists of two main packages:
-
./src
the Rust source for the WASM lib. -
sqlparser-wasm
- The WebAssembly library as generated by wasm-pack. -
sqlparser
- Wrapper aroundsqlparser-wasm
to provide types.
- Bun
- Rust toolchain
- wasm-pack
- Install Cargo, wasm-pack
# Build the WASM package
bun run build
$ cd packages/sqlparser
$ bun test
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"
This project is dual-licensed under:
- Apache License 2.0
- MIT License
See the LICENSE_APACHE
and LICENSE_MIT
files for more details.