Function libduckdb_sys::duckdb_connect [−][src]
pub unsafe extern "C" fn duckdb_connect(
database: duckdb_database,
out_connection: *mut duckdb_connection
) -> duckdb_state
Expand description
Opens a connection to a database. Connections are required to query the database, and store transactional state associated with the connection.
database: The database file to connect to.
out_connection: The result connection object.
returns: DuckDBSuccess
on success or DuckDBError
on failure.