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. The instantiated connection should be closed using ‘duckdb_disconnect’.
@param database The database file to connect to.
@param out_connection The result connection object.
@return DuckDBSuccess
on success or DuckDBError
on failure.