Function libduckdb_sys::duckdb_open [−][src]
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 the given path. If no path is given a new in-memory database is created instead.
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.