h1 stringclasses 12
values | h2 stringclasses 93
values | h3 stringlengths 0 64 | h5 stringlengths 0 79 | content stringlengths 24 533k | tokens int64 7 158k | content_embeddings_openai_text_embedding_3_small_512 listlengths 512 512 | content_embeddings_potion_base_8M_256 listlengths 256 256 |
|---|---|---|---|---|---|---|---|
Data Import | Appender | Appender Support in Other Clients | The Appender is also available in the following client APIs:
* [C](#docs:api:c:appender)
* [Go](#docs:api:go::appender)
* [Julia](#docs:api:julia::appender-api)
* [JDBC (Java)](#docs:api:java::appender)
* [Rust](#docs:api:rust::appender) | 88 | [
0.11890102177858353,
0.01533113420009613,
-0.01635786145925522,
0.02390380948781967,
0.0552239827811718,
-0.0536290667951107,
0.0549049973487854,
0.024422157555818558,
0.00978381559252739,
-0.02972525544464588,
0.050518978387117386,
0.0003144664515275508,
-0.01877017319202423,
-0.031838521... | [
-0.10126056522130966,
0.08506700396537781,
-0.06488365679979324,
-0.09601891785860062,
-0.08698877692222595,
-0.025475014001131058,
-0.10939063876867294,
-0.08438839018344879,
-0.13741590082645416,
-0.006689759902656078,
0.030868330970406532,
0.07191573083400726,
-0.028996339067816734,
-0.... | |
Data Import | INSERT Statements | `INSERT` statements are the standard way of loading data into a relational database. When using `INSERT` statements, the values are supplied row-by-row. While simple, there is significant overhead involved in parsing and processing individual `INSERT` statements. This makes lots of individual row-by-row insertions very... | 258 | [
0.11890102177858353,
0.01533113420009613,
-0.01635786145925522,
0.02390380948781967,
0.0552239827811718,
-0.0536290667951107,
0.0549049973487854,
0.024422157555818558,
0.00978381559252739,
-0.02972525544464588,
0.050518978387117386,
0.0003144664515275508,
-0.01877017319202423,
-0.031838521... | [
-0.10126056522130966,
0.08506700396537781,
-0.06488365679979324,
-0.09601891785860062,
-0.08698877692222595,
-0.025475014001131058,
-0.10939063876867294,
-0.08438839018344879,
-0.13741590082645416,
-0.006689759902656078,
0.030868330970406532,
0.07191573083400726,
-0.028996339067816734,
-0.... | ||
Data Import | INSERT Statements | Syntax | An example of using `INSERT INTO` to load data in a table is as follows:
```sql
CREATE TABLE people (id INTEGER, name VARCHAR);
INSERT INTO people VALUES (1, 'Mark'), (2, 'Hannes');
```
For a more detailed description together with syntax diagram can be found, see the [page on the `INSERT` statement](#docs:sql:stat... | 84 | [
0.11890102177858353,
0.01533113420009613,
-0.01635786145925522,
0.02390380948781967,
0.0552239827811718,
-0.0536290667951107,
0.0549049973487854,
0.024422157555818558,
0.00978381559252739,
-0.02972525544464588,
0.050518978387117386,
0.0003144664515275508,
-0.01877017319202423,
-0.031838521... | [
-0.10126056522130966,
0.08506700396537781,
-0.06488365679979324,
-0.09601891785860062,
-0.08698877692222595,
-0.025475014001131058,
-0.10939063876867294,
-0.08438839018344879,
-0.13741590082645416,
-0.006689759902656078,
0.030868330970406532,
0.07191573083400726,
-0.028996339067816734,
-0.... | |
Client APIs | Client APIs Overview | DuckDB is an in-process database system and offers client APIs for several languages. These clients support the same DuckDB file format and SQL syntax. We strived to make their APIs follow their host language's conventions.
Client APIs:
* Standalone [Command Line Interface (CLI)](#docs:api:cli:overview) client
* [A... | 490 | [
0.11890102177858353,
0.01533113420009613,
-0.01635786145925522,
0.02390380948781967,
0.0552239827811718,
-0.0536290667951107,
0.0549049973487854,
0.024422157555818558,
0.00978381559252739,
-0.02972525544464588,
0.050518978387117386,
0.0003144664515275508,
-0.01877017319202423,
-0.031838521... | [
-0.10126056522130966,
0.08506700396537781,
-0.06488365679979324,
-0.09601891785860062,
-0.08698877692222595,
-0.025475014001131058,
-0.10939063876867294,
-0.08438839018344879,
-0.13741590082645416,
-0.006689759902656078,
0.030868330970406532,
0.07191573083400726,
-0.028996339067816734,
-0.... | ||
Client APIs | C | Overview | DuckDB implements a custom C API modelled somewhat following the SQLite C API. The API is contained in the `duckdb.h` header. Continue to [Startup & Shutdown](#docs:api:c:connect) to get started, or check out the [Full API overview](#docs:api:c:api).
We also provide a SQLite API wrapper which means that if your appli... | 136 | [
0.11890102177858353,
0.01533113420009613,
-0.01635786145925522,
0.02390380948781967,
0.0552239827811718,
-0.0536290667951107,
0.0549049973487854,
0.024422157555818558,
0.00978381559252739,
-0.02972525544464588,
0.050518978387117386,
0.0003144664515275508,
-0.01877017319202423,
-0.031838521... | [
-0.10126056522130966,
0.08506700396537781,
-0.06488365679979324,
-0.09601891785860062,
-0.08698877692222595,
-0.025475014001131058,
-0.10939063876867294,
-0.08438839018344879,
-0.13741590082645416,
-0.006689759902656078,
0.030868330970406532,
0.07191573083400726,
-0.028996339067816734,
-0.... | |
Client APIs | C | Installation | The DuckDB C API can be installed as part of the `libduckdb` packages. Please see the [installation page](https://duckdb.org/docs/installation/) for details. | 38 | [
0.11890102177858353,
0.01533113420009613,
-0.01635786145925522,
0.02390380948781967,
0.0552239827811718,
-0.0536290667951107,
0.0549049973487854,
0.024422157555818558,
0.00978381559252739,
-0.02972525544464588,
0.050518978387117386,
0.0003144664515275508,
-0.01877017319202423,
-0.031838521... | [
-0.10126056522130966,
0.08506700396537781,
-0.06488365679979324,
-0.09601891785860062,
-0.08698877692222595,
-0.025475014001131058,
-0.10939063876867294,
-0.08438839018344879,
-0.13741590082645416,
-0.006689759902656078,
0.030868330970406532,
0.07191573083400726,
-0.028996339067816734,
-0.... | |
Client APIs | C | Startup & Shutdown | To use DuckDB, you must first initialize a `duckdb_database` handle using `duckdb_open()`. `duckdb_open()` takes as parameter the database file to read and write from. The special value `NULL` (` nullptr`) can be used to create an **in-memory database**. Note that for an in-memory database no data is persisted to disk ... | 193 | [
0.11890102177858353,
0.01533113420009613,
-0.01635786145925522,
0.02390380948781967,
0.0552239827811718,
-0.0536290667951107,
0.0549049973487854,
0.024422157555818558,
0.00978381559252739,
-0.02972525544464588,
0.050518978387117386,
0.0003144664515275508,
-0.01877017319202423,
-0.031838521... | [
-0.10126056522130966,
0.08506700396537781,
-0.06488365679979324,
-0.09601891785860062,
-0.08698877692222595,
-0.025475014001131058,
-0.10939063876867294,
-0.08438839018344879,
-0.13741590082645416,
-0.006689759902656078,
0.030868330970406532,
0.07191573083400726,
-0.028996339067816734,
-0.... | |
Client APIs | C | Example | ```c
duckdb_database db;
duckdb_connection con;
if (duckdb_open(NULL, &db) == DuckDBError) {
// handle error
}
if (duckdb_connect(db, &con) == DuckDBError) {
// handle error
}
// run queries...
// cleanup
duckdb_disconnect(&con);
duckdb_close(&db);
``` | 75 | [
0.11890102177858353,
0.01533113420009613,
-0.01635786145925522,
0.02390380948781967,
0.0552239827811718,
-0.0536290667951107,
0.0549049973487854,
0.024422157555818558,
0.00978381559252739,
-0.02972525544464588,
0.050518978387117386,
0.0003144664515275508,
-0.01877017319202423,
-0.031838521... | [
-0.10126056522130966,
0.08506700396537781,
-0.06488365679979324,
-0.09601891785860062,
-0.08698877692222595,
-0.025475014001131058,
-0.10939063876867294,
-0.08438839018344879,
-0.13741590082645416,
-0.006689759902656078,
0.030868330970406532,
0.07191573083400726,
-0.028996339067816734,
-0.... | |
Client APIs | C | API Reference Overview | <!-- This section is generated by scripts/generate_c_api_docs.py -->
```c
duckdb_state duckdb_open(const char *path, duckdb_database *out_database);
duckdb_state duckdb_open_ext(const char *path, duckdb_database *out_database, duckdb_config config, char **out_error);
void duckdb_close(duckdb_database *database);
duck... | 140 | [
0.11890102177858353,
0.01533113420009613,
-0.01635786145925522,
0.02390380948781967,
0.0552239827811718,
-0.0536290667951107,
0.0549049973487854,
0.024422157555818558,
0.00978381559252739,
-0.02972525544464588,
0.050518978387117386,
0.0003144664515275508,
-0.01877017319202423,
-0.031838521... | [
-0.10126056522130966,
0.08506700396537781,
-0.06488365679979324,
-0.09601891785860062,
-0.08698877692222595,
-0.025475014001131058,
-0.10939063876867294,
-0.08438839018344879,
-0.13741590082645416,
-0.006689759902656078,
0.030868330970406532,
0.07191573083400726,
-0.028996339067816734,
-0.... | |
Client APIs | C | API Reference Overview | `duckdb_open` | 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:connect::syntax}
```c
duckdb_state duckdb_open(
const char *path,
duckdb_dat... | 172 | [
0.11890102177858353,
0.01533113420009613,
-0.01635786145925522,
0.02390380948781967,
0.0552239827811718,
-0.0536290667951107,
0.0549049973487854,
0.024422157555818558,
0.00978381559252739,
-0.02972525544464588,
0.050518978387117386,
0.0003144664515275508,
-0.01877017319202423,
-0.031838521... | [
-0.10126056522130966,
0.08506700396537781,
-0.06488365679979324,
-0.09601891785860062,
-0.08698877692222595,
-0.025475014001131058,
-0.10939063876867294,
-0.08438839018344879,
-0.13741590082645416,
-0.006689759902656078,
0.030868330970406532,
0.07191573083400726,
-0.028996339067816734,
-0.... |
Client APIs | C | API Reference Overview | `duckdb_open_ext` | Extended version of duckdb_open. Creates a new database or opens an existing database file stored at the given path.
The instantiated database should be closed with 'duckdb_close'.
###### Syntax {#docs:api:c:connect::syntax}
```c
duckdb_state duckdb_open_ext(
const char *path,
duckdb_database *out_database,
duckdb_... | 231 | [
0.11890102177858353,
0.01533113420009613,
-0.01635786145925522,
0.02390380948781967,
0.0552239827811718,
-0.0536290667951107,
0.0549049973487854,
0.024422157555818558,
0.00978381559252739,
-0.02972525544464588,
0.050518978387117386,
0.0003144664515275508,
-0.01877017319202423,
-0.031838521... | [
-0.10126056522130966,
0.08506700396537781,
-0.06488365679979324,
-0.09601891785860062,
-0.08698877692222595,
-0.025475014001131058,
-0.10939063876867294,
-0.08438839018344879,
-0.13741590082645416,
-0.006689759902656078,
0.030868330970406532,
0.07191573083400726,
-0.028996339067816734,
-0.... |
Client APIs | C | API Reference Overview | `duckdb_close` | 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` or `duckdb_open_ext`.
Note that failing to call `duckdb_close` (in case of e.g., a program crash) will not cause data corruption.
Still, it is... | 148 | [
0.11890102177858353,
0.01533113420009613,
-0.01635786145925522,
0.02390380948781967,
0.0552239827811718,
-0.0536290667951107,
0.0549049973487854,
0.024422157555818558,
0.00978381559252739,
-0.02972525544464588,
0.050518978387117386,
0.0003144664515275508,
-0.01877017319202423,
-0.031838521... | [
-0.10126056522130966,
0.08506700396537781,
-0.06488365679979324,
-0.09601891785860062,
-0.08698877692222595,
-0.025475014001131058,
-0.10939063876867294,
-0.08438839018344879,
-0.13741590082645416,
-0.006689759902656078,
0.030868330970406532,
0.07191573083400726,
-0.028996339067816734,
-0.... |
Client APIs | C | API Reference Overview | `duckdb_connect` | 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 databa... | 151 | [
0.11890102177858353,
0.01533113420009613,
-0.01635786145925522,
0.02390380948781967,
0.0552239827811718,
-0.0536290667951107,
0.0549049973487854,
0.024422157555818558,
0.00978381559252739,
-0.02972525544464588,
0.050518978387117386,
0.0003144664515275508,
-0.01877017319202423,
-0.031838521... | [
-0.10126056522130966,
0.08506700396537781,
-0.06488365679979324,
-0.09601891785860062,
-0.08698877692222595,
-0.025475014001131058,
-0.10939063876867294,
-0.08438839018344879,
-0.13741590082645416,
-0.006689759902656078,
0.030868330970406532,
0.07191573083400726,
-0.028996339067816734,
-0.... |
Client APIs | C | API Reference Overview | `duckdb_interrupt` | Interrupt running query
###### Syntax {#docs:api:c:connect::syntax}
```c
void duckdb_interrupt(
duckdb_connection connection
);
```
###### Parameters {#docs:api:c:connect::parameters}
* `connection`: The connection to interrupt
<br> | 59 | [
0.11890102177858353,
0.01533113420009613,
-0.01635786145925522,
0.02390380948781967,
0.0552239827811718,
-0.0536290667951107,
0.0549049973487854,
0.024422157555818558,
0.00978381559252739,
-0.02972525544464588,
0.050518978387117386,
0.0003144664515275508,
-0.01877017319202423,
-0.031838521... | [
-0.10126056522130966,
0.08506700396537781,
-0.06488365679979324,
-0.09601891785860062,
-0.08698877692222595,
-0.025475014001131058,
-0.10939063876867294,
-0.08438839018344879,
-0.13741590082645416,
-0.006689759902656078,
0.030868330970406532,
0.07191573083400726,
-0.028996339067816734,
-0.... |
Client APIs | C | API Reference Overview | `duckdb_query_progress` | Get progress of the running query
###### Syntax {#docs:api:c:connect::syntax}
```c
duckdb_query_progress_type duckdb_query_progress(
duckdb_connection connection
);
```
###### Parameters {#docs:api:c:connect::parameters}
* `connection`: The working connection
###### Return Value {#docs:api:c:connect::return-v... | 94 | [
0.11890102177858353,
0.01533113420009613,
-0.01635786145925522,
0.02390380948781967,
0.0552239827811718,
-0.0536290667951107,
0.0549049973487854,
0.024422157555818558,
0.00978381559252739,
-0.02972525544464588,
0.050518978387117386,
0.0003144664515275508,
-0.01877017319202423,
-0.031838521... | [
-0.10126056522130966,
0.08506700396537781,
-0.06488365679979324,
-0.09601891785860062,
-0.08698877692222595,
-0.025475014001131058,
-0.10939063876867294,
-0.08438839018344879,
-0.13741590082645416,
-0.006689759902656078,
0.030868330970406532,
0.07191573083400726,
-0.028996339067816734,
-0.... |
Client APIs | C | API Reference Overview | `duckdb_disconnect` | Closes the specified connection and de-allocates all memory allocated for that connection.
###### Syntax {#docs:api:c:connect::syntax}
```c
void duckdb_disconnect(
duckdb_connection *connection
);
```
###### Parameters {#docs:api:c:connect::parameters}
* `connection`: The connection to close.
<br> | 75 | [
0.11890102177858353,
0.01533113420009613,
-0.01635786145925522,
0.02390380948781967,
0.0552239827811718,
-0.0536290667951107,
0.0549049973487854,
0.024422157555818558,
0.00978381559252739,
-0.02972525544464588,
0.050518978387117386,
0.0003144664515275508,
-0.01877017319202423,
-0.031838521... | [
-0.10126056522130966,
0.08506700396537781,
-0.06488365679979324,
-0.09601891785860062,
-0.08698877692222595,
-0.025475014001131058,
-0.10939063876867294,
-0.08438839018344879,
-0.13741590082645416,
-0.006689759902656078,
0.030868330970406532,
0.07191573083400726,
-0.028996339067816734,
-0.... |
Client APIs | C | API Reference Overview | `duckdb_library_version` | Returns the version of the linked DuckDB, with a version postfix for dev versions
Usually used for developing C extensions that must return this for a compatibility check.
###### Syntax {#docs:api:c:connect::syntax}
```c
const char *duckdb_library_version(
);
```
<br> | 63 | [
0.11890102177858353,
0.01533113420009613,
-0.01635786145925522,
0.02390380948781967,
0.0552239827811718,
-0.0536290667951107,
0.0549049973487854,
0.024422157555818558,
0.00978381559252739,
-0.02972525544464588,
0.050518978387117386,
0.0003144664515275508,
-0.01877017319202423,
-0.031838521... | [
-0.10126056522130966,
0.08506700396537781,
-0.06488365679979324,
-0.09601891785860062,
-0.08698877692222595,
-0.025475014001131058,
-0.10939063876867294,
-0.08438839018344879,
-0.13741590082645416,
-0.006689759902656078,
0.030868330970406532,
0.07191573083400726,
-0.028996339067816734,
-0.... |
Client APIs | C | Configuration | Configuration options can be provided to change different settings of the database system. Note that many of these
settings can be changed later on using [`PRAGMA` statements](#..:..:configuration:pragmas) as well. The configuration object
should be created, filled with values and passed to `duckdb_open_ext`. | 67 | [
0.11890102177858353,
0.01533113420009613,
-0.01635786145925522,
0.02390380948781967,
0.0552239827811718,
-0.0536290667951107,
0.0549049973487854,
0.024422157555818558,
0.00978381559252739,
-0.02972525544464588,
0.050518978387117386,
0.0003144664515275508,
-0.01877017319202423,
-0.031838521... | [
-0.10126056522130966,
0.08506700396537781,
-0.06488365679979324,
-0.09601891785860062,
-0.08698877692222595,
-0.025475014001131058,
-0.10939063876867294,
-0.08438839018344879,
-0.13741590082645416,
-0.006689759902656078,
0.030868330970406532,
0.07191573083400726,
-0.028996339067816734,
-0.... | |
Client APIs | C | Example | ```c
duckdb_database db;
duckdb_config config;
// create the configuration object
if (duckdb_create_config(&config) == DuckDBError) {
// handle error
}
// set some configuration options
duckdb_set_config(config, "access_mode", "READ_WRITE"); // or READ_ONLY
duckdb_set_config(config, "threads", "8");
duckdb_set_config(... | 164 | [
0.11890102177858353,
0.01533113420009613,
-0.01635786145925522,
0.02390380948781967,
0.0552239827811718,
-0.0536290667951107,
0.0549049973487854,
0.024422157555818558,
0.00978381559252739,
-0.02972525544464588,
0.050518978387117386,
0.0003144664515275508,
-0.01877017319202423,
-0.031838521... | [
-0.10126056522130966,
0.08506700396537781,
-0.06488365679979324,
-0.09601891785860062,
-0.08698877692222595,
-0.025475014001131058,
-0.10939063876867294,
-0.08438839018344879,
-0.13741590082645416,
-0.006689759902656078,
0.030868330970406532,
0.07191573083400726,
-0.028996339067816734,
-0.... | |
Client APIs | C | API Reference Overview | <!-- This section is generated by scripts/generate_c_api_docs.py -->
```c
duckdb_state duckdb_create_config(duckdb_config *out_config);
size_t duckdb_config_count();
duckdb_state duckdb_get_config_flag(size_t index, const char **out_name, const char **out_description);
duckdb_state duckdb_set_config(duckdb_config con... | 100 | [
0.11890102177858353,
0.01533113420009613,
-0.01635786145925522,
0.02390380948781967,
0.0552239827811718,
-0.0536290667951107,
0.0549049973487854,
0.024422157555818558,
0.00978381559252739,
-0.02972525544464588,
0.050518978387117386,
0.0003144664515275508,
-0.01877017319202423,
-0.031838521... | [
-0.10126056522130966,
0.08506700396537781,
-0.06488365679979324,
-0.09601891785860062,
-0.08698877692222595,
-0.025475014001131058,
-0.10939063876867294,
-0.08438839018344879,
-0.13741590082645416,
-0.006689759902656078,
0.030868330970406532,
0.07191573083400726,
-0.028996339067816734,
-0.... | |
Client APIs | C | API Reference Overview | `duckdb_create_config` | Initializes an empty configuration object that can be used to provide start-up options for the DuckDB instance
through `duckdb_open_ext`.
The duckdb_config must be destroyed using 'duckdb_destroy_config'
This will always succeed unless there is a malloc failure.
Note that `duckdb_destroy_config` should always be ca... | 182 | [
0.11890102177858353,
0.01533113420009613,
-0.01635786145925522,
0.02390380948781967,
0.0552239827811718,
-0.0536290667951107,
0.0549049973487854,
0.024422157555818558,
0.00978381559252739,
-0.02972525544464588,
0.050518978387117386,
0.0003144664515275508,
-0.01877017319202423,
-0.031838521... | [
-0.10126056522130966,
0.08506700396537781,
-0.06488365679979324,
-0.09601891785860062,
-0.08698877692222595,
-0.025475014001131058,
-0.10939063876867294,
-0.08438839018344879,
-0.13741590082645416,
-0.006689759902656078,
0.030868330970406532,
0.07191573083400726,
-0.028996339067816734,
-0.... |
Client APIs | C | API Reference Overview | `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.
###### Return Value {#docs:api:c:config::return-value}
The amount of config options available.
###### Syntax {#docs:api:c:con... | 91 | [
0.11890102177858353,
0.01533113420009613,
-0.01635786145925522,
0.02390380948781967,
0.0552239827811718,
-0.0536290667951107,
0.0549049973487854,
0.024422157555818558,
0.00978381559252739,
-0.02972525544464588,
0.050518978387117386,
0.0003144664515275508,
-0.01877017319202423,
-0.031838521... | [
-0.10126056522130966,
0.08506700396537781,
-0.06488365679979324,
-0.09601891785860062,
-0.08698877692222595,
-0.025475014001131058,
-0.10939063876867294,
-0.08438839018344879,
-0.13741590082645416,
-0.006689759902656078,
0.030868330970406532,
0.07191573083400726,
-0.028996339067816734,
-0.... |
Client APIs | C | API Reference Overview | `duckdb_get_config_flag` | 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.
###### Syntax {#docs:api:c:config::syntax}
... | 203 | [
0.11890102177858353,
0.01533113420009613,
-0.01635786145925522,
0.02390380948781967,
0.0552239827811718,
-0.0536290667951107,
0.0549049973487854,
0.024422157555818558,
0.00978381559252739,
-0.02972525544464588,
0.050518978387117386,
0.0003144664515275508,
-0.01877017319202423,
-0.031838521... | [
-0.10126056522130966,
0.08506700396537781,
-0.06488365679979324,
-0.09601891785860062,
-0.08698877692222595,
-0.025475014001131058,
-0.10939063876867294,
-0.08438839018344879,
-0.13741590082645416,
-0.006689759902656078,
0.030868330970406532,
0.07191573083400726,
-0.028996339067816734,
-0.... |
Client APIs | C | API Reference Overview | `duckdb_set_config` | 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... | 205 | [
0.11890102177858353,
0.01533113420009613,
-0.01635786145925522,
0.02390380948781967,
0.0552239827811718,
-0.0536290667951107,
0.0549049973487854,
0.024422157555818558,
0.00978381559252739,
-0.02972525544464588,
0.050518978387117386,
0.0003144664515275508,
-0.01877017319202423,
-0.031838521... | [
-0.10126056522130966,
0.08506700396537781,
-0.06488365679979324,
-0.09601891785860062,
-0.08698877692222595,
-0.025475014001131058,
-0.10939063876867294,
-0.08438839018344879,
-0.13741590082645416,
-0.006689759902656078,
0.030868330970406532,
0.07191573083400726,
-0.028996339067816734,
-0.... |
Client APIs | C | API Reference Overview | `duckdb_destroy_config` | Destroys the specified configuration object and de-allocates all memory allocated for the object.
###### Syntax {#docs:api:c:config::syntax}
```c
void duckdb_destroy_config(
duckdb_config *config
);
```
###### Parameters {#docs:api:c:config::parameters}
* `config`: The configuration object to destroy.
<br> | 78 | [
0.11890102177858353,
0.01533113420009613,
-0.01635786145925522,
0.02390380948781967,
0.0552239827811718,
-0.0536290667951107,
0.0549049973487854,
0.024422157555818558,
0.00978381559252739,
-0.02972525544464588,
0.050518978387117386,
0.0003144664515275508,
-0.01877017319202423,
-0.031838521... | [
-0.10126056522130966,
0.08506700396537781,
-0.06488365679979324,
-0.09601891785860062,
-0.08698877692222595,
-0.025475014001131058,
-0.10939063876867294,
-0.08438839018344879,
-0.13741590082645416,
-0.006689759902656078,
0.030868330970406532,
0.07191573083400726,
-0.028996339067816734,
-0.... |
Client APIs | C | Query | The `duckdb_query` method allows SQL queries to be run in DuckDB from C. This method takes two parameters, a (null-terminated) SQL query string and a `duckdb_result` result pointer. The result pointer may be `NULL` if the application is not interested in the result set or if the query produces no result. After the resu... | 155 | [
0.11890102177858353,
0.01533113420009613,
-0.01635786145925522,
0.02390380948781967,
0.0552239827811718,
-0.0536290667951107,
0.0549049973487854,
0.024422157555818558,
0.00978381559252739,
-0.02972525544464588,
0.050518978387117386,
0.0003144664515275508,
-0.01877017319202423,
-0.031838521... | [
-0.10126056522130966,
0.08506700396537781,
-0.06488365679979324,
-0.09601891785860062,
-0.08698877692222595,
-0.025475014001131058,
-0.10939063876867294,
-0.08438839018344879,
-0.13741590082645416,
-0.006689759902656078,
0.030868330970406532,
0.07191573083400726,
-0.028996339067816734,
-0.... | |
Client APIs | C | Example | ```c
duckdb_state state;
duckdb_result result;
// create a table
state = duckdb_query(con, "CREATE TABLE integers (i INTEGER, j INTEGER);", NULL);
if (state == DuckDBError) {
// handle error
}
// insert three rows into the table
state = duckdb_query(con, "INSERT INTO integers VALUES (3, 4), (5, 6), (7, NULL);", NULL);... | 168 | [
0.11890102177858353,
0.01533113420009613,
-0.01635786145925522,
0.02390380948781967,
0.0552239827811718,
-0.0536290667951107,
0.0549049973487854,
0.024422157555818558,
0.00978381559252739,
-0.02972525544464588,
0.050518978387117386,
0.0003144664515275508,
-0.01877017319202423,
-0.031838521... | [
-0.10126056522130966,
0.08506700396537781,
-0.06488365679979324,
-0.09601891785860062,
-0.08698877692222595,
-0.025475014001131058,
-0.10939063876867294,
-0.08438839018344879,
-0.13741590082645416,
-0.006689759902656078,
0.030868330970406532,
0.07191573083400726,
-0.028996339067816734,
-0.... | |
Client APIs | C | Value Extraction | Values can be extracted using either the `duckdb_fetch_chunk` function, or using the `duckdb_value` convenience functions. The `duckdb_fetch_chunk` function directly hands you data chunks in DuckDB's native array format and can therefore be very fast. The `duckdb_value` functions perform bounds- and type-checking, and ... | 882 | [
0.11890102177858353,
0.01533113420009613,
-0.01635786145925522,
0.02390380948781967,
0.0552239827811718,
-0.0536290667951107,
0.0549049973487854,
0.024422157555818558,
0.00978381559252739,
-0.02972525544464588,
0.050518978387117386,
0.0003144664515275508,
-0.01877017319202423,
-0.031838521... | [
-0.10126056522130966,
0.08506700396537781,
-0.06488365679979324,
-0.09601891785860062,
-0.08698877692222595,
-0.025475014001131058,
-0.10939063876867294,
-0.08438839018344879,
-0.13741590082645416,
-0.006689759902656078,
0.030868330970406532,
0.07191573083400726,
-0.028996339067816734,
-0.... | |
Client APIs | C | API Reference Overview | <!-- This section is generated by scripts/generate_c_api_docs.py -->
```c
duckdb_state duckdb_query(duckdb_connection connection, const char *query, duckdb_result *out_result);
void duckdb_destroy_result(duckdb_result *result);
const char *duckdb_column_name(duckdb_result *result, idx_t col);
duckdb_type duckdb_colum... | 230 | [
0.11890102177858353,
0.01533113420009613,
-0.01635786145925522,
0.02390380948781967,
0.0552239827811718,
-0.0536290667951107,
0.0549049973487854,
0.024422157555818558,
0.00978381559252739,
-0.02972525544464588,
0.050518978387117386,
0.0003144664515275508,
-0.01877017319202423,
-0.031838521... | [
-0.10126056522130966,
0.08506700396537781,
-0.06488365679979324,
-0.09601891785860062,
-0.08698877692222595,
-0.025475014001131058,
-0.10939063876867294,
-0.08438839018344879,
-0.13741590082645416,
-0.006689759902656078,
0.030868330970406532,
0.07191573083400726,
-0.028996339067816734,
-0.... | |
Client APIs | C | API Reference Overview | `duckdb_query` | Executes a SQL query within a connection and stores the full (materialized) result in the out_result pointer.
If the query fails to execute, DuckDBError is returned and the error message can be retrieved by calling
`duckdb_result_error`.
Note that after running `duckdb_query`, `duckdb_destroy_result` must be called o... | 222 | [
0.11890102177858353,
0.01533113420009613,
-0.01635786145925522,
0.02390380948781967,
0.0552239827811718,
-0.0536290667951107,
0.0549049973487854,
0.024422157555818558,
0.00978381559252739,
-0.02972525544464588,
0.050518978387117386,
0.0003144664515275508,
-0.01877017319202423,
-0.031838521... | [
-0.10126056522130966,
0.08506700396537781,
-0.06488365679979324,
-0.09601891785860062,
-0.08698877692222595,
-0.025475014001131058,
-0.10939063876867294,
-0.08438839018344879,
-0.13741590082645416,
-0.006689759902656078,
0.030868330970406532,
0.07191573083400726,
-0.028996339067816734,
-0.... |
Client APIs | C | API Reference Overview | `duckdb_destroy_result` | Closes the result and de-allocates all memory allocated for that connection.
###### Syntax {#docs:api:c:query::syntax}
```c
void duckdb_destroy_result(
duckdb_result *result
);
```
###### Parameters {#docs:api:c:query::parameters}
* `result`: The result to destroy.
<br> | 75 | [
0.11890102177858353,
0.01533113420009613,
-0.01635786145925522,
0.02390380948781967,
0.0552239827811718,
-0.0536290667951107,
0.0549049973487854,
0.024422157555818558,
0.00978381559252739,
-0.02972525544464588,
0.050518978387117386,
0.0003144664515275508,
-0.01877017319202423,
-0.031838521... | [
-0.10126056522130966,
0.08506700396537781,
-0.06488365679979324,
-0.09601891785860062,
-0.08698877692222595,
-0.025475014001131058,
-0.10939063876867294,
-0.08438839018344879,
-0.13741590082645416,
-0.006689759902656078,
0.030868330970406532,
0.07191573083400726,
-0.028996339067816734,
-0.... |
Client APIs | C | API Reference Overview | `duckdb_column_name` | Returns the column name of the specified column. The result should not need to be freed; the column names will
automatically be destroyed when the result is destroyed.
Returns `NULL` if the column is out of range.
###### Syntax {#docs:api:c:query::syntax}
```c
const char *duckdb_column_name(
duckdb_result *result... | 149 | [
0.11890102177858353,
0.01533113420009613,
-0.01635786145925522,
0.02390380948781967,
0.0552239827811718,
-0.0536290667951107,
0.0549049973487854,
0.024422157555818558,
0.00978381559252739,
-0.02972525544464588,
0.050518978387117386,
0.0003144664515275508,
-0.01877017319202423,
-0.031838521... | [
-0.10126056522130966,
0.08506700396537781,
-0.06488365679979324,
-0.09601891785860062,
-0.08698877692222595,
-0.025475014001131058,
-0.10939063876867294,
-0.08438839018344879,
-0.13741590082645416,
-0.006689759902656078,
0.030868330970406532,
0.07191573083400726,
-0.028996339067816734,
-0.... |
Client APIs | C | API Reference Overview | `duckdb_column_type` | Returns the column type of the specified column.
Returns `DUCKDB_TYPE_INVALID` if the column is out of range.
###### Syntax {#docs:api:c:query::syntax}
```c
duckdb_type duckdb_column_type(
duckdb_result *result,
idx_t col
);
```
###### Parameters {#docs:api:c:query::parameters}
* `result`: The result object t... | 129 | [
0.11890102177858353,
0.01533113420009613,
-0.01635786145925522,
0.02390380948781967,
0.0552239827811718,
-0.0536290667951107,
0.0549049973487854,
0.024422157555818558,
0.00978381559252739,
-0.02972525544464588,
0.050518978387117386,
0.0003144664515275508,
-0.01877017319202423,
-0.031838521... | [
-0.10126056522130966,
0.08506700396537781,
-0.06488365679979324,
-0.09601891785860062,
-0.08698877692222595,
-0.025475014001131058,
-0.10939063876867294,
-0.08438839018344879,
-0.13741590082645416,
-0.006689759902656078,
0.030868330970406532,
0.07191573083400726,
-0.028996339067816734,
-0.... |
Client APIs | C | API Reference Overview | `duckdb_result_statement_type` | Returns the statement type of the statement that was executed
###### Syntax {#docs:api:c:query::syntax}
```c
duckdb_statement_type duckdb_result_statement_type(
duckdb_result result
);
```
###### Parameters {#docs:api:c:query::parameters}
* `result`: The result object to fetch the statement type from.
###### ... | 107 | [
0.11890102177858353,
0.01533113420009613,
-0.01635786145925522,
0.02390380948781967,
0.0552239827811718,
-0.0536290667951107,
0.0549049973487854,
0.024422157555818558,
0.00978381559252739,
-0.02972525544464588,
0.050518978387117386,
0.0003144664515275508,
-0.01877017319202423,
-0.031838521... | [
-0.10126056522130966,
0.08506700396537781,
-0.06488365679979324,
-0.09601891785860062,
-0.08698877692222595,
-0.025475014001131058,
-0.10939063876867294,
-0.08438839018344879,
-0.13741590082645416,
-0.006689759902656078,
0.030868330970406532,
0.07191573083400726,
-0.028996339067816734,
-0.... |
Client APIs | C | API Reference Overview | `duckdb_column_logical_type` | Returns the logical column type of the specified column.
The return type of this call should be destroyed with `duckdb_destroy_logical_type`.
Returns `NULL` if the column is out of range.
###### Syntax {#docs:api:c:query::syntax}
```c
duckdb_logical_type duckdb_column_logical_type(
duckdb_result *result,
idx_t ... | 147 | [
0.11890102177858353,
0.01533113420009613,
-0.01635786145925522,
0.02390380948781967,
0.0552239827811718,
-0.0536290667951107,
0.0549049973487854,
0.024422157555818558,
0.00978381559252739,
-0.02972525544464588,
0.050518978387117386,
0.0003144664515275508,
-0.01877017319202423,
-0.031838521... | [
-0.10126056522130966,
0.08506700396537781,
-0.06488365679979324,
-0.09601891785860062,
-0.08698877692222595,
-0.025475014001131058,
-0.10939063876867294,
-0.08438839018344879,
-0.13741590082645416,
-0.006689759902656078,
0.030868330970406532,
0.07191573083400726,
-0.028996339067816734,
-0.... |
Client APIs | C | API Reference Overview | `duckdb_column_count` | Returns the number of columns present in a the result object.
###### Syntax {#docs:api:c:query::syntax}
```c
idx_t duckdb_column_count(
duckdb_result *result
);
```
###### Parameters {#docs:api:c:query::parameters}
* `result`: The result object.
###### Return Value {#docs:api:c:query::return-value}
The numb... | 98 | [
0.11890102177858353,
0.01533113420009613,
-0.01635786145925522,
0.02390380948781967,
0.0552239827811718,
-0.0536290667951107,
0.0549049973487854,
0.024422157555818558,
0.00978381559252739,
-0.02972525544464588,
0.050518978387117386,
0.0003144664515275508,
-0.01877017319202423,
-0.031838521... | [
-0.10126056522130966,
0.08506700396537781,
-0.06488365679979324,
-0.09601891785860062,
-0.08698877692222595,
-0.025475014001131058,
-0.10939063876867294,
-0.08438839018344879,
-0.13741590082645416,
-0.006689759902656078,
0.030868330970406532,
0.07191573083400726,
-0.028996339067816734,
-0.... |
Client APIs | C | API Reference Overview | `duckdb_row_count` | > **Warning. ** Deprecation notice. This method is scheduled for removal in a future release.
Returns the number of rows present in the result object.
###### Syntax {#docs:api:c:query::syntax}
```c
idx_t duckdb_row_count(
duckdb_result *result
);
```
###### Parameters {#docs:api:c:query::parameters}
* `resul... | 120 | [
0.11890102177858353,
0.01533113420009613,
-0.01635786145925522,
0.02390380948781967,
0.0552239827811718,
-0.0536290667951107,
0.0549049973487854,
0.024422157555818558,
0.00978381559252739,
-0.02972525544464588,
0.050518978387117386,
0.0003144664515275508,
-0.01877017319202423,
-0.031838521... | [
-0.10126056522130966,
0.08506700396537781,
-0.06488365679979324,
-0.09601891785860062,
-0.08698877692222595,
-0.025475014001131058,
-0.10939063876867294,
-0.08438839018344879,
-0.13741590082645416,
-0.006689759902656078,
0.030868330970406532,
0.07191573083400726,
-0.028996339067816734,
-0.... |
Client APIs | C | API Reference Overview | `duckdb_rows_changed` | Returns the number of rows changed by the query stored in the result. This is relevant only for INSERT/UPDATE/DELETE
queries. For other queries the rows_changed will be 0.
###### Syntax {#docs:api:c:query::syntax}
```c
idx_t duckdb_rows_changed(
duckdb_result *result
);
```
###### Parameters {#docs:api:c:query::p... | 120 | [
0.11890102177858353,
0.01533113420009613,
-0.01635786145925522,
0.02390380948781967,
0.0552239827811718,
-0.0536290667951107,
0.0549049973487854,
0.024422157555818558,
0.00978381559252739,
-0.02972525544464588,
0.050518978387117386,
0.0003144664515275508,
-0.01877017319202423,
-0.031838521... | [
-0.10126056522130966,
0.08506700396537781,
-0.06488365679979324,
-0.09601891785860062,
-0.08698877692222595,
-0.025475014001131058,
-0.10939063876867294,
-0.08438839018344879,
-0.13741590082645416,
-0.006689759902656078,
0.030868330970406532,
0.07191573083400726,
-0.028996339067816734,
-0.... |
Client APIs | C | API Reference Overview | `duckdb_column_data` | > **Deprecated. ** This method has been deprecated. Prefer using `duckdb_result_get_chunk` instead.
Returns the data of a specific column of a result in columnar format.
The function returns a dense array which contains the result data. The exact type stored in the array depends on the
corresponding duckdb_type (a... | 284 | [
0.11890102177858353,
0.01533113420009613,
-0.01635786145925522,
0.02390380948781967,
0.0552239827811718,
-0.0536290667951107,
0.0549049973487854,
0.024422157555818558,
0.00978381559252739,
-0.02972525544464588,
0.050518978387117386,
0.0003144664515275508,
-0.01877017319202423,
-0.031838521... | [
-0.10126056522130966,
0.08506700396537781,
-0.06488365679979324,
-0.09601891785860062,
-0.08698877692222595,
-0.025475014001131058,
-0.10939063876867294,
-0.08438839018344879,
-0.13741590082645416,
-0.006689759902656078,
0.030868330970406532,
0.07191573083400726,
-0.028996339067816734,
-0.... |
Client APIs | C | API Reference Overview | `duckdb_nullmask_data` | > **Deprecated. ** This method has been deprecated. Prefer using `duckdb_result_get_chunk` instead.
Returns the nullmask of a specific column of a result in columnar format. The nullmask indicates for every row
whether or not the corresponding row is `NULL`. If a row is `NULL`, the values present in the array provid... | 269 | [
0.11890102177858353,
0.01533113420009613,
-0.01635786145925522,
0.02390380948781967,
0.0552239827811718,
-0.0536290667951107,
0.0549049973487854,
0.024422157555818558,
0.00978381559252739,
-0.02972525544464588,
0.050518978387117386,
0.0003144664515275508,
-0.01877017319202423,
-0.031838521... | [
-0.10126056522130966,
0.08506700396537781,
-0.06488365679979324,
-0.09601891785860062,
-0.08698877692222595,
-0.025475014001131058,
-0.10939063876867294,
-0.08438839018344879,
-0.13741590082645416,
-0.006689759902656078,
0.030868330970406532,
0.07191573083400726,
-0.028996339067816734,
-0.... |
Client APIs | C | API Reference Overview | `duckdb_result_error` | Returns the error message contained within the result. The error is only set if `duckdb_query` returns `DuckDBError`.
The result of this function must not be freed. It will be cleaned up when `duckdb_destroy_result` is called.
###### Syntax {#docs:api:c:query::syntax}
```c
const char *duckdb_result_error(
duckdb_... | 141 | [
0.11890102177858353,
0.01533113420009613,
-0.01635786145925522,
0.02390380948781967,
0.0552239827811718,
-0.0536290667951107,
0.0549049973487854,
0.024422157555818558,
0.00978381559252739,
-0.02972525544464588,
0.050518978387117386,
0.0003144664515275508,
-0.01877017319202423,
-0.031838521... | [
-0.10126056522130966,
0.08506700396537781,
-0.06488365679979324,
-0.09601891785860062,
-0.08698877692222595,
-0.025475014001131058,
-0.10939063876867294,
-0.08438839018344879,
-0.13741590082645416,
-0.006689759902656078,
0.030868330970406532,
0.07191573083400726,
-0.028996339067816734,
-0.... |
Client APIs | C | API Reference Overview | `duckdb_result_error_type` | Returns the result error type contained within the result. The error is only set if `duckdb_query` returns
`DuckDBError`.
###### Syntax {#docs:api:c:query::syntax}
```c
duckdb_error_type duckdb_result_error_type(
duckdb_result *result
);
```
###### Parameters {#docs:api:c:query::parameters}
* `result`: The resu... | 120 | [
0.11890102177858353,
0.01533113420009613,
-0.01635786145925522,
0.02390380948781967,
0.0552239827811718,
-0.0536290667951107,
0.0549049973487854,
0.024422157555818558,
0.00978381559252739,
-0.02972525544464588,
0.050518978387117386,
0.0003144664515275508,
-0.01877017319202423,
-0.031838521... | [
-0.10126056522130966,
0.08506700396537781,
-0.06488365679979324,
-0.09601891785860062,
-0.08698877692222595,
-0.025475014001131058,
-0.10939063876867294,
-0.08438839018344879,
-0.13741590082645416,
-0.006689759902656078,
0.030868330970406532,
0.07191573083400726,
-0.028996339067816734,
-0.... |
Client APIs | C | Data Chunks | Data chunks represent a horizontal slice of a table. They hold a number of [vectors](#docs:api:c:vector), that can each hold up to the `VECTOR_SIZE` rows. The vector size can be obtained through the `duckdb_vector_size` function and is configurable, but is usually set to `2048`.
Data chunks and vectors are what DuckD... | 306 | [
0.11890102177858353,
0.01533113420009613,
-0.01635786145925522,
0.02390380948781967,
0.0552239827811718,
-0.0536290667951107,
0.0549049973487854,
0.024422157555818558,
0.00978381559252739,
-0.02972525544464588,
0.050518978387117386,
0.0003144664515275508,
-0.01877017319202423,
-0.031838521... | [
-0.10126056522130966,
0.08506700396537781,
-0.06488365679979324,
-0.09601891785860062,
-0.08698877692222595,
-0.025475014001131058,
-0.10939063876867294,
-0.08438839018344879,
-0.13741590082645416,
-0.006689759902656078,
0.030868330970406532,
0.07191573083400726,
-0.028996339067816734,
-0.... | |
Client APIs | C | API Reference Overview | <!-- This section is generated by scripts/generate_c_api_docs.py -->
```c
duckdb_data_chunk duckdb_create_data_chunk(duckdb_logical_type *types, idx_t column_count);
void duckdb_destroy_data_chunk(duckdb_data_chunk *chunk);
void duckdb_data_chunk_reset(duckdb_data_chunk chunk);
idx_t duckdb_data_chunk_get_column_coun... | 138 | [
0.11890102177858353,
0.01533113420009613,
-0.01635786145925522,
0.02390380948781967,
0.0552239827811718,
-0.0536290667951107,
0.0549049973487854,
0.024422157555818558,
0.00978381559252739,
-0.02972525544464588,
0.050518978387117386,
0.0003144664515275508,
-0.01877017319202423,
-0.031838521... | [
-0.10126056522130966,
0.08506700396537781,
-0.06488365679979324,
-0.09601891785860062,
-0.08698877692222595,
-0.025475014001131058,
-0.10939063876867294,
-0.08438839018344879,
-0.13741590082645416,
-0.006689759902656078,
0.030868330970406532,
0.07191573083400726,
-0.028996339067816734,
-0.... | |
Client APIs | C | API Reference Overview | `duckdb_create_data_chunk` | Creates an empty data chunk with the specified column types.
The result must be destroyed with `duckdb_destroy_data_chunk`.
###### Syntax {#docs:api:c:data_chunk::syntax}
```c
duckdb_data_chunk duckdb_create_data_chunk(
duckdb_logical_type *types,
idx_t column_count
);
```
###### Parameters {#docs:api:c:data_chun... | 135 | [
0.11890102177858353,
0.01533113420009613,
-0.01635786145925522,
0.02390380948781967,
0.0552239827811718,
-0.0536290667951107,
0.0549049973487854,
0.024422157555818558,
0.00978381559252739,
-0.02972525544464588,
0.050518978387117386,
0.0003144664515275508,
-0.01877017319202423,
-0.031838521... | [
-0.10126056522130966,
0.08506700396537781,
-0.06488365679979324,
-0.09601891785860062,
-0.08698877692222595,
-0.025475014001131058,
-0.10939063876867294,
-0.08438839018344879,
-0.13741590082645416,
-0.006689759902656078,
0.030868330970406532,
0.07191573083400726,
-0.028996339067816734,
-0.... |
Client APIs | C | API Reference Overview | `duckdb_destroy_data_chunk` | Destroys the data chunk and de-allocates all memory allocated for that chunk.
###### Syntax {#docs:api:c:data_chunk::syntax}
```c
void duckdb_destroy_data_chunk(
duckdb_data_chunk *chunk
);
```
###### Parameters {#docs:api:c:data_chunk::parameters}
* `chunk`: The data chunk to destroy.
<br> | 79 | [
0.11890102177858353,
0.01533113420009613,
-0.01635786145925522,
0.02390380948781967,
0.0552239827811718,
-0.0536290667951107,
0.0549049973487854,
0.024422157555818558,
0.00978381559252739,
-0.02972525544464588,
0.050518978387117386,
0.0003144664515275508,
-0.01877017319202423,
-0.031838521... | [
-0.10126056522130966,
0.08506700396537781,
-0.06488365679979324,
-0.09601891785860062,
-0.08698877692222595,
-0.025475014001131058,
-0.10939063876867294,
-0.08438839018344879,
-0.13741590082645416,
-0.006689759902656078,
0.030868330970406532,
0.07191573083400726,
-0.028996339067816734,
-0.... |
Client APIs | C | API Reference Overview | `duckdb_data_chunk_reset` | Resets a data chunk, clearing the validity masks and setting the cardinality of the data chunk to 0.
After calling this method, you must call `duckdb_vector_get_validity` and `duckdb_vector_get_data` to obtain current
data and validity pointers
###### Syntax {#docs:api:c:data_chunk::syntax}
```c
void duckdb_data_ch... | 116 | [
0.11890102177858353,
0.01533113420009613,
-0.01635786145925522,
0.02390380948781967,
0.0552239827811718,
-0.0536290667951107,
0.0549049973487854,
0.024422157555818558,
0.00978381559252739,
-0.02972525544464588,
0.050518978387117386,
0.0003144664515275508,
-0.01877017319202423,
-0.031838521... | [
-0.10126056522130966,
0.08506700396537781,
-0.06488365679979324,
-0.09601891785860062,
-0.08698877692222595,
-0.025475014001131058,
-0.10939063876867294,
-0.08438839018344879,
-0.13741590082645416,
-0.006689759902656078,
0.030868330970406532,
0.07191573083400726,
-0.028996339067816734,
-0.... |
Client APIs | C | API Reference Overview | `duckdb_data_chunk_get_column_count` | Retrieves the number of columns in a data chunk.
###### Syntax {#docs:api:c:data_chunk::syntax}
```c
idx_t duckdb_data_chunk_get_column_count(
duckdb_data_chunk chunk
);
```
###### Parameters {#docs:api:c:data_chunk::parameters}
* `chunk`: The data chunk to get the data from
###### Return Value {#docs:api:c:d... | 103 | [
0.11890102177858353,
0.01533113420009613,
-0.01635786145925522,
0.02390380948781967,
0.0552239827811718,
-0.0536290667951107,
0.0549049973487854,
0.024422157555818558,
0.00978381559252739,
-0.02972525544464588,
0.050518978387117386,
0.0003144664515275508,
-0.01877017319202423,
-0.031838521... | [
-0.10126056522130966,
0.08506700396537781,
-0.06488365679979324,
-0.09601891785860062,
-0.08698877692222595,
-0.025475014001131058,
-0.10939063876867294,
-0.08438839018344879,
-0.13741590082645416,
-0.006689759902656078,
0.030868330970406532,
0.07191573083400726,
-0.028996339067816734,
-0.... |
Client APIs | C | API Reference Overview | `duckdb_data_chunk_get_vector` | Retrieves the vector at the specified column index in the data chunk.
The pointer to the vector is valid for as long as the chunk is alive.
It does NOT need to be destroyed.
###### Syntax {#docs:api:c:data_chunk::syntax}
```c
duckdb_vector duckdb_data_chunk_get_vector(
duckdb_data_chunk chunk,
idx_t col_idx
);
``... | 130 | [
0.11890102177858353,
0.01533113420009613,
-0.01635786145925522,
0.02390380948781967,
0.0552239827811718,
-0.0536290667951107,
0.0549049973487854,
0.024422157555818558,
0.00978381559252739,
-0.02972525544464588,
0.050518978387117386,
0.0003144664515275508,
-0.01877017319202423,
-0.031838521... | [
-0.10126056522130966,
0.08506700396537781,
-0.06488365679979324,
-0.09601891785860062,
-0.08698877692222595,
-0.025475014001131058,
-0.10939063876867294,
-0.08438839018344879,
-0.13741590082645416,
-0.006689759902656078,
0.030868330970406532,
0.07191573083400726,
-0.028996339067816734,
-0.... |
Client APIs | C | API Reference Overview | `duckdb_data_chunk_get_size` | Retrieves the current number of tuples in a data chunk.
###### Syntax {#docs:api:c:data_chunk::syntax}
```c
idx_t duckdb_data_chunk_get_size(
duckdb_data_chunk chunk
);
```
###### Parameters {#docs:api:c:data_chunk::parameters}
* `chunk`: The data chunk to get the data from
###### Return Value {#docs:api:c:da... | 103 | [
0.11890102177858353,
0.01533113420009613,
-0.01635786145925522,
0.02390380948781967,
0.0552239827811718,
-0.0536290667951107,
0.0549049973487854,
0.024422157555818558,
0.00978381559252739,
-0.02972525544464588,
0.050518978387117386,
0.0003144664515275508,
-0.01877017319202423,
-0.031838521... | [
-0.10126056522130966,
0.08506700396537781,
-0.06488365679979324,
-0.09601891785860062,
-0.08698877692222595,
-0.025475014001131058,
-0.10939063876867294,
-0.08438839018344879,
-0.13741590082645416,
-0.006689759902656078,
0.030868330970406532,
0.07191573083400726,
-0.028996339067816734,
-0.... |
Client APIs | C | API Reference Overview | `duckdb_data_chunk_set_size` | Sets the current number of tuples in a data chunk.
###### Syntax {#docs:api:c:data_chunk::syntax}
```c
void duckdb_data_chunk_set_size(
duckdb_data_chunk chunk,
idx_t size
);
```
###### Parameters {#docs:api:c:data_chunk::parameters}
* `chunk`: The data chunk to set the size in
* `size`: The number of tuples in... | 92 | [
0.11890102177858353,
0.01533113420009613,
-0.01635786145925522,
0.02390380948781967,
0.0552239827811718,
-0.0536290667951107,
0.0549049973487854,
0.024422157555818558,
0.00978381559252739,
-0.02972525544464588,
0.050518978387117386,
0.0003144664515275508,
-0.01877017319202423,
-0.031838521... | [
-0.10126056522130966,
0.08506700396537781,
-0.06488365679979324,
-0.09601891785860062,
-0.08698877692222595,
-0.025475014001131058,
-0.10939063876867294,
-0.08438839018344879,
-0.13741590082645416,
-0.006689759902656078,
0.030868330970406532,
0.07191573083400726,
-0.028996339067816734,
-0.... |
Client APIs | C | Vectors | Vectors represent a horizontal slice of a column. They hold a number of values of a specific type, similar to an array. Vectors are the core data representation used in DuckDB. Vectors are typically stored within [data chunks](#docs:api:c:data_chunk).
The vector and data chunk interfaces are the most efficient way of... | 97 | [
0.11890102177858353,
0.01533113420009613,
-0.01635786145925522,
0.02390380948781967,
0.0552239827811718,
-0.0536290667951107,
0.0549049973487854,
0.024422157555818558,
0.00978381559252739,
-0.02972525544464588,
0.050518978387117386,
0.0003144664515275508,
-0.01877017319202423,
-0.031838521... | [
-0.10126056522130966,
0.08506700396537781,
-0.06488365679979324,
-0.09601891785860062,
-0.08698877692222595,
-0.025475014001131058,
-0.10939063876867294,
-0.08438839018344879,
-0.13741590082645416,
-0.006689759902656078,
0.030868330970406532,
0.07191573083400726,
-0.028996339067816734,
-0.... | |
Client APIs | C | Vector Format | Vectors are arrays of a specific data type. The logical type of a vector can be obtained using `duckdb_vector_get_column_type`. The type id of the logical type can then be obtained using `duckdb_get_type_id`.
Vectors themselves do not have sizes. Instead, the parent data chunk has a size (that can be obtained through... | 1,774 | [
0.11890102177858353,
0.01533113420009613,
-0.01635786145925522,
0.02390380948781967,
0.0552239827811718,
-0.0536290667951107,
0.0549049973487854,
0.024422157555818558,
0.00978381559252739,
-0.02972525544464588,
0.050518978387117386,
0.0003144664515275508,
-0.01877017319202423,
-0.031838521... | [
-0.10126056522130966,
0.08506700396537781,
-0.06488365679979324,
-0.09601891785860062,
-0.08698877692222595,
-0.025475014001131058,
-0.10939063876867294,
-0.08438839018344879,
-0.13741590082645416,
-0.006689759902656078,
0.030868330970406532,
0.07191573083400726,
-0.028996339067816734,
-0.... | |
Client APIs | C | Examples | Below are several full end-to-end examples of how to interact with vectors.
#### Example: Reading an int64 Vector with `NULL` Values {#docs:api:c:vector::example-reading-an-int64-vector-with-null-values}
```c
duckdb_database db;
duckdb_connection con;
duckdb_open(nullptr, &db);
duckdb_connect(db, &con);
duckdb_res... | 1,765 | [
0.11890102177858353,
0.01533113420009613,
-0.01635786145925522,
0.02390380948781967,
0.0552239827811718,
-0.0536290667951107,
0.0549049973487854,
0.024422157555818558,
0.00978381559252739,
-0.02972525544464588,
0.050518978387117386,
0.0003144664515275508,
-0.01877017319202423,
-0.031838521... | [
-0.10126056522130966,
0.08506700396537781,
-0.06488365679979324,
-0.09601891785860062,
-0.08698877692222595,
-0.025475014001131058,
-0.10939063876867294,
-0.08438839018344879,
-0.13741590082645416,
-0.006689759902656078,
0.030868330970406532,
0.07191573083400726,
-0.028996339067816734,
-0.... | |
Client APIs | C | API Reference Overview | <!-- This section is generated by scripts/generate_c_api_docs.py -->
```c
duckdb_logical_type duckdb_vector_get_column_type(duckdb_vector vector);
void *duckdb_vector_get_data(duckdb_vector vector);
uint64_t *duckdb_vector_get_validity(duckdb_vector vector);
void duckdb_vector_ensure_validity_writable(duckdb_vector v... | 336 | [
0.11890102177858353,
0.01533113420009613,
-0.01635786145925522,
0.02390380948781967,
0.0552239827811718,
-0.0536290667951107,
0.0549049973487854,
0.024422157555818558,
0.00978381559252739,
-0.02972525544464588,
0.050518978387117386,
0.0003144664515275508,
-0.01877017319202423,
-0.031838521... | [
-0.10126056522130966,
0.08506700396537781,
-0.06488365679979324,
-0.09601891785860062,
-0.08698877692222595,
-0.025475014001131058,
-0.10939063876867294,
-0.08438839018344879,
-0.13741590082645416,
-0.006689759902656078,
0.030868330970406532,
0.07191573083400726,
-0.028996339067816734,
-0.... | |
Client APIs | C | API Reference Overview | `duckdb_vector_get_column_type` | Retrieves the column type of the specified vector.
The result must be destroyed with `duckdb_destroy_logical_type`.
###### Syntax {#docs:api:c:vector::syntax}
```c
duckdb_logical_type duckdb_vector_get_column_type(
duckdb_vector vector
);
```
###### Parameters {#docs:api:c:vector::parameters}
* `vector`: The ... | 111 | [
0.11890102177858353,
0.01533113420009613,
-0.01635786145925522,
0.02390380948781967,
0.0552239827811718,
-0.0536290667951107,
0.0549049973487854,
0.024422157555818558,
0.00978381559252739,
-0.02972525544464588,
0.050518978387117386,
0.0003144664515275508,
-0.01877017319202423,
-0.031838521... | [
-0.10126056522130966,
0.08506700396537781,
-0.06488365679979324,
-0.09601891785860062,
-0.08698877692222595,
-0.025475014001131058,
-0.10939063876867294,
-0.08438839018344879,
-0.13741590082645416,
-0.006689759902656078,
0.030868330970406532,
0.07191573083400726,
-0.028996339067816734,
-0.... |
Client APIs | C | API Reference Overview | `duckdb_vector_get_data` | Retrieves the data pointer of the vector.
The data pointer can be used to read or write values from the vector.
How to read or write values depends on the type of the vector.
###### Syntax {#docs:api:c:vector::syntax}
```c
void *duckdb_vector_get_data(
duckdb_vector vector
);
```
###### Parameters {#docs:api:c:... | 122 | [
0.11890102177858353,
0.01533113420009613,
-0.01635786145925522,
0.02390380948781967,
0.0552239827811718,
-0.0536290667951107,
0.0549049973487854,
0.024422157555818558,
0.00978381559252739,
-0.02972525544464588,
0.050518978387117386,
0.0003144664515275508,
-0.01877017319202423,
-0.031838521... | [
-0.10126056522130966,
0.08506700396537781,
-0.06488365679979324,
-0.09601891785860062,
-0.08698877692222595,
-0.025475014001131058,
-0.10939063876867294,
-0.08438839018344879,
-0.13741590082645416,
-0.006689759902656078,
0.030868330970406532,
0.07191573083400726,
-0.028996339067816734,
-0.... |
Client APIs | C | API Reference Overview | `duckdb_vector_get_validity` | Retrieves the validity mask pointer of the specified vector.
If all values are valid, this function MIGHT return NULL!
The validity mask is a bitset that signifies null-ness within the data chunk.
It is a series of uint64_t values, where each uint64_t value contains validity for 64 tuples.
The bit is set to 1 if th... | 271 | [
0.11890102177858353,
0.01533113420009613,
-0.01635786145925522,
0.02390380948781967,
0.0552239827811718,
-0.0536290667951107,
0.0549049973487854,
0.024422157555818558,
0.00978381559252739,
-0.02972525544464588,
0.050518978387117386,
0.0003144664515275508,
-0.01877017319202423,
-0.031838521... | [
-0.10126056522130966,
0.08506700396537781,
-0.06488365679979324,
-0.09601891785860062,
-0.08698877692222595,
-0.025475014001131058,
-0.10939063876867294,
-0.08438839018344879,
-0.13741590082645416,
-0.006689759902656078,
0.030868330970406532,
0.07191573083400726,
-0.028996339067816734,
-0.... |
Client APIs | C | API Reference Overview | `duckdb_vector_ensure_validity_writable` | Ensures the validity mask is writable by allocating it.
After this function is called, `duckdb_vector_get_validity` will ALWAYS return non-NULL.
This allows null values to be written to the vector, regardless of whether a validity mask was present before.
###### Syntax {#docs:api:c:vector::syntax}
```c
void duckd... | 116 | [
0.11890102177858353,
0.01533113420009613,
-0.01635786145925522,
0.02390380948781967,
0.0552239827811718,
-0.0536290667951107,
0.0549049973487854,
0.024422157555818558,
0.00978381559252739,
-0.02972525544464588,
0.050518978387117386,
0.0003144664515275508,
-0.01877017319202423,
-0.031838521... | [
-0.10126056522130966,
0.08506700396537781,
-0.06488365679979324,
-0.09601891785860062,
-0.08698877692222595,
-0.025475014001131058,
-0.10939063876867294,
-0.08438839018344879,
-0.13741590082645416,
-0.006689759902656078,
0.030868330970406532,
0.07191573083400726,
-0.028996339067816734,
-0.... |
Client APIs | C | API Reference Overview | `duckdb_vector_assign_string_element` | Assigns a string element in the vector at the specified location.
###### Syntax {#docs:api:c:vector::syntax}
```c
void duckdb_vector_assign_string_element(
duckdb_vector vector,
idx_t index,
const char *str
);
```
###### Parameters {#docs:api:c:vector::parameters}
* `vector`: The vector to alter
* `index`: The ... | 107 | [
0.11890102177858353,
0.01533113420009613,
-0.01635786145925522,
0.02390380948781967,
0.0552239827811718,
-0.0536290667951107,
0.0549049973487854,
0.024422157555818558,
0.00978381559252739,
-0.02972525544464588,
0.050518978387117386,
0.0003144664515275508,
-0.01877017319202423,
-0.031838521... | [
-0.10126056522130966,
0.08506700396537781,
-0.06488365679979324,
-0.09601891785860062,
-0.08698877692222595,
-0.025475014001131058,
-0.10939063876867294,
-0.08438839018344879,
-0.13741590082645416,
-0.006689759902656078,
0.030868330970406532,
0.07191573083400726,
-0.028996339067816734,
-0.... |
Client APIs | C | API Reference Overview | `duckdb_vector_assign_string_element_len` | Assigns a string element in the vector at the specified location. You may also use this function to assign BLOBs.
###### Syntax {#docs:api:c:vector::syntax}
```c
void duckdb_vector_assign_string_element_len(
duckdb_vector vector,
idx_t index,
const char *str,
idx_t str_len
);
```
###### Parameters {#docs:api:c:ve... | 137 | [
0.11890102177858353,
0.01533113420009613,
-0.01635786145925522,
0.02390380948781967,
0.0552239827811718,
-0.0536290667951107,
0.0549049973487854,
0.024422157555818558,
0.00978381559252739,
-0.02972525544464588,
0.050518978387117386,
0.0003144664515275508,
-0.01877017319202423,
-0.031838521... | [
-0.10126056522130966,
0.08506700396537781,
-0.06488365679979324,
-0.09601891785860062,
-0.08698877692222595,
-0.025475014001131058,
-0.10939063876867294,
-0.08438839018344879,
-0.13741590082645416,
-0.006689759902656078,
0.030868330970406532,
0.07191573083400726,
-0.028996339067816734,
-0.... |
Client APIs | C | API Reference Overview | `duckdb_list_vector_get_child` | Retrieves the child vector of a list vector.
The resulting vector is valid as long as the parent vector is valid.
###### Syntax {#docs:api:c:vector::syntax}
```c
duckdb_vector duckdb_list_vector_get_child(
duckdb_vector vector
);
```
###### Parameters {#docs:api:c:vector::parameters}
* `vector`: The vector
... | 105 | [
0.11890102177858353,
0.01533113420009613,
-0.01635786145925522,
0.02390380948781967,
0.0552239827811718,
-0.0536290667951107,
0.0549049973487854,
0.024422157555818558,
0.00978381559252739,
-0.02972525544464588,
0.050518978387117386,
0.0003144664515275508,
-0.01877017319202423,
-0.031838521... | [
-0.10126056522130966,
0.08506700396537781,
-0.06488365679979324,
-0.09601891785860062,
-0.08698877692222595,
-0.025475014001131058,
-0.10939063876867294,
-0.08438839018344879,
-0.13741590082645416,
-0.006689759902656078,
0.030868330970406532,
0.07191573083400726,
-0.028996339067816734,
-0.... |
Client APIs | C | API Reference Overview | `duckdb_list_vector_get_size` | Returns the size of the child vector of the list.
###### Syntax {#docs:api:c:vector::syntax}
```c
idx_t duckdb_list_vector_get_size(
duckdb_vector vector
);
```
###### Parameters {#docs:api:c:vector::parameters}
* `vector`: The vector
###### Return Value {#docs:api:c:vector::return-value}
The size of the ch... | 92 | [
0.11890102177858353,
0.01533113420009613,
-0.01635786145925522,
0.02390380948781967,
0.0552239827811718,
-0.0536290667951107,
0.0549049973487854,
0.024422157555818558,
0.00978381559252739,
-0.02972525544464588,
0.050518978387117386,
0.0003144664515275508,
-0.01877017319202423,
-0.031838521... | [
-0.10126056522130966,
0.08506700396537781,
-0.06488365679979324,
-0.09601891785860062,
-0.08698877692222595,
-0.025475014001131058,
-0.10939063876867294,
-0.08438839018344879,
-0.13741590082645416,
-0.006689759902656078,
0.030868330970406532,
0.07191573083400726,
-0.028996339067816734,
-0.... |
Client APIs | C | API Reference Overview | `duckdb_list_vector_set_size` | Sets the total size of the underlying child-vector of a list vector.
###### Syntax {#docs:api:c:vector::syntax}
```c
duckdb_state duckdb_list_vector_set_size(
duckdb_vector vector,
idx_t size
);
```
###### Parameters {#docs:api:c:vector::parameters}
* `vector`: The list vector.
* `size`: The size of the child l... | 122 | [
0.11890102177858353,
0.01533113420009613,
-0.01635786145925522,
0.02390380948781967,
0.0552239827811718,
-0.0536290667951107,
0.0549049973487854,
0.024422157555818558,
0.00978381559252739,
-0.02972525544464588,
0.050518978387117386,
0.0003144664515275508,
-0.01877017319202423,
-0.031838521... | [
-0.10126056522130966,
0.08506700396537781,
-0.06488365679979324,
-0.09601891785860062,
-0.08698877692222595,
-0.025475014001131058,
-0.10939063876867294,
-0.08438839018344879,
-0.13741590082645416,
-0.006689759902656078,
0.030868330970406532,
0.07191573083400726,
-0.028996339067816734,
-0.... |
Client APIs | C | API Reference Overview | `duckdb_list_vector_reserve` | Sets the total capacity of the underlying child-vector of a list.
After calling this method, you must call `duckdb_vector_get_validity` and `duckdb_vector_get_data` to obtain current
data and validity pointers
###### Syntax {#docs:api:c:vector::syntax}
```c
duckdb_state duckdb_list_vector_reserve(
duckdb_vector v... | 154 | [
0.11890102177858353,
0.01533113420009613,
-0.01635786145925522,
0.02390380948781967,
0.0552239827811718,
-0.0536290667951107,
0.0549049973487854,
0.024422157555818558,
0.00978381559252739,
-0.02972525544464588,
0.050518978387117386,
0.0003144664515275508,
-0.01877017319202423,
-0.031838521... | [
-0.10126056522130966,
0.08506700396537781,
-0.06488365679979324,
-0.09601891785860062,
-0.08698877692222595,
-0.025475014001131058,
-0.10939063876867294,
-0.08438839018344879,
-0.13741590082645416,
-0.006689759902656078,
0.030868330970406532,
0.07191573083400726,
-0.028996339067816734,
-0.... |
Client APIs | C | API Reference Overview | `duckdb_struct_vector_get_child` | Retrieves the child vector of a struct vector.
The resulting vector is valid as long as the parent vector is valid.
###### Syntax {#docs:api:c:vector::syntax}
```c
duckdb_vector duckdb_struct_vector_get_child(
duckdb_vector vector,
idx_t index
);
```
###### Parameters {#docs:api:c:vector::parameters}
* `vecto... | 117 | [
0.11890102177858353,
0.01533113420009613,
-0.01635786145925522,
0.02390380948781967,
0.0552239827811718,
-0.0536290667951107,
0.0549049973487854,
0.024422157555818558,
0.00978381559252739,
-0.02972525544464588,
0.050518978387117386,
0.0003144664515275508,
-0.01877017319202423,
-0.031838521... | [
-0.10126056522130966,
0.08506700396537781,
-0.06488365679979324,
-0.09601891785860062,
-0.08698877692222595,
-0.025475014001131058,
-0.10939063876867294,
-0.08438839018344879,
-0.13741590082645416,
-0.006689759902656078,
0.030868330970406532,
0.07191573083400726,
-0.028996339067816734,
-0.... |
Client APIs | C | API Reference Overview | `duckdb_array_vector_get_child` | Retrieves the child vector of a array vector.
The resulting vector is valid as long as the parent vector is valid.
The resulting vector has the size of the parent vector multiplied by the array size.
###### Syntax {#docs:api:c:vector::syntax}
```c
duckdb_vector duckdb_array_vector_get_child(
duckdb_vector vector
... | 121 | [
0.11890102177858353,
0.01533113420009613,
-0.01635786145925522,
0.02390380948781967,
0.0552239827811718,
-0.0536290667951107,
0.0549049973487854,
0.024422157555818558,
0.00978381559252739,
-0.02972525544464588,
0.050518978387117386,
0.0003144664515275508,
-0.01877017319202423,
-0.031838521... | [
-0.10126056522130966,
0.08506700396537781,
-0.06488365679979324,
-0.09601891785860062,
-0.08698877692222595,
-0.025475014001131058,
-0.10939063876867294,
-0.08438839018344879,
-0.13741590082645416,
-0.006689759902656078,
0.030868330970406532,
0.07191573083400726,
-0.028996339067816734,
-0.... |
Client APIs | C | API Reference Overview | `duckdb_validity_row_is_valid` | Returns whether or not a row is valid (i.e., not NULL) in the given validity mask.
###### Syntax {#docs:api:c:vector::syntax}
```c
bool duckdb_validity_row_is_valid(
uint64_t *validity,
idx_t row
);
```
###### Parameters {#docs:api:c:vector::parameters}
* `validity`: The validity mask, as obtained through `duck... | 132 | [
0.11890102177858353,
0.01533113420009613,
-0.01635786145925522,
0.02390380948781967,
0.0552239827811718,
-0.0536290667951107,
0.0549049973487854,
0.024422157555818558,
0.00978381559252739,
-0.02972525544464588,
0.050518978387117386,
0.0003144664515275508,
-0.01877017319202423,
-0.031838521... | [
-0.10126056522130966,
0.08506700396537781,
-0.06488365679979324,
-0.09601891785860062,
-0.08698877692222595,
-0.025475014001131058,
-0.10939063876867294,
-0.08438839018344879,
-0.13741590082645416,
-0.006689759902656078,
0.030868330970406532,
0.07191573083400726,
-0.028996339067816734,
-0.... |
Client APIs | C | API Reference Overview | `duckdb_validity_set_row_validity` | In a validity mask, sets a specific row to either valid or invalid.
Note that `duckdb_vector_ensure_validity_writable` should be called before calling `duckdb_vector_get_validity`,
to ensure that there is a validity mask to write to.
###### Syntax {#docs:api:c:vector::syntax}
```c
void duckdb_validity_set_row_val... | 160 | [
0.11890102177858353,
0.01533113420009613,
-0.01635786145925522,
0.02390380948781967,
0.0552239827811718,
-0.0536290667951107,
0.0549049973487854,
0.024422157555818558,
0.00978381559252739,
-0.02972525544464588,
0.050518978387117386,
0.0003144664515275508,
-0.01877017319202423,
-0.031838521... | [
-0.10126056522130966,
0.08506700396537781,
-0.06488365679979324,
-0.09601891785860062,
-0.08698877692222595,
-0.025475014001131058,
-0.10939063876867294,
-0.08438839018344879,
-0.13741590082645416,
-0.006689759902656078,
0.030868330970406532,
0.07191573083400726,
-0.028996339067816734,
-0.... |
Client APIs | C | API Reference Overview | `duckdb_validity_set_row_invalid` | In a validity mask, sets a specific row to invalid.
Equivalent to `duckdb_validity_set_row_validity` with valid set to false.
###### Syntax {#docs:api:c:vector::syntax}
```c
void duckdb_validity_set_row_invalid(
uint64_t *validity,
idx_t row
);
```
###### Parameters {#docs:api:c:vector::parameters}
* `validit... | 105 | [
0.11890102177858353,
0.01533113420009613,
-0.01635786145925522,
0.02390380948781967,
0.0552239827811718,
-0.0536290667951107,
0.0549049973487854,
0.024422157555818558,
0.00978381559252739,
-0.02972525544464588,
0.050518978387117386,
0.0003144664515275508,
-0.01877017319202423,
-0.031838521... | [
-0.10126056522130966,
0.08506700396537781,
-0.06488365679979324,
-0.09601891785860062,
-0.08698877692222595,
-0.025475014001131058,
-0.10939063876867294,
-0.08438839018344879,
-0.13741590082645416,
-0.006689759902656078,
0.030868330970406532,
0.07191573083400726,
-0.028996339067816734,
-0.... |
Client APIs | C | API Reference Overview | `duckdb_validity_set_row_valid` | In a validity mask, sets a specific row to valid.
Equivalent to `duckdb_validity_set_row_validity` with valid set to true.
###### Syntax {#docs:api:c:vector::syntax}
```c
void duckdb_validity_set_row_valid(
uint64_t *validity,
idx_t row
);
```
###### Parameters {#docs:api:c:vector::parameters}
* `validity`: T... | 105 | [
0.11890102177858353,
0.01533113420009613,
-0.01635786145925522,
0.02390380948781967,
0.0552239827811718,
-0.0536290667951107,
0.0549049973487854,
0.024422157555818558,
0.00978381559252739,
-0.02972525544464588,
0.050518978387117386,
0.0003144664515275508,
-0.01877017319202423,
-0.031838521... | [
-0.10126056522130966,
0.08506700396537781,
-0.06488365679979324,
-0.09601891785860062,
-0.08698877692222595,
-0.025475014001131058,
-0.10939063876867294,
-0.08438839018344879,
-0.13741590082645416,
-0.006689759902656078,
0.030868330970406532,
0.07191573083400726,
-0.028996339067816734,
-0.... |
Client APIs | C | Values | The value class represents a single value of any type. | 11 | [
0.11890102177858353,
0.01533113420009613,
-0.01635786145925522,
0.02390380948781967,
0.0552239827811718,
-0.0536290667951107,
0.0549049973487854,
0.024422157555818558,
0.00978381559252739,
-0.02972525544464588,
0.050518978387117386,
0.0003144664515275508,
-0.01877017319202423,
-0.031838521... | [
-0.10126056522130966,
0.08506700396537781,
-0.06488365679979324,
-0.09601891785860062,
-0.08698877692222595,
-0.025475014001131058,
-0.10939063876867294,
-0.08438839018344879,
-0.13741590082645416,
-0.006689759902656078,
0.030868330970406532,
0.07191573083400726,
-0.028996339067816734,
-0.... | |
Client APIs | C | API Reference Overview | <!-- This section is generated by scripts/generate_c_api_docs.py -->
```c
void duckdb_destroy_value(duckdb_value *value);
duckdb_value duckdb_create_varchar(const char *text);
duckdb_value duckdb_create_varchar_length(const char *text, idx_t length);
duckdb_value duckdb_create_bool(bool input);
duckdb_value duckdb_cr... | 729 | [
0.11890102177858353,
0.01533113420009613,
-0.01635786145925522,
0.02390380948781967,
0.0552239827811718,
-0.0536290667951107,
0.0549049973487854,
0.024422157555818558,
0.00978381559252739,
-0.02972525544464588,
0.050518978387117386,
0.0003144664515275508,
-0.01877017319202423,
-0.031838521... | [
-0.10126056522130966,
0.08506700396537781,
-0.06488365679979324,
-0.09601891785860062,
-0.08698877692222595,
-0.025475014001131058,
-0.10939063876867294,
-0.08438839018344879,
-0.13741590082645416,
-0.006689759902656078,
0.030868330970406532,
0.07191573083400726,
-0.028996339067816734,
-0.... | |
Client APIs | C | API Reference Overview | `duckdb_destroy_value` | Destroys the value and de-allocates all memory allocated for that type.
###### Syntax {#docs:api:c:value::syntax}
```c
void duckdb_destroy_value(
duckdb_value *value
);
```
###### Parameters {#docs:api:c:value::parameters}
* `value`: The value to destroy.
<br> | 73 | [
0.11890102177858353,
0.01533113420009613,
-0.01635786145925522,
0.02390380948781967,
0.0552239827811718,
-0.0536290667951107,
0.0549049973487854,
0.024422157555818558,
0.00978381559252739,
-0.02972525544464588,
0.050518978387117386,
0.0003144664515275508,
-0.01877017319202423,
-0.031838521... | [
-0.10126056522130966,
0.08506700396537781,
-0.06488365679979324,
-0.09601891785860062,
-0.08698877692222595,
-0.025475014001131058,
-0.10939063876867294,
-0.08438839018344879,
-0.13741590082645416,
-0.006689759902656078,
0.030868330970406532,
0.07191573083400726,
-0.028996339067816734,
-0.... |
Client APIs | C | API Reference Overview | `duckdb_create_varchar` | Creates a value from a null-terminated string
###### Syntax {#docs:api:c:value::syntax}
```c
duckdb_value duckdb_create_varchar(
const char *text
);
```
###### Parameters {#docs:api:c:value::parameters}
* `text`: The null-terminated string
###### Return Value {#docs:api:c:value::return-value}
The value. Thi... | 98 | [
0.11890102177858353,
0.01533113420009613,
-0.01635786145925522,
0.02390380948781967,
0.0552239827811718,
-0.0536290667951107,
0.0549049973487854,
0.024422157555818558,
0.00978381559252739,
-0.02972525544464588,
0.050518978387117386,
0.0003144664515275508,
-0.01877017319202423,
-0.031838521... | [
-0.10126056522130966,
0.08506700396537781,
-0.06488365679979324,
-0.09601891785860062,
-0.08698877692222595,
-0.025475014001131058,
-0.10939063876867294,
-0.08438839018344879,
-0.13741590082645416,
-0.006689759902656078,
0.030868330970406532,
0.07191573083400726,
-0.028996339067816734,
-0.... |
Client APIs | C | API Reference Overview | `duckdb_create_varchar_length` | Creates a value from a string
###### Syntax {#docs:api:c:value::syntax}
```c
duckdb_value duckdb_create_varchar_length(
const char *text,
idx_t length
);
```
###### Parameters {#docs:api:c:value::parameters}
* `text`: The text
* `length`: The length of the text
###### Return Value {#docs:api:c:value::return-v... | 107 | [
0.11890102177858353,
0.01533113420009613,
-0.01635786145925522,
0.02390380948781967,
0.0552239827811718,
-0.0536290667951107,
0.0549049973487854,
0.024422157555818558,
0.00978381559252739,
-0.02972525544464588,
0.050518978387117386,
0.0003144664515275508,
-0.01877017319202423,
-0.031838521... | [
-0.10126056522130966,
0.08506700396537781,
-0.06488365679979324,
-0.09601891785860062,
-0.08698877692222595,
-0.025475014001131058,
-0.10939063876867294,
-0.08438839018344879,
-0.13741590082645416,
-0.006689759902656078,
0.030868330970406532,
0.07191573083400726,
-0.028996339067816734,
-0.... |
Client APIs | C | API Reference Overview | `duckdb_create_bool` | Creates a value from a boolean
###### Syntax {#docs:api:c:value::syntax}
```c
duckdb_value duckdb_create_bool(
bool input
);
```
###### Parameters {#docs:api:c:value::parameters}
* `input`: The boolean value
###### Return Value {#docs:api:c:value::return-value}
The value. This must be destroyed with `duckdb... | 90 | [
0.11890102177858353,
0.01533113420009613,
-0.01635786145925522,
0.02390380948781967,
0.0552239827811718,
-0.0536290667951107,
0.0549049973487854,
0.024422157555818558,
0.00978381559252739,
-0.02972525544464588,
0.050518978387117386,
0.0003144664515275508,
-0.01877017319202423,
-0.031838521... | [
-0.10126056522130966,
0.08506700396537781,
-0.06488365679979324,
-0.09601891785860062,
-0.08698877692222595,
-0.025475014001131058,
-0.10939063876867294,
-0.08438839018344879,
-0.13741590082645416,
-0.006689759902656078,
0.030868330970406532,
0.07191573083400726,
-0.028996339067816734,
-0.... |
Client APIs | C | API Reference Overview | `duckdb_create_int8` | Creates a value from a int8_t (a tinyint)
###### Syntax {#docs:api:c:value::syntax}
```c
duckdb_value duckdb_create_int8(
int8_t input
);
```
###### Parameters {#docs:api:c:value::parameters}
* `input`: The tinyint value
###### Return Value {#docs:api:c:value::return-value}
The value. This must be destroyed... | 101 | [
0.11890102177858353,
0.01533113420009613,
-0.01635786145925522,
0.02390380948781967,
0.0552239827811718,
-0.0536290667951107,
0.0549049973487854,
0.024422157555818558,
0.00978381559252739,
-0.02972525544464588,
0.050518978387117386,
0.0003144664515275508,
-0.01877017319202423,
-0.031838521... | [
-0.10126056522130966,
0.08506700396537781,
-0.06488365679979324,
-0.09601891785860062,
-0.08698877692222595,
-0.025475014001131058,
-0.10939063876867294,
-0.08438839018344879,
-0.13741590082645416,
-0.006689759902656078,
0.030868330970406532,
0.07191573083400726,
-0.028996339067816734,
-0.... |
Client APIs | C | API Reference Overview | `duckdb_create_uint8` | Creates a value from a uint8_t (a utinyint)
###### Syntax {#docs:api:c:value::syntax}
```c
duckdb_value duckdb_create_uint8(
uint8_t input
);
```
###### Parameters {#docs:api:c:value::parameters}
* `input`: The utinyint value
###### Return Value {#docs:api:c:value::return-value}
The value. This must be dest... | 103 | [
0.11890102177858353,
0.01533113420009613,
-0.01635786145925522,
0.02390380948781967,
0.0552239827811718,
-0.0536290667951107,
0.0549049973487854,
0.024422157555818558,
0.00978381559252739,
-0.02972525544464588,
0.050518978387117386,
0.0003144664515275508,
-0.01877017319202423,
-0.031838521... | [
-0.10126056522130966,
0.08506700396537781,
-0.06488365679979324,
-0.09601891785860062,
-0.08698877692222595,
-0.025475014001131058,
-0.10939063876867294,
-0.08438839018344879,
-0.13741590082645416,
-0.006689759902656078,
0.030868330970406532,
0.07191573083400726,
-0.028996339067816734,
-0.... |
Client APIs | C | API Reference Overview | `duckdb_create_int16` | Creates a value from a int16_t (a smallint)
###### Syntax {#docs:api:c:value::syntax}
```c
duckdb_value duckdb_create_int16(
int16_t input
);
```
###### Parameters {#docs:api:c:value::parameters}
* `input`: The smallint value
###### Return Value {#docs:api:c:value::return-value}
The value. This must be dest... | 101 | [
0.11890102177858353,
0.01533113420009613,
-0.01635786145925522,
0.02390380948781967,
0.0552239827811718,
-0.0536290667951107,
0.0549049973487854,
0.024422157555818558,
0.00978381559252739,
-0.02972525544464588,
0.050518978387117386,
0.0003144664515275508,
-0.01877017319202423,
-0.031838521... | [
-0.10126056522130966,
0.08506700396537781,
-0.06488365679979324,
-0.09601891785860062,
-0.08698877692222595,
-0.025475014001131058,
-0.10939063876867294,
-0.08438839018344879,
-0.13741590082645416,
-0.006689759902656078,
0.030868330970406532,
0.07191573083400726,
-0.028996339067816734,
-0.... |
Client APIs | C | API Reference Overview | `duckdb_create_uint16` | Creates a value from a uint16_t (a usmallint)
###### Syntax {#docs:api:c:value::syntax}
```c
duckdb_value duckdb_create_uint16(
uint16_t input
);
```
###### Parameters {#docs:api:c:value::parameters}
* `input`: The usmallint value
###### Return Value {#docs:api:c:value::return-value}
The value. This must be... | 103 | [
0.11890102177858353,
0.01533113420009613,
-0.01635786145925522,
0.02390380948781967,
0.0552239827811718,
-0.0536290667951107,
0.0549049973487854,
0.024422157555818558,
0.00978381559252739,
-0.02972525544464588,
0.050518978387117386,
0.0003144664515275508,
-0.01877017319202423,
-0.031838521... | [
-0.10126056522130966,
0.08506700396537781,
-0.06488365679979324,
-0.09601891785860062,
-0.08698877692222595,
-0.025475014001131058,
-0.10939063876867294,
-0.08438839018344879,
-0.13741590082645416,
-0.006689759902656078,
0.030868330970406532,
0.07191573083400726,
-0.028996339067816734,
-0.... |
Client APIs | C | API Reference Overview | `duckdb_create_int32` | Creates a value from a int32_t (an integer)
###### Syntax {#docs:api:c:value::syntax}
```c
duckdb_value duckdb_create_int32(
int32_t input
);
```
###### Parameters {#docs:api:c:value::parameters}
* `input`: The integer value
###### Return Value {#docs:api:c:value::return-value}
The value. This must be destr... | 99 | [
0.11890102177858353,
0.01533113420009613,
-0.01635786145925522,
0.02390380948781967,
0.0552239827811718,
-0.0536290667951107,
0.0549049973487854,
0.024422157555818558,
0.00978381559252739,
-0.02972525544464588,
0.050518978387117386,
0.0003144664515275508,
-0.01877017319202423,
-0.031838521... | [
-0.10126056522130966,
0.08506700396537781,
-0.06488365679979324,
-0.09601891785860062,
-0.08698877692222595,
-0.025475014001131058,
-0.10939063876867294,
-0.08438839018344879,
-0.13741590082645416,
-0.006689759902656078,
0.030868330970406532,
0.07191573083400726,
-0.028996339067816734,
-0.... |
Client APIs | C | API Reference Overview | `duckdb_create_uint32` | Creates a value from a uint32_t (a uinteger)
###### Syntax {#docs:api:c:value::syntax}
```c
duckdb_value duckdb_create_uint32(
uint32_t input
);
```
###### Parameters {#docs:api:c:value::parameters}
* `input`: The uinteger value
###### Return Value {#docs:api:c:value::return-value}
The value. This must be d... | 101 | [
0.11890102177858353,
0.01533113420009613,
-0.01635786145925522,
0.02390380948781967,
0.0552239827811718,
-0.0536290667951107,
0.0549049973487854,
0.024422157555818558,
0.00978381559252739,
-0.02972525544464588,
0.050518978387117386,
0.0003144664515275508,
-0.01877017319202423,
-0.031838521... | [
-0.10126056522130966,
0.08506700396537781,
-0.06488365679979324,
-0.09601891785860062,
-0.08698877692222595,
-0.025475014001131058,
-0.10939063876867294,
-0.08438839018344879,
-0.13741590082645416,
-0.006689759902656078,
0.030868330970406532,
0.07191573083400726,
-0.028996339067816734,
-0.... |
Client APIs | C | API Reference Overview | `duckdb_create_uint64` | Creates a value from a uint64_t (a ubigint)
###### Syntax {#docs:api:c:value::syntax}
```c
duckdb_value duckdb_create_uint64(
uint64_t input
);
```
###### Parameters {#docs:api:c:value::parameters}
* `input`: The ubigint value
###### Return Value {#docs:api:c:value::return-value}
The value. This must be des... | 103 | [
0.11890102177858353,
0.01533113420009613,
-0.01635786145925522,
0.02390380948781967,
0.0552239827811718,
-0.0536290667951107,
0.0549049973487854,
0.024422157555818558,
0.00978381559252739,
-0.02972525544464588,
0.050518978387117386,
0.0003144664515275508,
-0.01877017319202423,
-0.031838521... | [
-0.10126056522130966,
0.08506700396537781,
-0.06488365679979324,
-0.09601891785860062,
-0.08698877692222595,
-0.025475014001131058,
-0.10939063876867294,
-0.08438839018344879,
-0.13741590082645416,
-0.006689759902656078,
0.030868330970406532,
0.07191573083400726,
-0.028996339067816734,
-0.... |
Client APIs | C | API Reference Overview | `duckdb_create_int64` | Creates a value from an int64
###### Return Value {#docs:api:c:value::return-value}
The value. This must be destroyed with `duckdb_destroy_value`.
###### Syntax {#docs:api:c:value::syntax}
```c
duckdb_value duckdb_create_int64(
int64_t val
);
```
<br> | 73 | [
0.11890102177858353,
0.01533113420009613,
-0.01635786145925522,
0.02390380948781967,
0.0552239827811718,
-0.0536290667951107,
0.0549049973487854,
0.024422157555818558,
0.00978381559252739,
-0.02972525544464588,
0.050518978387117386,
0.0003144664515275508,
-0.01877017319202423,
-0.031838521... | [
-0.10126056522130966,
0.08506700396537781,
-0.06488365679979324,
-0.09601891785860062,
-0.08698877692222595,
-0.025475014001131058,
-0.10939063876867294,
-0.08438839018344879,
-0.13741590082645416,
-0.006689759902656078,
0.030868330970406532,
0.07191573083400726,
-0.028996339067816734,
-0.... |
Client APIs | C | API Reference Overview | `duckdb_create_hugeint` | Creates a value from a hugeint
###### Syntax {#docs:api:c:value::syntax}
```c
duckdb_value duckdb_create_hugeint(
duckdb_hugeint input
);
```
###### Parameters {#docs:api:c:value::parameters}
* `input`: The hugeint value
###### Return Value {#docs:api:c:value::return-value}
The value. This must be destroyed... | 98 | [
0.11890102177858353,
0.01533113420009613,
-0.01635786145925522,
0.02390380948781967,
0.0552239827811718,
-0.0536290667951107,
0.0549049973487854,
0.024422157555818558,
0.00978381559252739,
-0.02972525544464588,
0.050518978387117386,
0.0003144664515275508,
-0.01877017319202423,
-0.031838521... | [
-0.10126056522130966,
0.08506700396537781,
-0.06488365679979324,
-0.09601891785860062,
-0.08698877692222595,
-0.025475014001131058,
-0.10939063876867294,
-0.08438839018344879,
-0.13741590082645416,
-0.006689759902656078,
0.030868330970406532,
0.07191573083400726,
-0.028996339067816734,
-0.... |
Client APIs | C | API Reference Overview | `duckdb_create_uhugeint` | Creates a value from a uhugeint
###### Syntax {#docs:api:c:value::syntax}
```c
duckdb_value duckdb_create_uhugeint(
duckdb_uhugeint input
);
```
###### Parameters {#docs:api:c:value::parameters}
* `input`: The uhugeint value
###### Return Value {#docs:api:c:value::return-value}
The value. This must be destr... | 100 | [
0.11890102177858353,
0.01533113420009613,
-0.01635786145925522,
0.02390380948781967,
0.0552239827811718,
-0.0536290667951107,
0.0549049973487854,
0.024422157555818558,
0.00978381559252739,
-0.02972525544464588,
0.050518978387117386,
0.0003144664515275508,
-0.01877017319202423,
-0.031838521... | [
-0.10126056522130966,
0.08506700396537781,
-0.06488365679979324,
-0.09601891785860062,
-0.08698877692222595,
-0.025475014001131058,
-0.10939063876867294,
-0.08438839018344879,
-0.13741590082645416,
-0.006689759902656078,
0.030868330970406532,
0.07191573083400726,
-0.028996339067816734,
-0.... |
Client APIs | C | API Reference Overview | `duckdb_create_float` | Creates a value from a float
###### Syntax {#docs:api:c:value::syntax}
```c
duckdb_value duckdb_create_float(
float input
);
```
###### Parameters {#docs:api:c:value::parameters}
* `input`: The float value
###### Return Value {#docs:api:c:value::return-value}
The value. This must be destroyed with `duckdb_d... | 90 | [
0.11890102177858353,
0.01533113420009613,
-0.01635786145925522,
0.02390380948781967,
0.0552239827811718,
-0.0536290667951107,
0.0549049973487854,
0.024422157555818558,
0.00978381559252739,
-0.02972525544464588,
0.050518978387117386,
0.0003144664515275508,
-0.01877017319202423,
-0.031838521... | [
-0.10126056522130966,
0.08506700396537781,
-0.06488365679979324,
-0.09601891785860062,
-0.08698877692222595,
-0.025475014001131058,
-0.10939063876867294,
-0.08438839018344879,
-0.13741590082645416,
-0.006689759902656078,
0.030868330970406532,
0.07191573083400726,
-0.028996339067816734,
-0.... |
Client APIs | C | API Reference Overview | `duckdb_create_double` | Creates a value from a double
###### Syntax {#docs:api:c:value::syntax}
```c
duckdb_value duckdb_create_double(
double input
);
```
###### Parameters {#docs:api:c:value::parameters}
* `input`: The double value
###### Return Value {#docs:api:c:value::return-value}
The value. This must be destroyed with `duck... | 90 | [
0.11890102177858353,
0.01533113420009613,
-0.01635786145925522,
0.02390380948781967,
0.0552239827811718,
-0.0536290667951107,
0.0549049973487854,
0.024422157555818558,
0.00978381559252739,
-0.02972525544464588,
0.050518978387117386,
0.0003144664515275508,
-0.01877017319202423,
-0.031838521... | [
-0.10126056522130966,
0.08506700396537781,
-0.06488365679979324,
-0.09601891785860062,
-0.08698877692222595,
-0.025475014001131058,
-0.10939063876867294,
-0.08438839018344879,
-0.13741590082645416,
-0.006689759902656078,
0.030868330970406532,
0.07191573083400726,
-0.028996339067816734,
-0.... |
Client APIs | C | API Reference Overview | `duckdb_create_date` | Creates a value from a date
###### Syntax {#docs:api:c:value::syntax}
```c
duckdb_value duckdb_create_date(
duckdb_date input
);
```
###### Parameters {#docs:api:c:value::parameters}
* `input`: The date value
###### Return Value {#docs:api:c:value::return-value}
The value. This must be destroyed with `duckd... | 92 | [
0.11890102177858353,
0.01533113420009613,
-0.01635786145925522,
0.02390380948781967,
0.0552239827811718,
-0.0536290667951107,
0.0549049973487854,
0.024422157555818558,
0.00978381559252739,
-0.02972525544464588,
0.050518978387117386,
0.0003144664515275508,
-0.01877017319202423,
-0.031838521... | [
-0.10126056522130966,
0.08506700396537781,
-0.06488365679979324,
-0.09601891785860062,
-0.08698877692222595,
-0.025475014001131058,
-0.10939063876867294,
-0.08438839018344879,
-0.13741590082645416,
-0.006689759902656078,
0.030868330970406532,
0.07191573083400726,
-0.028996339067816734,
-0.... |
Client APIs | C | API Reference Overview | `duckdb_create_time` | Creates a value from a time
###### Syntax {#docs:api:c:value::syntax}
```c
duckdb_value duckdb_create_time(
duckdb_time input
);
```
###### Parameters {#docs:api:c:value::parameters}
* `input`: The time value
###### Return Value {#docs:api:c:value::return-value}
The value. This must be destroyed with `duckd... | 92 | [
0.11890102177858353,
0.01533113420009613,
-0.01635786145925522,
0.02390380948781967,
0.0552239827811718,
-0.0536290667951107,
0.0549049973487854,
0.024422157555818558,
0.00978381559252739,
-0.02972525544464588,
0.050518978387117386,
0.0003144664515275508,
-0.01877017319202423,
-0.031838521... | [
-0.10126056522130966,
0.08506700396537781,
-0.06488365679979324,
-0.09601891785860062,
-0.08698877692222595,
-0.025475014001131058,
-0.10939063876867294,
-0.08438839018344879,
-0.13741590082645416,
-0.006689759902656078,
0.030868330970406532,
0.07191573083400726,
-0.028996339067816734,
-0.... |
Client APIs | C | API Reference Overview | `duckdb_create_time_tz_value` | Creates a value from a time_tz.
Not to be confused with `duckdb_create_time_tz`, which creates a duckdb_time_tz_t.
###### Syntax {#docs:api:c:value::syntax}
```c
duckdb_value duckdb_create_time_tz_value(
duckdb_time_tz value
);
```
###### Parameters {#docs:api:c:value::parameters}
* `value`: The time_tz value ... | 125 | [
0.11890102177858353,
0.01533113420009613,
-0.01635786145925522,
0.02390380948781967,
0.0552239827811718,
-0.0536290667951107,
0.0549049973487854,
0.024422157555818558,
0.00978381559252739,
-0.02972525544464588,
0.050518978387117386,
0.0003144664515275508,
-0.01877017319202423,
-0.031838521... | [
-0.10126056522130966,
0.08506700396537781,
-0.06488365679979324,
-0.09601891785860062,
-0.08698877692222595,
-0.025475014001131058,
-0.10939063876867294,
-0.08438839018344879,
-0.13741590082645416,
-0.006689759902656078,
0.030868330970406532,
0.07191573083400726,
-0.028996339067816734,
-0.... |
Client APIs | C | API Reference Overview | `duckdb_create_timestamp` | Creates a value from a timestamp
###### Syntax {#docs:api:c:value::syntax}
```c
duckdb_value duckdb_create_timestamp(
duckdb_timestamp input
);
```
###### Parameters {#docs:api:c:value::parameters}
* `input`: The timestamp value
###### Return Value {#docs:api:c:value::return-value}
The value. This must be d... | 92 | [
0.11890102177858353,
0.01533113420009613,
-0.01635786145925522,
0.02390380948781967,
0.0552239827811718,
-0.0536290667951107,
0.0549049973487854,
0.024422157555818558,
0.00978381559252739,
-0.02972525544464588,
0.050518978387117386,
0.0003144664515275508,
-0.01877017319202423,
-0.031838521... | [
-0.10126056522130966,
0.08506700396537781,
-0.06488365679979324,
-0.09601891785860062,
-0.08698877692222595,
-0.025475014001131058,
-0.10939063876867294,
-0.08438839018344879,
-0.13741590082645416,
-0.006689759902656078,
0.030868330970406532,
0.07191573083400726,
-0.028996339067816734,
-0.... |
Client APIs | C | API Reference Overview | `duckdb_create_interval` | Creates a value from an interval
###### Syntax {#docs:api:c:value::syntax}
```c
duckdb_value duckdb_create_interval(
duckdb_interval input
);
```
###### Parameters {#docs:api:c:value::parameters}
* `input`: The interval value
###### Return Value {#docs:api:c:value::return-value}
The value. This must be dest... | 92 | [
0.11890102177858353,
0.01533113420009613,
-0.01635786145925522,
0.02390380948781967,
0.0552239827811718,
-0.0536290667951107,
0.0549049973487854,
0.024422157555818558,
0.00978381559252739,
-0.02972525544464588,
0.050518978387117386,
0.0003144664515275508,
-0.01877017319202423,
-0.031838521... | [
-0.10126056522130966,
0.08506700396537781,
-0.06488365679979324,
-0.09601891785860062,
-0.08698877692222595,
-0.025475014001131058,
-0.10939063876867294,
-0.08438839018344879,
-0.13741590082645416,
-0.006689759902656078,
0.030868330970406532,
0.07191573083400726,
-0.028996339067816734,
-0.... |
Client APIs | C | API Reference Overview | `duckdb_create_blob` | Creates a value from a blob
###### Syntax {#docs:api:c:value::syntax}
```c
duckdb_value duckdb_create_blob(
const uint8_t *data,
idx_t length
);
```
###### Parameters {#docs:api:c:value::parameters}
* `data`: The blob data
* `length`: The length of the blob data
###### Return Value {#docs:api:c:value::return-... | 109 | [
0.11890102177858353,
0.01533113420009613,
-0.01635786145925522,
0.02390380948781967,
0.0552239827811718,
-0.0536290667951107,
0.0549049973487854,
0.024422157555818558,
0.00978381559252739,
-0.02972525544464588,
0.050518978387117386,
0.0003144664515275508,
-0.01877017319202423,
-0.031838521... | [
-0.10126056522130966,
0.08506700396537781,
-0.06488365679979324,
-0.09601891785860062,
-0.08698877692222595,
-0.025475014001131058,
-0.10939063876867294,
-0.08438839018344879,
-0.13741590082645416,
-0.006689759902656078,
0.030868330970406532,
0.07191573083400726,
-0.028996339067816734,
-0.... |
Client APIs | C | API Reference Overview | `duckdb_get_bool` | Returns the boolean value of the given value.
###### Syntax {#docs:api:c:value::syntax}
```c
bool duckdb_get_bool(
duckdb_value val
);
```
###### Parameters {#docs:api:c:value::parameters}
* `val`: A duckdb_value containing a boolean
###### Return Value {#docs:api:c:value::return-value}
A boolean, or false ... | 94 | [
0.11890102177858353,
0.01533113420009613,
-0.01635786145925522,
0.02390380948781967,
0.0552239827811718,
-0.0536290667951107,
0.0549049973487854,
0.024422157555818558,
0.00978381559252739,
-0.02972525544464588,
0.050518978387117386,
0.0003144664515275508,
-0.01877017319202423,
-0.031838521... | [
-0.10126056522130966,
0.08506700396537781,
-0.06488365679979324,
-0.09601891785860062,
-0.08698877692222595,
-0.025475014001131058,
-0.10939063876867294,
-0.08438839018344879,
-0.13741590082645416,
-0.006689759902656078,
0.030868330970406532,
0.07191573083400726,
-0.028996339067816734,
-0.... |
Client APIs | C | API Reference Overview | `duckdb_get_int8` | Returns the int8_t value of the given value.
###### Syntax {#docs:api:c:value::syntax}
```c
int8_t duckdb_get_int8(
duckdb_value val
);
```
###### Parameters {#docs:api:c:value::parameters}
* `val`: A duckdb_value containing a tinyint
###### Return Value {#docs:api:c:value::return-value}
A int8_t, or MinVal... | 106 | [
0.11890102177858353,
0.01533113420009613,
-0.01635786145925522,
0.02390380948781967,
0.0552239827811718,
-0.0536290667951107,
0.0549049973487854,
0.024422157555818558,
0.00978381559252739,
-0.02972525544464588,
0.050518978387117386,
0.0003144664515275508,
-0.01877017319202423,
-0.031838521... | [
-0.10126056522130966,
0.08506700396537781,
-0.06488365679979324,
-0.09601891785860062,
-0.08698877692222595,
-0.025475014001131058,
-0.10939063876867294,
-0.08438839018344879,
-0.13741590082645416,
-0.006689759902656078,
0.030868330970406532,
0.07191573083400726,
-0.028996339067816734,
-0.... |
Client APIs | C | API Reference Overview | `duckdb_get_uint8` | Returns the uint8_t value of the given value.
###### Syntax {#docs:api:c:value::syntax}
```c
uint8_t duckdb_get_uint8(
duckdb_value val
);
```
###### Parameters {#docs:api:c:value::parameters}
* `val`: A duckdb_value containing a utinyint
###### Return Value {#docs:api:c:value::return-value}
A uint8_t, or M... | 107 | [
0.11890102177858353,
0.01533113420009613,
-0.01635786145925522,
0.02390380948781967,
0.0552239827811718,
-0.0536290667951107,
0.0549049973487854,
0.024422157555818558,
0.00978381559252739,
-0.02972525544464588,
0.050518978387117386,
0.0003144664515275508,
-0.01877017319202423,
-0.031838521... | [
-0.10126056522130966,
0.08506700396537781,
-0.06488365679979324,
-0.09601891785860062,
-0.08698877692222595,
-0.025475014001131058,
-0.10939063876867294,
-0.08438839018344879,
-0.13741590082645416,
-0.006689759902656078,
0.030868330970406532,
0.07191573083400726,
-0.028996339067816734,
-0.... |
Client APIs | C | API Reference Overview | `duckdb_get_int16` | Returns the int16_t value of the given value.
###### Syntax {#docs:api:c:value::syntax}
```c
int16_t duckdb_get_int16(
duckdb_value val
);
```
###### Parameters {#docs:api:c:value::parameters}
* `val`: A duckdb_value containing a smallint
###### Return Value {#docs:api:c:value::return-value}
A int16_t, or M... | 106 | [
0.11890102177858353,
0.01533113420009613,
-0.01635786145925522,
0.02390380948781967,
0.0552239827811718,
-0.0536290667951107,
0.0549049973487854,
0.024422157555818558,
0.00978381559252739,
-0.02972525544464588,
0.050518978387117386,
0.0003144664515275508,
-0.01877017319202423,
-0.031838521... | [
-0.10126056522130966,
0.08506700396537781,
-0.06488365679979324,
-0.09601891785860062,
-0.08698877692222595,
-0.025475014001131058,
-0.10939063876867294,
-0.08438839018344879,
-0.13741590082645416,
-0.006689759902656078,
0.030868330970406532,
0.07191573083400726,
-0.028996339067816734,
-0.... |
Client APIs | C | API Reference Overview | `duckdb_get_uint16` | Returns the uint16_t value of the given value.
###### Syntax {#docs:api:c:value::syntax}
```c
uint16_t duckdb_get_uint16(
duckdb_value val
);
```
###### Parameters {#docs:api:c:value::parameters}
* `val`: A duckdb_value containing a usmallint
###### Return Value {#docs:api:c:value::return-value}
A uint16_t,... | 107 | [
0.11890102177858353,
0.01533113420009613,
-0.01635786145925522,
0.02390380948781967,
0.0552239827811718,
-0.0536290667951107,
0.0549049973487854,
0.024422157555818558,
0.00978381559252739,
-0.02972525544464588,
0.050518978387117386,
0.0003144664515275508,
-0.01877017319202423,
-0.031838521... | [
-0.10126056522130966,
0.08506700396537781,
-0.06488365679979324,
-0.09601891785860062,
-0.08698877692222595,
-0.025475014001131058,
-0.10939063876867294,
-0.08438839018344879,
-0.13741590082645416,
-0.006689759902656078,
0.030868330970406532,
0.07191573083400726,
-0.028996339067816734,
-0.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.