0.1.5 • Published 1 year ago

parse-sql-statements-wasm v0.1.5

Weekly downloads
-
License
MIT/Apache-2.0
Repository
github
Last release
1 year ago

Parse SQL Statements WASM

This is a wasm wrapper of sqlparser, exposing the parse_statements method only.

Method

interface ParseResult {
  /** Indicates whether or not the given sql is valid. */
  success: boolean
  /** You may deserialize this using `JSON.parse()`. */
  serialzed_result: string
}

export function parse_statements(text: string): ParseResult

Build

wasm-pack required.

# native in browser
wasm-pack build --target web

# esm integration
wasm-pack build --target bundler
0.1.5

1 year ago

0.1.4

1 year ago

0.1.3

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago