parse-sql-statements-wasm
v0.1.5
Published
A wrapper of sqlparser, exposing the `parse_statements` method only.
Downloads
13
Readme
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