Skip to main content

laminar_schema_field_name

Function laminar_schema_field_name 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn laminar_schema_field_name( schema: *mut LaminarSchema, index: usize, out: *mut *mut c_char, ) -> i32
Expand description

Get the name of a field by index.

§Arguments

  • schema - Schema handle
  • index - Field index (0-based)
  • out - Pointer to receive field name (caller frees with laminar_string_free)

§Returns

LAMINAR_OK on success, or an error code.

§Safety

  • schema must be a valid schema handle
  • index must be less than the number of fields
  • out must be a valid pointer