Skip to main content

laminar_schema_export

Function laminar_schema_export 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn laminar_schema_export( schema: *mut LaminarSchema, out_schema: *mut FFI_ArrowSchema, ) -> i32
Expand description

Export just the schema to the Arrow C Data Interface.

Useful when consumers need the schema before receiving data.

§Arguments

  • schema - Schema to export
  • out_schema - Pointer to caller-allocated ArrowSchema struct

§Returns

LAMINAR_OK on success, or an error code.

§Safety

  • schema must be a valid schema handle
  • out_schema must be a valid pointer to an uninitialized struct
  • Caller must eventually call the release callback