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’.

database: The database file to connect to. out_connection: The result connection object. returns: DuckDBSuccess on success or DuckDBError on failure.