pub unsafe extern "C" fn duckdb_open_ext(
    path: *const c_char,
    out_database: *mut duckdb_database,
    config: duckdb_config,
    out_error: *mut *mut c_char
) -> duckdb_state
Expand description

Extended version of duckdb_open. Creates a new database or opens an existing database file stored at the given path. The instantiated database should be closed with ‘duckdb_close’.

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.