Client APIs
API Reference Overview
Creates a new database or opens an existing database file stored at the given path.
If no path is given a new in-memory database is created instead.
The instantiated database should be closed with 'duckdb_close'.  
###### Syntax {#docs:api:c:api::syntax}  
```c
duckdb_state duckdb_open(
const char *path,
duckdb_database *out_database
);
```  
###### Parameters {#docs:api:c:api::parameters}  
* `path`: Path to the database file on disk, or `nullptr` or `:memory:` to open an in-memory database.
* `out_database`: The result database object.  
###### Return Value {#docs:api:c:api::return-value}  
`DuckDBSuccess` on success or `DuckDBError` on failure.  
<br>