quackdb_internal::ffi

Function duckdb_open_ext

Source
pub unsafe extern "C" fn duckdb_open_ext(
    path: *const i8,
    out_database: *mut *mut _duckdb_database,
    config: *mut _duckdb_config,
    out_error: *mut *mut i8,
) -> u32
Expand description

Extended version of duckdb_open. Creates a new database or opens an existing database file stored at the given path.

path: Path to the database file on disk, or nullptr or :memory: to open an in-memory database. out_database: The result database object. config: (Optional) configuration used to start up the database system. out_error: If set and the function returns DuckDBError, this will contain the reason why the start-up failed. Note that the error must be freed using duckdb_free. returns: DuckDBSuccess on success or DuckDBError on failure.