Skip to main content

sql_dialect_fmt_format_with_dialect

Function sql_dialect_fmt_format_with_dialect 

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

Format the UTF-8 SQL source stored at ptr..ptr + len using an explicit dialect.

dialect values:

  • 0: Snowflake
  • 1: Databricks

Unknown values fall back to Snowflake for forwards-compatible callers.

ยงSafety

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