Results of 1 - 10 of about 12 for nullptr (0.005 sec.)
- Complete API 11390
- This page contains the reference for DuckDB's C API. The reference contains several deprecation notices. These concern methods whose long-term availability is not guaranteed as they may be removed in the future. That said, DuckDB's develope
...cache in which to create the database, or from which to take the database. path : Path to the database file on disk. Both nullptr and :memory: open or retrieve an in-memory database. out_database : The resulting cached database. config : (Optional) con...kdb_open ( const char * path , duckdb_database * out_database ); Parameters path : Path to the database file on disk. Both nullptr and :memory: open an in-memory database. out_database : The result database object. Return Value DuckDBSuccess on success...ase * out_database , duckdb_config config , char ** out_error ); Parameters path : Path to the database file on disk. Both nullptr and :memory: open an in-memory database. out_database : The result database object. config : (Optional) configuration used... - https://man.mtool.work/duckdb/2.0/clients/c/api.html
- Vectors 10701
- Vectors represent a horizontal slice of a column. They hold a number of values of a specific type, similar to an array. Vectors are the core data representation used in DuckDB. Vectors are typically stored within data chunks . The vector an
...validity returns a pointer to the validity mask. Note that if all values in a vector are valid, this function might return nullptr in which case the validity mask does not need to be checked. Strings String values are stored as a duckdb_string_t . This...act with vectors. Example: Reading an int64 Vector with NULL Values duckdb_database db; duckdb_connection con; duckdb_open(nullptr, &db); duckdb_connect(db, &con); duckdb_result res; duckdb_query(con, "SELECT CASE WHEN i%2=0 THEN NULL ELSE i END res_col...sconnect(&con); duckdb_close(&db); Example: Reading a String Vector duckdb_database db; duckdb_connection con; duckdb_open(nullptr, &db); duckdb_connect(db, &con); duckdb_result res; duckdb_query(con, "SELECT CASE WHEN i%2=0 THEN CONCAT('short_', i) ELS... - https://man.mtool.work/duckdb/2.0/clients/c/vector.html
- Startup & Shutdown 10471
- To use DuckDB, you must first initialize a duckdb_database handle using duckdb_open() . duckdb_open() takes as parameter the database file to read and write from. The special value NULL ( nullptr ) can be used to create an in-memory databas
...cache in which to create the database, or from which to take the database. path : Path to the database file on disk. Both nullptr and :memory: open or retrieve an in-memory database. out_database : The resulting cached database. config : (Optional) con...kdb_open ( const char * path , duckdb_database * out_database ); Parameters path : Path to the database file on disk. Both nullptr and :memory: open an in-memory database. out_database : The result database object. Return Value DuckDBSuccess on success...ase * out_database , duckdb_config config , char ** out_error ); Parameters path : Path to the database file on disk. Both nullptr and :memory: open an in-memory database. out_database : The result database object. config : (Optional) configuration used... - https://man.mtool.work/duckdb/2.0/clients/c/connect.html
- Prepared Statements 10471
- 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
...e 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 cons...ent ); Parameters prepared_statement : The prepared statement to obtain the error from. Return Value The error message, or nullptr if there is none. duckdb_nparams Returns the number of parameters that can be provided to the given prepared statement. Re...Value The parameter type duckdb_param_logical_type Returns the logical type for the parameter at the given index. Returns nullptr if the parameter index is out of range or the statement was not successfully prepared. The return type of this call should... - https://man.mtool.work/duckdb/2.0/clients/c/prepared.html
- Appender 10011
- 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. Append
...arameters connection : The connection context to create the appender in. schema : The schema of the table to append to, or nullptr for the default schema. table : The table name to append to. out_appender : The resulting appender object. Return Value Du...ameters connection : The connection context to create the appender in. catalog : The catalog of the table to append to, or nullptr for the default catalog. schema : The schema of the table to append to, or nullptr for the default schema. table : The tab...r_data instead. Returns the error message associated with the 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 con... - https://man.mtool.work/duckdb/2.0/clients/c/appender.html
- Values 9781
- The value class represents a single value of any type. API Reference Overview void duckdb_destroy_value ( duckdb_value * value ); duckdb_value duckdb_create_varchar ( const char * text ); duckdb_value duckdb_create_varchar_length ( const ch
...es ); Parameters type : The type of the struct values : The values for the struct fields Return Value The struct value, or nullptr, if any child type is DUCKDB_TYPE_ANY or DUCKDB_TYPE_INVALID . duckdb_create_list_value Creates a list value from a child...f the list values : The values for the list value_count : The number of values in the list Return Value The list value, or nullptr, if the child type is DUCKDB_TYPE_ANY or DUCKDB_TYPE_INVALID . duckdb_create_array_value Creates an array value from a chi...e array values : The values for the array value_count : The number of values in the array Return Value The array value, or nullptr, if the child type is DUCKDB_TYPE_ANY or DUCKDB_TYPE_INVALID . duckdb_create_map_value Creates a map value from a map type... - https://man.mtool.work/duckdb/2.0/clients/c/value.html
- C++ API 8649
- Installation To use the DuckDB C++ API, download the libduckdb archive for your platform. The latest stable version of the DuckDB C++ API is 2.0.0. Warning DuckDB's C++ API is internal. It is not guaranteed to be stable and can change witho
...DB instance using its constructor. DuckDB() takes as parameter the database file to read and write from. The special value nullptr can be used to create an in-memory database . Note that for an in-memory database no data is persisted to disk (i.e., all...It is therefore recommended that each thread uses its own connection if you are in a multithreaded environment. DuckDB db(nullptr); Connection con(db); Querying Connections expose the Query() method to send a SQL query string to DuckDB from C++. Query(... - https://man.mtool.work/duckdb/2.0/clients/cpp.html
- Types 7499
- 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. Duc
...b_value_int8 and the value does not fit within an int8 value. In this case, a default value will be returned (usually 0 or nullptr ). The same default value will also be returned if the corresponding value is NULL . The duckdb_value_is_null function can...ate. Return Value The logical type. 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 char * duckdb_logical_type_get_alias ( duckdb_logical_type type )...; Parameters type : The logical type Return Value The alias or nullptr duckdb_logical_type_set_alias Sets the alias of a duckdb_logical_type. Syntax void duckdb_logical_type_set_alias ( duckdb_... - https://man.mtool.work/duckdb/2.0/clients/c/types.html
- Building Extensions 7269
- Extensions can be built from source and installed from the resulting local binary. Building Extensions To build using extension flags, set the BUILD_EXTENSIONS flag to the list of extensions that you want to be built. For example: BUILD_EXT
...throughout the non-performance-critical code have extra checks to ensure memory safety, these checks include: Making sure nullptr is never dereferenced. Making sure index out of bounds accesses don't trigger a crash. With this flag enabled we remove th... - https://man.mtool.work/duckdb/2.0/dev/building/building_extensions.html
- ADBC Client 7039
- Installation To use the DuckDB ADBC client, download the libduckdb archive for your platform and follow the instructions below . For Python, install the duckdb package instead, as described in the Python section . The latest stable version
...g", &adbc_error); StatementBindStream(&adbc_statement, &arrow_stream, &adbc_error); StatementExecuteQuery(&adbc_statement, nullptr, nullptr, &adbc_error); Python The duckdb package contains the DuckDB ADBC driver as its adbc_driver_duckdb module, so Pyt... - https://man.mtool.work/duckdb/2.0/clients/adbc.html
DuckDB 2.0 Documentation / man.mtool.work