Crate libduckdb_sys[][src]

Structs

Enums

Error Codes

Constants

Statics

Functions

! get arrow column count

! get arrow row count

! get arrow rows changed

! binds parameters to prepared statement

! Closes the database.

! Returns the column name of the specified column. The result does not need to be freed; ! the column names will automatically be destroyed when the result is destroyed.

! Returns the amount of config options available. ! Should not be called in a loop as it internally loops over all the options.

! Creates a connection to the specified database. [OUT: connection]

! Creates a DuckDB configuration object. The created object must be destroyed with duckdb_destroy_config.

! Destroys the arrow result

! Destroys a config object created with duckdb_create_config

! Destroys the specified prepared statement descriptor

! Destroys the specified result

! Closes the specified connection handle

! Executes the prepared statements with currently bound parameters

! Executes the prepared statements with currently bound parameters and return arrow result

! Free a value returned from duckdb_malloc, duckdb_value_varchar or duckdb_value_blob

! Returns the config name and description for the config at the specified index ! The result MUST NOT be freed ! Returns failure if the index is out of range (i.e. >= duckdb_config_count)

! Allocate [size] amounts of memory using the duckdb internal malloc function. Any memory allocated in this manner ! should be freed using duckdb_free

! Opens a database file at the given path (nullptr for in-memory). Returns DuckDBSuccess on success, or DuckDBError on ! failure. [OUT: database]

! Opens a database file at the given path using the specified configuration ! If error is set the error will be reported

! prepares the specified SQL query in the specified connection handle. [OUT: prepared statement descriptor]

! Executes the specified SQL query in the specified connection handle. [OUT: result descriptor]

! query duckdb result as arrow data structure

! get arrow data array ! This function can be called multiple time to get next chunks, which will free the previous out_array. ! So consume the out_array before call this function again

! get arrow error message

! get arrow schema

! Sets the specified config option for the configuration

! Fetches a blob from a result set column. Returns a blob with blob.data set to nullptr on failure or NULL. The ! resulting “blob.data” must be freed with duckdb_free.

! Converts the specified value to a bool. Returns false on failure or NULL.

! Converts the specified value to a double. Returns 0.0 on failure or NULL.

! Converts the specified value to a float. Returns 0.0 on failure or NULL.

! Converts the specified value to an int8_t. Returns 0 on failure or NULL.

! Converts the specified value to an int16_t. Returns 0 on failure or NULL.

! Converts the specified value to an int64_t. Returns 0 on failure or NULL.

! Converts the specified value to an int64_t. Returns 0 on failure or NULL.

! Converts the specified value to an uint8_t. Returns 0 on failure or NULL.

! Converts the specified value to an uint16_t. Returns 0 on failure or NULL.

! Converts the specified value to an uint64_t. Returns 0 on failure or NULL.

! Converts the specified value to an uint64_t. Returns 0 on failure or NULL.

! Converts the specified value to a string. Returns nullptr on failure or NULL. The result must be freed with ! duckdb_free.

Type Definitions

Unions