open-index/open-npm huggingface dataset:
npm package: @rejot-dev/sqlparser-wasm
Description: A WebAssembly (WASM) wrapper around the (DataFusion) SQLParser Rust crate, providing SQL parsing capabilities in the browser and Node.js environments.
Latest version: 0.1.0

# 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

```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"
```

## License

This project is dual-licensed under:

- Apache License 2.0
- MIT License

See the `LICENSE_APACHE` and `LICENSE_MIT` files for more details.