Client APIs
API Reference Overview
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'.  
###### Syntax {#docs:api:c:connect::syntax}  
```c
duckdb_state duckdb_connect(
duckdb_database database,
duckdb_connection *out_connection
);
```  
###### Parameters {#docs:api:c:connect::parameters}  
* `database`: The database file to connect to.
* `out_connection`: The result connection object.  
###### Return Value {#docs:api:c:connect::return-value}  
`DuckDBSuccess` on success or `DuckDBError` on failure.  
<br>