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
Client APIs
C
API Reference Overview
`duckdb_get_int32`
Returns the int32_t value of the given value. ###### Syntax {#docs:api:c:value::syntax} ```c int32_t duckdb_get_int32( duckdb_value val ); ``` ###### Parameters {#docs:api:c:value::parameters} * `val`: A duckdb_value containing a integer ###### Return Value {#docs:api:c:value::return-value} A int32_t, or Mi...
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_get_uint32`
Returns the uint32_t value of the given value. ###### Syntax {#docs:api:c:value::syntax} ```c uint32_t duckdb_get_uint32( duckdb_value val ); ``` ###### Parameters {#docs:api:c:value::parameters} * `val`: A duckdb_value containing a uinteger ###### Return Value {#docs:api:c:value::return-value} A uint32_t, ...
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_int64`
Returns the int64_t value of the given value. ###### Syntax {#docs:api:c:value::syntax} ```c int64_t duckdb_get_int64( duckdb_value val ); ``` ###### Parameters {#docs:api:c:value::parameters} * `val`: A duckdb_value containing a bigint ###### Return Value {#docs:api:c:value::return-value} A int64_t, or Min...
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_get_uint64`
Returns the uint64_t value of the given value. ###### Syntax {#docs:api:c:value::syntax} ```c uint64_t duckdb_get_uint64( duckdb_value val ); ``` ###### Parameters {#docs:api:c:value::parameters} * `val`: A duckdb_value containing a ubigint ###### Return Value {#docs:api:c:value::return-value} A uint64_t, o...
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_hugeint`
Returns the hugeint value of the given value. ###### Syntax {#docs:api:c:value::syntax} ```c duckdb_hugeint duckdb_get_hugeint( duckdb_value val ); ``` ###### Parameters {#docs:api:c:value::parameters} * `val`: A duckdb_value containing a hugeint ###### Return Value {#docs:api:c:value::return-value} A duckd...
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_get_uhugeint`
Returns the uhugeint value of the given value. ###### Syntax {#docs:api:c:value::syntax} ```c duckdb_uhugeint duckdb_get_uhugeint( duckdb_value val ); ``` ###### Parameters {#docs:api:c:value::parameters} * `val`: A duckdb_value containing a uhugeint ###### Return Value {#docs:api:c:value::return-value} A d...
114
[ 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_float`
Returns the float value of the given value. ###### Syntax {#docs:api:c:value::syntax} ```c float duckdb_get_float( duckdb_value val ); ``` ###### Parameters {#docs:api:c:value::parameters} * `val`: A duckdb_value containing a float ###### Return Value {#docs:api:c:value::return-value} A float, or NAN if the...
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_double`
Returns the double value of the given value. ###### Syntax {#docs:api:c:value::syntax} ```c double duckdb_get_double( duckdb_value val ); ``` ###### Parameters {#docs:api:c:value::parameters} * `val`: A duckdb_value containing a double ###### Return Value {#docs:api:c:value::return-value} A double, or NAN i...
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_date`
Returns the date value of the given value. ###### Syntax {#docs:api:c:value::syntax} ```c duckdb_date duckdb_get_date( duckdb_value val ); ``` ###### Parameters {#docs:api:c:value::parameters} * `val`: A duckdb_value containing a date ###### Return Value {#docs:api:c:value::return-value} A duckdb_date, or M...
102
[ 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_time`
Returns the time value of the given value. ###### Syntax {#docs:api:c:value::syntax} ```c duckdb_time duckdb_get_time( duckdb_value val ); ``` ###### Parameters {#docs:api:c:value::parameters} * `val`: A duckdb_value containing a time ###### Return Value {#docs:api:c:value::return-value} A duckdb_time, or M...
102
[ 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_time_tz`
Returns the time_tz value of the given value. ###### Syntax {#docs:api:c:value::syntax} ```c duckdb_time_tz duckdb_get_time_tz( duckdb_value val ); ``` ###### Parameters {#docs:api:c:value::parameters} * `val`: A duckdb_value containing a time_tz ###### Return Value {#docs:api:c:value::return-value} A duckd...
114
[ 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_timestamp`
Returns the timestamp value of the given value. ###### Syntax {#docs:api:c:value::syntax} ```c duckdb_timestamp duckdb_get_timestamp( duckdb_value val ); ``` ###### Parameters {#docs:api:c:value::parameters} * `val`: A duckdb_value containing a timestamp ###### Return Value {#docs:api:c:value::return-value} ...
102
[ 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_interval`
Returns the interval value of the given value. ###### Syntax {#docs:api:c:value::syntax} ```c duckdb_interval duckdb_get_interval( duckdb_value val ); ``` ###### Parameters {#docs:api:c:value::parameters} * `val`: A duckdb_value containing a interval ###### Return Value {#docs:api:c:value::return-value} A d...
102
[ 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_value_type`
Returns the type of the given value. The type is valid as long as the value is not destroyed. The type itself must not be destroyed. ###### Syntax {#docs:api:c:value::syntax} ```c duckdb_logical_type duckdb_get_value_type( duckdb_value val ); ``` ###### Parameters {#docs:api:c:value::parameters} * `val`: A duck...
110
[ 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_blob`
Returns the blob value of the given value. ###### Syntax {#docs:api:c:value::syntax} ```c duckdb_blob duckdb_get_blob( duckdb_value val ); ``` ###### Parameters {#docs:api:c:value::parameters} * `val`: A duckdb_value containing a blob ###### Return Value {#docs:api:c:value::return-value} A duckdb_blob <br...
89
[ 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_varchar`
Obtains a string representation of the given value. The result must be destroyed with `duckdb_free`. ###### Syntax {#docs:api:c:value::syntax} ```c char *duckdb_get_varchar( duckdb_value value ); ``` ###### Parameters {#docs:api:c:value::parameters} * `value`: The value ###### Return Value {#docs:api:c:value:...
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_struct_value`
Creates a struct value from a type and an array of values. Must be destroyed with `duckdb_destroy_value`. ###### Syntax {#docs:api:c:value::syntax} ```c duckdb_value duckdb_create_struct_value( duckdb_logical_type type, duckdb_value *values ); ``` ###### Parameters {#docs:api:c:value::parameters} * `type`: The ...
143
[ 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_list_value`
Creates a list value from a child (element) type and an array of values of length `value_count`. Must be destroyed with `duckdb_destroy_value`. ###### Syntax {#docs:api:c:value::syntax} ```c duckdb_value duckdb_create_list_value( duckdb_logical_type type, duckdb_value *values, idx_t value_count ); ``` ###### Para...
169
[ 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_array_value`
Creates an array value from a child (element) type and an array of values of length `value_count`. Must be destroyed with `duckdb_destroy_value`. ###### Syntax {#docs:api:c:value::syntax} ```c duckdb_value duckdb_create_array_value( duckdb_logical_type type, duckdb_value *values, idx_t value_count ); ``` ###### P...
169
[ 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_map_size`
Returns the number of elements in a MAP value. ###### Syntax {#docs:api:c:value::syntax} ```c idx_t duckdb_get_map_size( duckdb_value value ); ``` ###### Parameters {#docs:api:c:value::parameters} * `value`: The MAP value. ###### Return Value {#docs:api:c:value::return-value} The number of elements in the m...
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_map_key`
Returns the MAP key at index as a duckdb_value. ###### Syntax {#docs:api:c:value::syntax} ```c duckdb_value duckdb_get_map_key( duckdb_value value, idx_t index ); ``` ###### Parameters {#docs:api:c:value::parameters} * `value`: The MAP value. * `index`: The index of the key. ###### Return Value {#docs:api:c:v...
108
[ 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_map_value`
Returns the MAP value at index as a duckdb_value. ###### Syntax {#docs:api:c:value::syntax} ```c duckdb_value duckdb_get_map_value( duckdb_value value, idx_t index ); ``` ###### Parameters {#docs:api:c:value::parameters} * `value`: The MAP value. * `index`: The index of the value. ###### Return Value {#docs:a...
108
[ 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
Types
DuckDB is a strongly typed database system. As such, every column has a single type specified. This type is constant over the entire column. That is to say, a column that is labeled as an `INTEGER` column will only contain `INTEGER` values. DuckDB also supports columns of composite types. For example, it is possible ...
540
[ 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
Functions
The enum type of a column in the result can be obtained using the `duckdb_column_type` function. The logical type of a column can be obtained using the `duckdb_column_logical_type` function. #### `duckdb_value` {#docs:api:c:types::duckdb_value} The `duckdb_value` functions will auto-cast values as required. For exa...
442
[ 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_result_get_chunk(duckdb_result result, idx_t chunk_index); bool duckdb_result_is_streaming(duckdb_result result); idx_t duckdb_result_chunk_count(duckdb_result result); duckdb_result_type duckdb_result_return_type(duckd...
940
[ 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_get_chunk`
> **Warning. ** Deprecation notice. This method is scheduled for removal in a future release. Fetches a data chunk from the duckdb_result. This function should be called repeatedly until the result is exhausted. The result must be destroyed with `duckdb_destroy_data_chunk`. This function supersedes all `duckdb_v...
286
[ 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_is_streaming`
> **Warning. ** Deprecation notice. This method is scheduled for removal in a future release. Checks if the type of the internal result is StreamQueryResult. ###### Syntax {#docs:api:c:types::syntax} ```c bool duckdb_result_is_streaming( duckdb_result result ); ``` ###### Parameters {#docs:api:c:types::paramet...
127
[ 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_chunk_count`
> **Warning. ** Deprecation notice. This method is scheduled for removal in a future release. Returns the number of data chunks present in the result. ###### Syntax {#docs:api:c:types::syntax} ```c idx_t duckdb_result_chunk_count( duckdb_result result ); ``` ###### Parameters {#docs:api:c:types::parameters} ...
118
[ 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_return_type`
Returns the return_type of the given result, or DUCKDB_RETURN_TYPE_INVALID on error ###### Syntax {#docs:api:c:types::syntax} ```c duckdb_result_type duckdb_result_return_type( duckdb_result result ); ``` ###### Parameters {#docs:api:c:types::parameters} * `result`: The result object ###### Return Value {#doc...
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_from_date`
Decompose a `duckdb_date` object into year, month and date (stored as `duckdb_date_struct`). ###### Syntax {#docs:api:c:types::syntax} ```c duckdb_date_struct duckdb_from_date( duckdb_date date ); ``` ###### Parameters {#docs:api:c:types::parameters} * `date`: The date object, as obtained from a `DUCKDB_TYPE_DA...
128
[ 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_to_date`
Re-compose a `duckdb_date` from year, month and date (` duckdb_date_struct`). ###### Syntax {#docs:api:c:types::syntax} ```c duckdb_date duckdb_to_date( duckdb_date_struct date ); ``` ###### Parameters {#docs:api:c:types::parameters} * `date`: The year, month and date stored in a `duckdb_date_struct`. ###### ...
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_is_finite_date`
Test a `duckdb_date` to see if it is a finite value. ###### Syntax {#docs:api:c:types::syntax} ```c bool duckdb_is_finite_date( duckdb_date date ); ``` ###### Parameters {#docs:api:c:types::parameters} * `date`: The date object, as obtained from a `DUCKDB_TYPE_DATE` column. ###### Return Value {#docs:api:c:ty...
119
[ 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_from_time`
Decompose a `duckdb_time` object into hour, minute, second and microsecond (stored as `duckdb_time_struct`). ###### Syntax {#docs:api:c:types::syntax} ```c duckdb_time_struct duckdb_from_time( duckdb_time time ); ``` ###### Parameters {#docs:api:c:types::parameters} * `time`: The time object, as obtained from a...
131
[ 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`
Create a `duckdb_time_tz` object from micros and a timezone offset. ###### Syntax {#docs:api:c:types::syntax} ```c duckdb_time_tz duckdb_create_time_tz( int64_t micros, int32_t offset ); ``` ###### Parameters {#docs:api:c:types::parameters} * `micros`: The microsecond component of the time. * `offset`: The time...
131
[ 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_from_time_tz`
Decompose a TIME_TZ objects into micros and a timezone offset. Use `duckdb_from_time` to further decompose the micros into hour, minute, second and microsecond. ###### Syntax {#docs:api:c:types::syntax} ```c duckdb_time_tz_struct duckdb_from_time_tz( duckdb_time_tz micros ); ``` ###### Parameters {#docs:api:c:t...
124
[ 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_to_time`
Re-compose a `duckdb_time` from hour, minute, second and microsecond (` duckdb_time_struct`). ###### Syntax {#docs:api:c:types::syntax} ```c duckdb_time duckdb_to_time( duckdb_time_struct time ); ``` ###### Parameters {#docs:api:c:types::parameters} * `time`: The hour, minute, second and microsecond in a `duckd...
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_from_timestamp`
Decompose a `duckdb_timestamp` object into a `duckdb_timestamp_struct`. ###### Syntax {#docs:api:c:types::syntax} ```c duckdb_timestamp_struct duckdb_from_timestamp( duckdb_timestamp ts ); ``` ###### Parameters {#docs:api:c:types::parameters} * `ts`: The ts object, as obtained from a `DUCKDB_TYPE_TIMESTAMP` col...
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_to_timestamp`
Re-compose a `duckdb_timestamp` from a duckdb_timestamp_struct. ###### Syntax {#docs:api:c:types::syntax} ```c duckdb_timestamp duckdb_to_timestamp( duckdb_timestamp_struct ts ); ``` ###### Parameters {#docs:api:c:types::parameters} * `ts`: The de-composed elements in a `duckdb_timestamp_struct`. ###### Retur...
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_is_finite_timestamp`
Test a `duckdb_timestamp` to see if it is a finite value. ###### Syntax {#docs:api:c:types::syntax} ```c bool duckdb_is_finite_timestamp( duckdb_timestamp ts ); ``` ###### Parameters {#docs:api:c:types::parameters} * `ts`: The timestamp object, as obtained from a `DUCKDB_TYPE_TIMESTAMP` column. ###### Return ...
119
[ 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_hugeint_to_double`
Converts a duckdb_hugeint object (as obtained from a `DUCKDB_TYPE_HUGEINT` column) into a double. ###### Syntax {#docs:api:c:types::syntax} ```c double duckdb_hugeint_to_double( duckdb_hugeint val ); ``` ###### Parameters {#docs:api:c:types::parameters} * `val`: The hugeint value. ###### Return Value {#docs:a...
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_double_to_hugeint`
Converts a double value to a duckdb_hugeint object. If the conversion fails because the double value is too big the result will be 0. ###### Syntax {#docs:api:c:types::syntax} ```c duckdb_hugeint duckdb_double_to_hugeint( double val ); ``` ###### Parameters {#docs:api:c:types::parameters} * `val`: The double ...
123
[ 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_double_to_decimal`
Converts a double value to a duckdb_decimal object. If the conversion fails because the double value is too big, or the width/scale are invalid the result will be 0. ###### Syntax {#docs:api:c:types::syntax} ```c duckdb_decimal duckdb_double_to_decimal( double val, uint8_t width, uint8_t scale ); ``` ###### Par...
133
[ 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_decimal_to_double`
Converts a duckdb_decimal object (as obtained from a `DUCKDB_TYPE_DECIMAL` column) into a double. ###### Syntax {#docs:api:c:types::syntax} ```c double duckdb_decimal_to_double( duckdb_decimal val ); ``` ###### Parameters {#docs:api:c:types::parameters} * `val`: The decimal value. ###### Return Value {#docs:a...
108
[ 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_logical_type`
Creates a `duckdb_logical_type` from a primitive type. The resulting logical type must be destroyed with `duckdb_destroy_logical_type`. Returns an invalid logical type, if type is: `DUCKDB_TYPE_INVALID`, `DUCKDB_TYPE_DECIMAL`, `DUCKDB_TYPE_ENUM`, `DUCKDB_TYPE_LIST`, `DUCKDB_TYPE_STRUCT`, `DUCKDB_TYPE_MAP`, `DUCKDB_TY...
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_logical_type_get_alias`
Returns the alias of a duckdb_logical_type, if set, else `nullptr`. The result must be destroyed with `duckdb_free`. ###### Syntax {#docs:api:c:types::syntax} ```c char *duckdb_logical_type_get_alias( duckdb_logical_type type ); ``` ###### Parameters {#docs:api:c:types::parameters} * `type`: The logical type ...
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_logical_type_set_alias`
Sets the alias of a duckdb_logical_type. ###### Syntax {#docs:api:c:types::syntax} ```c void duckdb_logical_type_set_alias( duckdb_logical_type type, const char *alias ); ``` ###### Parameters {#docs:api:c:types::parameters} * `type`: The logical type * `alias`: The alias to set <br>
83
[ 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_list_type`
Creates a LIST type from its child type. The return type must be destroyed with `duckdb_destroy_logical_type`. ###### Syntax {#docs:api:c:types::syntax} ```c duckdb_logical_type duckdb_create_list_type( duckdb_logical_type type ); ``` ###### Parameters {#docs:api:c:types::parameters} * `type`: The child type of...
108
[ 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_array_type`
Creates an ARRAY type from its child type. The return type must be destroyed with `duckdb_destroy_logical_type`. ###### Syntax {#docs:api:c:types::syntax} ```c duckdb_logical_type duckdb_create_array_type( duckdb_logical_type type, idx_t array_size ); ``` ###### Parameters {#docs:api:c:types::parameters} * `typ...
127
[ 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_map_type`
Creates a MAP type from its key type and value type. The return type must be destroyed with `duckdb_destroy_logical_type`. ###### Syntax {#docs:api:c:types::syntax} ```c duckdb_logical_type duckdb_create_map_type( duckdb_logical_type key_type, duckdb_logical_type value_type ); ``` ###### Parameters {#docs:api:c:t...
131
[ 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_union_type`
Creates a UNION type from the passed arrays. The return type must be destroyed with `duckdb_destroy_logical_type`. ###### Syntax {#docs:api:c:types::syntax} ```c duckdb_logical_type duckdb_create_union_type( duckdb_logical_type *member_types, const char **member_names, idx_t member_count ); ``` ###### Parameters ...
144
[ 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_struct_type`
Creates a STRUCT type based on the member types and names. The resulting type must be destroyed with `duckdb_destroy_logical_type`. ###### Syntax {#docs:api:c:types::syntax} ```c duckdb_logical_type duckdb_create_struct_type( duckdb_logical_type *member_types, const char **member_names, idx_t member_count ); ``` ...
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
API Reference Overview
`duckdb_create_enum_type`
Creates an ENUM type from the passed member name array. The resulting type should be destroyed with `duckdb_destroy_logical_type`. ###### Syntax {#docs:api:c:types::syntax} ```c duckdb_logical_type duckdb_create_enum_type( const char **member_names, idx_t member_count ); ``` ###### Parameters {#docs:api:c:types::...
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_create_decimal_type`
Creates a DECIMAL type with the specified width and scale. The resulting type should be destroyed with `duckdb_destroy_logical_type`. ###### Syntax {#docs:api:c:types::syntax} ```c duckdb_logical_type duckdb_create_decimal_type( uint8_t width, uint8_t scale ); ``` ###### Parameters {#docs:api:c:types::parameters}...
126
[ 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_type_id`
Retrieves the enum `duckdb_type` of a `duckdb_logical_type`. ###### Syntax {#docs:api:c:types::syntax} ```c duckdb_type duckdb_get_type_id( duckdb_logical_type type ); ``` ###### Parameters {#docs:api:c:types::parameters} * `type`: The logical type. ###### Return Value {#docs:api:c:types::return-value} The ...
104
[ 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_decimal_width`
Retrieves the width of a decimal type. ###### Syntax {#docs:api:c:types::syntax} ```c uint8_t duckdb_decimal_width( duckdb_logical_type type ); ``` ###### Parameters {#docs:api:c:types::parameters} * `type`: The logical type object ###### Return Value {#docs:api:c:types::return-value} The width of the decim...
93
[ 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_decimal_scale`
Retrieves the scale of a decimal type. ###### Syntax {#docs:api:c:types::syntax} ```c uint8_t duckdb_decimal_scale( duckdb_logical_type type ); ``` ###### Parameters {#docs:api:c:types::parameters} * `type`: The logical type object ###### Return Value {#docs:api:c:types::return-value} The scale of the decim...
93
[ 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_decimal_internal_type`
Retrieves the internal storage type of a decimal type. ###### Syntax {#docs:api:c:types::syntax} ```c duckdb_type duckdb_decimal_internal_type( duckdb_logical_type type ); ``` ###### Parameters {#docs:api:c:types::parameters} * `type`: The logical type object ###### Return Value {#docs:api:c:types::return-val...
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
API Reference Overview
`duckdb_enum_internal_type`
Retrieves the internal storage type of an enum type. ###### Syntax {#docs:api:c:types::syntax} ```c duckdb_type duckdb_enum_internal_type( duckdb_logical_type type ); ``` ###### Parameters {#docs:api:c:types::parameters} * `type`: The logical type object ###### Return Value {#docs:api:c:types::return-value} ...
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
API Reference Overview
`duckdb_enum_dictionary_size`
Retrieves the dictionary size of the enum type. ###### Syntax {#docs:api:c:types::syntax} ```c uint32_t duckdb_enum_dictionary_size( duckdb_logical_type type ); ``` ###### Parameters {#docs:api:c:types::parameters} * `type`: The logical type object ###### Return Value {#docs:api:c:types::return-value} The d...
96
[ 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_enum_dictionary_value`
Retrieves the dictionary value at the specified position from the enum. The result must be freed with `duckdb_free`. ###### Syntax {#docs:api:c:types::syntax} ```c char *duckdb_enum_dictionary_value( duckdb_logical_type type, idx_t index ); ``` ###### Parameters {#docs:api:c:types::parameters} * `type`: The l...
134
[ 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_type_child_type`
Retrieves the child type of the given LIST type. Also accepts MAP types. The result must be freed with `duckdb_destroy_logical_type`. ###### Syntax {#docs:api:c:types::syntax} ```c duckdb_logical_type duckdb_list_type_child_type( duckdb_logical_type type ); ``` ###### Parameters {#docs:api:c:types::parameters} ...
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_array_type_child_type`
Retrieves the child type of the given ARRAY type. The result must be freed with `duckdb_destroy_logical_type`. ###### Syntax {#docs:api:c:types::syntax} ```c duckdb_logical_type duckdb_array_type_child_type( duckdb_logical_type type ); ``` ###### Parameters {#docs:api:c:types::parameters} * `type`: The logica...
118
[ 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_type_array_size`
Retrieves the array size of the given array type. ###### Syntax {#docs:api:c:types::syntax} ```c idx_t duckdb_array_type_array_size( duckdb_logical_type type ); ``` ###### Parameters {#docs:api:c:types::parameters} * `type`: The logical type object ###### Return Value {#docs:api:c:types::return-value} The f...
104
[ 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_map_type_key_type`
Retrieves the key type of the given map type. The result must be freed with `duckdb_destroy_logical_type`. ###### Syntax {#docs:api:c:types::syntax} ```c duckdb_logical_type duckdb_map_type_key_type( duckdb_logical_type type ); ``` ###### Parameters {#docs:api:c:types::parameters} * `type`: The logical type o...
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_map_type_value_type`
Retrieves the value type of the given map type. The result must be freed with `duckdb_destroy_logical_type`. ###### Syntax {#docs:api:c:types::syntax} ```c duckdb_logical_type duckdb_map_type_value_type( duckdb_logical_type type ); ``` ###### Parameters {#docs:api:c:types::parameters} * `type`: The logical ty...
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_struct_type_child_count`
Returns the number of children of a struct type. ###### Syntax {#docs:api:c:types::syntax} ```c idx_t duckdb_struct_type_child_count( duckdb_logical_type type ); ``` ###### Parameters {#docs:api:c:types::parameters} * `type`: The logical type object ###### Return Value {#docs:api:c:types::return-value} The ...
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
API Reference Overview
`duckdb_struct_type_child_name`
Retrieves the name of the struct child. The result must be freed with `duckdb_free`. ###### Syntax {#docs:api:c:types::syntax} ```c char *duckdb_struct_type_child_name( duckdb_logical_type type, idx_t index ); ``` ###### Parameters {#docs:api:c:types::parameters} * `type`: The logical type object * `index`: T...
128
[ 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_type_child_type`
Retrieves the child type of the given struct type at the specified index. The result must be freed with `duckdb_destroy_logical_type`. ###### Syntax {#docs:api:c:types::syntax} ```c duckdb_logical_type duckdb_struct_type_child_type( duckdb_logical_type type, idx_t index ); ``` ###### Parameters {#docs:api:c:typ...
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_union_type_member_count`
Returns the number of members that the union type has. ###### Syntax {#docs:api:c:types::syntax} ```c idx_t duckdb_union_type_member_count( duckdb_logical_type type ); ``` ###### Parameters {#docs:api:c:types::parameters} * `type`: The logical type (union) object ###### Return Value {#docs:api:c:types::return...
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_union_type_member_name`
Retrieves the name of the union member. The result must be freed with `duckdb_free`. ###### Syntax {#docs:api:c:types::syntax} ```c char *duckdb_union_type_member_name( duckdb_logical_type type, idx_t index ); ``` ###### Parameters {#docs:api:c:types::parameters} * `type`: The logical type object * `index`: T...
128
[ 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_union_type_member_type`
Retrieves the child type of the given union member at the specified index. The result must be freed with `duckdb_destroy_logical_type`. ###### Syntax {#docs:api:c:types::syntax} ```c duckdb_logical_type duckdb_union_type_member_type( duckdb_logical_type type, idx_t index ); ``` ###### Parameters {#docs:api:c:ty...
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_destroy_logical_type`
Destroys the logical type and de-allocates all memory allocated for that type. ###### Syntax {#docs:api:c:types::syntax} ```c void duckdb_destroy_logical_type( duckdb_logical_type *type ); ``` ###### Parameters {#docs:api:c:types::parameters} * `type`: The logical type 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_register_logical_type`
Registers a custom type within the given connection. The type must have an alias ###### Syntax {#docs:api:c:types::syntax} ```c duckdb_state duckdb_register_logical_type( duckdb_connection con, duckdb_logical_type type, duckdb_create_type_info info ); ``` ###### Parameters {#docs:api:c:types::parameters} * `con...
123
[ 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
Prepared Statements
A prepared statement is a parameterized query. The query is prepared with question marks (` ?`) or dollar symbols (` $1`) indicating the parameters of the query. Values can then be bound to these parameters, after which the prepared statement can be executed using those parameters. A single query can be prepared once a...
177
[ 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_prepared_statement stmt; duckdb_result result; if (duckdb_prepare(con, "INSERT INTO integers VALUES ($1, $2)", &stmt) == DuckDBError) { // handle error } duckdb_bind_int32(stmt, 1, 42); // the parameter index starts counting at 1! duckdb_bind_int32(stmt, 2, 43); // NULL as second parameter means no result ...
356
[ 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_prepare(duckdb_connection connection, const char *query, duckdb_prepared_statement *out_prepared_statement); void duckdb_destroy_prepare(duckdb_prepared_statement *prepared_statement); const char *duckdb_prepare_error(duckdb...
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
API Reference Overview
`duckdb_prepare`
Create a prepared statement object from a query. Note that after calling `duckdb_prepare`, the prepared statement should always be destroyed using `duckdb_destroy_prepare`, even if the prepare fails. If the prepare fails, `duckdb_prepare_error` can be called to obtain the reason why the prepare failed. ###### Syn...
195
[ 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_prepare`
Closes the prepared statement and de-allocates all memory allocated for the statement. ###### Syntax {#docs:api:c:prepared::syntax} ```c void duckdb_destroy_prepare( duckdb_prepared_statement *prepared_statement ); ``` ###### Parameters {#docs:api:c:prepared::parameters} * `prepared_statement`: The prepared sta...
81
[ 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_prepare_error`
Returns the error message associated with the given prepared statement. If the prepared statement has no error message, this returns `nullptr` instead. The error message should not be freed. It will be de-allocated when `duckdb_destroy_prepare` is called. ###### Syntax {#docs:api:c:prepared::syntax} ```c const ch...
150
[ 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_nparams`
Returns the number of parameters that can be provided to the given prepared statement. Returns 0 if the query was not successfully prepared. ###### Syntax {#docs:api:c:prepared::syntax} ```c idx_t duckdb_nparams( duckdb_prepared_statement prepared_statement ); ``` ###### Parameters {#docs:api:c:prepared::parame...
96
[ 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_parameter_name`
Returns the name used to identify the parameter The returned string should be freed using `duckdb_free`. Returns NULL if the index is out of range for the provided prepared statement. ###### Syntax {#docs:api:c:prepared::syntax} ```c const char *duckdb_parameter_name( duckdb_prepared_statement prepared_statement,...
112
[ 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_param_type`
Returns the parameter type for the parameter at the given index. Returns `DUCKDB_TYPE_INVALID` if the parameter index is out of range or the statement was not successfully prepared. ###### Syntax {#docs:api:c:prepared::syntax} ```c duckdb_type duckdb_param_type( duckdb_prepared_statement prepared_statement, idx_t...
134
[ 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_clear_bindings`
Clear the params bind to the prepared statement. ###### Syntax {#docs:api:c:prepared::syntax} ```c duckdb_state duckdb_clear_bindings( duckdb_prepared_statement prepared_statement ); ``` <br>
48
[ 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_prepared_statement_type`
Returns the statement type of the statement to be executed ###### Syntax {#docs:api:c:prepared::syntax} ```c duckdb_statement_type duckdb_prepared_statement_type( duckdb_prepared_statement statement ); ``` ###### Parameters {#docs:api:c:prepared::parameters} * `statement`: The prepared statement. ###### Retur...
104
[ 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
Appender
Appenders are the most efficient way of loading data into DuckDB from within the C interface, and are recommended for fast data loading. The appender is much faster than using prepared statements or individual `INSERT INTO` statements. Appends are made in row-wise format. For every column, a `duckdb_append_[type]` ca...
153
[ 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_query(con, "CREATE TABLE people (id INTEGER, name VARCHAR)", NULL); duckdb_appender appender; if (duckdb_appender_create(con, NULL, "people", &appender) == DuckDBError) { // handle error } // append the first row (1, Mark) duckdb_append_int32(appender, 1); duckdb_append_varchar(appender, "Mark"); duckdb_ap...
163
[ 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_appender_create(duckdb_connection connection, const char *schema, const char *table, duckdb_appender *out_appender); idx_t duckdb_appender_column_count(duckdb_appender appender); duckdb_logical_type duckdb_appender_column_ty...
663
[ 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_appender_create`
Creates an appender object. Note that the object must be destroyed with `duckdb_appender_destroy`. ###### Syntax {#docs:api:c:appender::syntax} ```c duckdb_state duckdb_appender_create( duckdb_connection connection, const char *schema, const char *table, duckdb_appender *out_appender ); ``` ###### Parameters {#...
190
[ 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_appender_column_count`
Returns the number of columns in the table that belongs to the appender. ###### Syntax {#docs:api:c:appender::syntax} ```c idx_t duckdb_appender_column_count( duckdb_appender appender ); ``` ###### Parameters {#docs:api:c:appender::parameters} * `appender`: The appender to get the column count from. ###### Re...
112
[ 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_appender_column_type`
Returns the type of the column at the specified index. Note: The resulting type should be destroyed with `duckdb_destroy_logical_type`. ###### Syntax {#docs:api:c:appender::syntax} ```c duckdb_logical_type duckdb_appender_column_type( duckdb_appender appender, idx_t col_idx ); ``` ###### Parameters {#docs:api:c...
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_appender_error`
Returns the error message associated with the given appender. If the appender has no error message, this returns `nullptr` instead. The error message should not be freed. It will be de-allocated when `duckdb_appender_destroy` is called. ###### Syntax {#docs:api:c:appender::syntax} ```c const char *duckdb_appender...
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_appender_flush`
Flush the appender to the table, forcing the cache of the appender to be cleared. If flushing the data triggers a constraint violation or any other error, then all data is invalidated, and this function returns DuckDBError. It is not possible to append more values. Call duckdb_appender_error to obtain the error message...
185
[ 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_appender_close`
Closes the appender by flushing all intermediate states and closing it for further appends. If flushing the data triggers a constraint violation or any other error, then all data is invalidated, and this function returns DuckDBError. Call duckdb_appender_error to obtain the error message followed by duckdb_appender_des...
178
[ 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_appender_destroy`
Closes the appender by flushing all intermediate states to the table and destroying it. By destroying it, this function de-allocates all memory associated with the appender. If flushing the data triggers a constraint violation, then all data is invalidated, and this function returns DuckDBError. Due to the destruction ...
220
[ 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_appender_begin_row`
A nop function, provided for backwards compatibility reasons. Does nothing. Only `duckdb_appender_end_row` is required. ###### Syntax {#docs:api:c:appender::syntax} ```c duckdb_state duckdb_appender_begin_row( duckdb_appender appender ); ``` <br>
66
[ 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_appender_end_row`
Finish the current row of appends. After end_row is called, the next row can be appended. ###### Syntax {#docs:api:c:appender::syntax} ```c duckdb_state duckdb_appender_end_row( duckdb_appender appender ); ``` ###### Parameters {#docs:api:c:appender::parameters} * `appender`: The appender. ###### Return Value...
123
[ 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_append_default`
Append a DEFAULT value (NULL if DEFAULT not available for column) to the appender. ###### Syntax {#docs:api:c:appender::syntax} ```c duckdb_state duckdb_append_default( duckdb_appender appender ); ``` <br>
57
[ 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_append_bool`
Append a bool value to the appender. ###### Syntax {#docs:api:c:appender::syntax} ```c duckdb_state duckdb_append_bool( duckdb_appender appender, bool value ); ``` <br>
51
[ 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_append_int8`
Append an int8_t value to the appender. ###### Syntax {#docs:api:c:appender::syntax} ```c duckdb_state duckdb_append_int8( duckdb_appender appender, int8_t value ); ``` <br>
56
[ 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_append_int16`
Append an int16_t value to the appender. ###### Syntax {#docs:api:c:appender::syntax} ```c duckdb_state duckdb_append_int16( duckdb_appender appender, int16_t value ); ``` <br>
56
[ 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....