Client APIs
API Reference Overview
Closes the appender by flushing all intermediate states and closing it for further appends. If flushing the data
triggers a constraint violation or any other error, then all data is invalidated, and this function returns DuckDBError.
Call duckdb_appender_error to obtain the error message followed by duckdb_appender_destroy to destroy the invalidated
appender.  
###### Syntax {#docs:api:c:api::syntax}  
```c
duckdb_state duckdb_appender_close(
duckdb_appender appender
);
```  
###### Parameters {#docs:api:c:api::parameters}  
* `appender`: The appender to flush and close.  
###### Return Value {#docs:api:c:api::return-value}  
`DuckDBSuccess` on success or `DuckDBError` on failure.  
<br>