Skip to main content

sql_dialect_fmt_format

Function sql_dialect_fmt_format 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn sql_dialect_fmt_format( ptr: u32, len: u32, line_width: u32, indent_width: u32, uppercase_keywords: u32, ) -> u32
Expand description

Format the UTF-8 SQL source stored at ptr..ptr + len.

Returns:

  • 0: success; read sql_dialect_fmt_result_ptr() and sql_dialect_fmt_result_len().
  • 1: invalid UTF-8 input; no result is stored.

ยงSafety

ptr must point to len initialized bytes in Wasm memory for the duration of the call.