Skip to main content

duckdb_catalog_get_entry

Function duckdb_catalog_get_entry 

Source
pub unsafe extern "C" fn duckdb_catalog_get_entry(
    catalog: duckdb_catalog,
    context: duckdb_client_context,
    entry_type: duckdb_catalog_entry_type,
    schema_name: *const c_char,
    entry_name: *const c_char,
) -> duckdb_catalog_entry
Expand description

Retrieve a catalog entry from the given catalog by type, schema name and entry name. The returned catalog entry remains valid for the duration of the current transaction.

@param catalog The catalog. @param context The client context. @param entry_type The type of the catalog entry to retrieve. @param schema_name The schema name of the catalog entry. @param entry_name The name of the catalog entry. @return The resulting catalog entry, or nullptr if no such entry exists. Must be destroyed with duckdb_destroy_catalog_entry. Remains valid for the duration of the current transaction.