(define-datatypes!)
(duckdb_append_blob appender data length)
No documentation!
No documentation!
(duckdb_append_bool appender value)
No documentation!
No documentation!
(duckdb_append_date appender value)
No documentation!
No documentation!
(duckdb_append_double appender value)
No documentation!
No documentation!
(duckdb_append_float appender value)
No documentation!
No documentation!
(duckdb_append_hugeint appender lower upper)
No documentation!
No documentation!
(duckdb_append_int16 appender value)
No documentation!
No documentation!
(duckdb_append_int32 appender value)
No documentation!
No documentation!
(duckdb_append_int64 appender value)
No documentation!
No documentation!
(duckdb_append_int8 appender value)
No documentation!
No documentation!
(duckdb_append_time appender value)
No documentation!
No documentation!
(duckdb_append_timestamp appender value)
No documentation!
No documentation!
(duckdb_append_uint16 appender value)
No documentation!
No documentation!
(duckdb_append_uint32 appender value)
No documentation!
No documentation!
(duckdb_append_uint64 appender value)
No documentation!
No documentation!
(duckdb_append_uint8 appender value)
No documentation!
No documentation!
(duckdb_append_varchar appender value)
No documentation!
No documentation!
(duckdb_append_varchar_length appender value length)
No documentation!
No documentation!
(duckdb_appender_create connection schema table out_appender)
No documentation!
No documentation!
(duckdb_appender_destroy appender)
Close the appender and destroy it. Flushing all intermediate state in the appender to the table, and de-allocating all memory associated with the appender.
DuckDBSuccess
on success or DuckDBError
on failure.Close the appender and destroy it. Flushing all intermediate state in the appender to the table, and de-allocating all memory associated with the appender. * appender: The appender to flush, close and destroy. * returns: `DuckDBSuccess` on success or `DuckDBError` on failure.
(duckdb_appender_end_row appender)
End the current row.
End the current row.
(duckdb_appender_error appender)
Returns the error message associated with the given appender.
If the appender has no error message, this returns nullptr
instead.
The error message should not be freed. It will be de-allocated when duckdb_appender_destroy
is called.
nullptr
if there is none.Returns the error message associated with the given appender. If the appender has no error message, this returns `nullptr` instead. The error message should not be freed. It will be de-allocated when `duckdb_appender_destroy` is called. * appender: The appender to get the error from. * returns: The error message, or `nullptr` if there is none.
(duckdb_close database)
Closes the specified database and de-allocates all memory allocated for that database.
This should be called after you are done with any database allocated through duckdb_open
.
Note that failing to call duckdb_close
(in case of e.g. a program crash) will not cause data corruption.
Still it is recommended to always correctly close a database object after you are done with it.
Closes the specified database and de-allocates all memory allocated for that database. This should be called after you are done with any database allocated through `duckdb_open`. Note that failing to call `duckdb_close` (in case of e.g. a program crash) will not cause data corruption. Still it is recommended to always correctly close a database object after you are done with it. * database: The database object to shut down.
(duckdb_config_count)
This returns the total amount of configuration options available for usage with duckdb_get_config_flag
.
This should not be called in a loop as it internally loops over all the options.
This returns the total amount of configuration options available for usage with `duckdb_get_config_flag`. This should not be called in a loop as it internally loops over all the options. * returns: The amount of config options available.
(duckdb_connect database out_connection)
Opens a connection to a database. Connections are required to query the database, and store transactional state associated with the connection.
DuckDBSuccess
on success or DuckDBError
on failure.Opens a connection to a database. Connections are required to query the database, and store transactional state associated with the connection. * database: The database file to connect to. * out_connection: The result connection object. * returns: `DuckDBSuccess` on success or `DuckDBError` on failure.
(duckdb_create_config out_config)
Initializes an empty configuration object that can be used to provide start-up options for the DuckDB instance
through duckdb_open_ext
.
This will always succeed unless there is a malloc failure.
DuckDBSuccess
on success or DuckDBError
on failure.Initializes an empty configuration object that can be used to provide start-up options for the DuckDB instance through `duckdb_open_ext`. This will always succeed unless there is a malloc failure. * out_config: The result configuration object. * returns: `DuckDBSuccess` on success or `DuckDBError` on failure.
(duckdb_destroy_config config)
Destroys the specified configuration option and de-allocates all memory allocated for the object.
Destroys the specified configuration option and de-allocates all memory allocated for the object. * config: The configuration object to destroy.
(duckdb_destroy_result result)
No documentation!
No documentation!
(duckdb_disconnect connection)
Closes the specified connection and de-allocates all memory allocated for that connection.
Closes the specified connection and de-allocates all memory allocated for that connection. * connection: The connection to close.
(duckdb_get_config_flag index out_name out_description)
Obtains a human-readable name and description of a specific configuration option. This can be used to e.g.
display configuration options. This will succeed unless index
is out of range (i.e. >= duckdb_config_count
).
The result name or description MUST NOT be freed.
duckdb_config_count
)DuckDBSuccess
on success or DuckDBError
on failure.Obtains a human-readable name and description of a specific configuration option. This can be used to e.g. display configuration options. This will succeed unless `index` is out of range (i.e. `>= duckdb_config_count`). The result name or description MUST NOT be freed. * index: The index of the configuration option (between 0 and `duckdb_config_count`) * out_name: A name of the configuration flag. * out_description: A description of the configuration flag. * returns: `DuckDBSuccess` on success or `DuckDBError` on failure.
(duckdb_open path out_database)
Creates a new database or opens an existing database file stored at the the given path. If no path is given a new in-memory database is created instead.
nullptr
or :memory:
to open an in-memory database.DuckDBSuccess
on success or DuckDBError
on failure.Creates a new database or opens an existing database file stored at the the given path. If no path is given a new in-memory database is created instead. * path: Path to the database file on disk, or `nullptr` or `:memory:` to open an in-memory database. * out_database: The result database object. * returns: `DuckDBSuccess` on success or `DuckDBError` on failure.
(duckdb_open_ext path out_datatypes config out_error)
No documentation!
No documentation!
(duckdb_query connection query out_result)
No documentation!
No documentation!
(duckdb_set_config config name option)
Sets the specified option for the specified configuration. The configuration option is indicated by name.
To obtain a list of config options, see duckdb_get_config_flag
.
In the source code, configuration options are defined in config.cpp
.
This can fail if either the name is invalid, or if the value provided for the option is invalid.
DuckDBSuccess
on success or DuckDBError
on failure.Sets the specified option for the specified configuration. The configuration option is indicated by name. To obtain a list of config options, see `duckdb_get_config_flag`. In the source code, configuration options are defined in `config.cpp`. This can fail if either the name is invalid, or if the value provided for the option is invalid. * duckdb_config: The configuration object to set the option on. * name: The name of the configuration flag to set. * option: The value to set the configuration flag to. * returns: `DuckDBSuccess` on success or `DuckDBError` on failure.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close