Function libduckdb_sys::duckdb_open

source ·
pub unsafe extern "C" fn duckdb_open(
    path: *const c_char,
    out_database: *mut duckdb_database
) -> duckdb_state
Expand description

Creates a new database or opens an existing database file stored at the given path. If no path is given a new in-memory database is created instead. 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. returns: DuckDBSuccess on success or DuckDBError on failure.