A WebAssembly (WASM) wrapper around the (DataFusion) SQLParser Rust crate, providing SQL parsing capabilities in the browser and Node.js environments.
npm install @rejot-dev/sqlparser-wasmA 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:
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.
- Bun
- Rust toolchain
- wasm-pack
- Install Cargo, wasm-pack
``bash`Build the WASM package
bun run build
`bash`
$ cd packages/sqlparser
$ bun test
#### Building on Mac (Apple Silicon)
A newer version of llvm/clang is needed to build the WASM module.
`bash`
brew install llvm
And make available:
`bash`
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.