Expand description
Raw WebAssembly bindings for browser extension use.
This crate deliberately avoids wasm-bindgen so the Chrome extension can load a single local
.wasm file without generated JavaScript glue. JavaScript owns input buffers allocated through
sql_dialect_fmt_alloc; this module owns the last formatted result until the next call or
sql_dialect_fmt_clear_result.
Functions§
- sql_
dialect_ fmt_ alloc - Allocate a writable byte buffer in Wasm memory.
- sql_
dialect_ ⚠fmt_ clear_ result - Release the most recent formatted result, if any.
- sql_
dialect_ ⚠fmt_ dealloc - Free a buffer previously allocated by
sql_dialect_fmt_alloc. - sql_
dialect_ ⚠fmt_ format - Format the UTF-8 SQL source stored at
ptr..ptr + len. - sql_
dialect_ ⚠fmt_ format_ with_ dialect - Format the UTF-8 SQL source stored at
ptr..ptr + lenusing an explicit dialect. - sql_
dialect_ ⚠fmt_ result_ len - Byte length of the most recent formatted result.
- sql_
dialect_ ⚠fmt_ result_ ptr - Pointer to the most recent formatted result.