Function 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 database must be closed with ‘duckdb_close’.

@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. @return DuckDBSuccess on success or DuckDBError on failure.