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_stateExpand description
Extended version of duckdb_open. Creates a new database or opens an existing database file stored at the given path. The database must be closed with ‘duckdb_close’.
history:
- stable: v0.2.8
@param path Path to the database file on disk. Both nullptr and :memory: open an in-memory database.
@param out_database The result database object.
@param config (Optional) configuration used to start up the database.
@param out_error If set and the function returns DuckDBError, this contains the error message. Note that the error
message must be freed using duckdb_free.
@return duckdb_state