quackdb_internal::ffi

Function duckdb_parameter_name

Source
pub unsafe extern "C" fn duckdb_parameter_name(
    prepared_statement: *mut _duckdb_prepared_statement,
    index: u64,
) -> *const i8
Expand description

Returns the name used to identify the parameter The returned string should be freed using duckdb_free.

Returns NULL if the index is out of range for the provided prepared statement.

prepared_statement: The prepared statement for which to get the parameter name from.