quackdb_internal::ffi

Function duckdb_nparams

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

Returns the number of parameters that can be provided to the given prepared statement.

Returns 0 if the query was not successfully prepared.

prepared_statement: The prepared statement to obtain the number of parameters for.