⌘K ctrl+k
Search Shortcut cmd + k | ctrl + k
DuckDB 2.0 ドキュメント 全文検索
per page, with , order by , clip by
Results of 1 - 10 of about 22 for Rust (0.003 sec.)
Rust Client 14730
Installation To use the DuckDB Rust client, visit the Rust installation page . The latest stable version of the DuckDB Rust client is 2.0.0. The DuckDB Rust client, duckdb-rs , is an ergonomic wrapper over the DuckDB C API that exposes an i ... eries, bulk loading with the Appender, Apache Arrow interchange, user-defined functions, and building DuckDB extensions in Rust. This page focuses on installation. The other pages in this section cover connecting and each feature in detail. Installat ... ion The DuckDB Rust client is published on crates.io . The full API is documented on docs.rs . Add it to a project with cargo , enabling the b ... ev = "abc123def", features = ["bundled"] } For the DuckDB 1.4 Andium LTS release line, use the v1.4-andium branch. Tip The Rust client offers a large set of Cargo feature flags that turn on file-format readers, the Arrow and Polars integrations, conn ...
https://man.mtool.work/duckdb/2.0/clients/rust/overview.html
Import Data 10976
Overview The Rust client offers two ways to get data into DuckDB in bulk: the high-performance Appender for inserting rows from Rust, and reading directly from data files such as Parquet, CSV, and JSON. Both are described below. Appender Th ... e Appender is the fastest way to insert rows generated in Rust. Create one from a Connection with appender() , passing the target table name, then push rows with append_row() . Each row ... pped. Dropping an appender flushes any remaining rows, but errors raised during that implicit flush are discarded, because Rust's Drop cannot report them. The Appender is Sync but not Send , because it borrows the Connection . To append from another ... g Data Files DuckDB can read many file formats directly in SQL, which is often the simplest way to load external data. The Rust client just sends the query. For Parquet , enable the parquet feature and query read_parquet() , adapted from the crate's ...
https://man.mtool.work/duckdb/2.0/clients/rust/data_import.html
Write User Defined Functions 9578
Overview The Rust client can register user-defined functions written in Rust: scalar functions with the vscalar feature and table functions with the vtab feature. Both operate on DuckDB's columnar data chunks, so a single call processes a b ... VARCHAR (with NULL handling via set_null ), LIST<BIGINT> , and STRUCT columns, showing how to write each vector kind. The Rust table function interface mirrors DuckDB's C API table functions as closely as possible. This feature requires features = [ ... table function and the Arrow vector API shared with user-defined functions. C API — the table function interface that the Rust VTab API mirrors. Extensions — DuckDB's extension system that a loadable Rust extension plugs into. Run Queries — calling ...
https://man.mtool.work/duckdb/2.0/clients/rust/functions.html
Appender 9376
The Appender can be used to load bulk data into a DuckDB database. It is available in the C, C++, Go, Java, Julia, Node.js, Python, and Rust clients. This page describes how the Appender behaves across clients and shows a minimal example in ... f you want to access the appended rows immediately. err = appender.Flush() For more information, see the Go Appender API . Rust Create an appender from a Connection with appender() , then push rows built with the params! macro: let mut app = conn.app ... ender("foo")?; app.append_row(params![1, "hello"])?; app.flush()?; For more information, see the Rust Appender API . Python Create an appender from a connection with appender() , then add rows with append_row() . A with bloc ... ncluding constructors for non-default schemas and catalogs and any client-specific features: C Go Java (JDBC) Julia Python Rust Node.js ...
https://man.mtool.work/duckdb/2.0/data/appender.html
Run Queries 9292
Overview A Connection runs SQL through two families of methods: The execute_* methods ( execute() and execute_batch() ) send statements that do not return rows, such as INSERT or DDL, and report the number of affected rows. The query_* meth ... ods ( query() , query_map() , and query_row() ) run statements that return rows and hand each Row back to be mapped into a Rust value. Prepared statements work with both. The sections below walk through sending statements, binding parameters, and tur ... ning rows into typed Rust values. For opening the Connection these run on, see Connect . Sending Statements Use execute() for a single statement tha ... implements the ToSql trait, and any value read out of a row implements FromSql . The crate provides both for the standard Rust numeric, string, byte-slice, and boolean types. Option<T> maps to and from SQL NULL , so None binds as NULL and a NULL res ...
https://man.mtool.work/duckdb/2.0/clients/rust/querying.html
Handle Results 9006
Overview Beyond reading a result set row by row , the Rust client can hand a query result to Apache Arrow as a stream of record batches, register an Arrow batch as a queryable table, and return results as Polars data frames. Each of these c ... mnar result-handling options is described below. Apache Arrow DuckDB is columnar, and its native way to return a result to Rust in bulk is Apache Arrow . The crate re-exports the arrow crate, so no separate Arrow dependency or version alignment is re ... r Arrow conversion fails after execution has started. Querying an Arrow Batch An Arrow RecordBatch produced elsewhere in a Rust program can be registered as a DuckDB table function and queried in SQL. Enable the vtab-arrow feature, register the built ...
https://man.mtool.work/duckdb/2.0/clients/rust/result_handling.html
Documentation 8535
Connecting to DuckDB DuckDB connection overview Quack remote protocol Client APIs C C++ CLI (command line interface) Go Java (JDBC) Node.js ODBC Python R Rust WebAssembly All client APIs SQL Introduction Statements Other Guides Installation ...
https://man.mtool.work/duckdb/2.0/
Troubleshoot 8265
Overview This page collects common issues encountered when using the DuckDB Rust client, together with their workarounds. If you run into a problem that is not covered here, search the client's issue tracker on GitHub. Linking against a Sys ... ilt library for the target with DUCKDB_LIB_DIR instead, as described in Linking against a System Library . Further Reading Rust Client — installation, the bundled feature, and the full list of Cargo feature flags. Connect — opening connections, whose ...
https://man.mtool.work/duckdb/2.0/clients/rust/troubleshoot.html
DuckDB Repositories 8063
Several components of DuckDB are maintained in separate repositories. Main Repositories duckdb : core DuckDB project duckdb-web : documentation and blog duckdb-quack : Quack remote protocol Clients duckdb-go : Go client duckdb-java : Java ( ... nt duckdb-odbc : ODBC client duckdb-pyodide : Pyodide client duckdb-python : Python client duckdb-r : R client duckdb-rs : Rust client duckdb-swift : Swift client duckdb-wasm : WebAssembly client duckplyr : a drop-in replacement for dplyr in R DuckDB ...
https://man.mtool.work/duckdb/2.0/dev/repositories.html
Data Import 7979
Recommended Import Methods When importing data from other systems to DuckDB, there are several considerations to take into account. We recommend importing using the following order: For systems which are supported by a DuckDB scanner extens ... t applicable, consider using the DuckDB appender , currently available in the C, C++, Go, Java, Julia, Node.js, Python and Rust APIs. Methods to Avoid If possible, avoid looping row-by-row (tuple-at-a-time) in favor of bulk operations. Performing row ...
https://man.mtool.work/duckdb/2.0/guides/performance/import.html
PREV 1 2 3 NEXT
DuckDB 2.0 Documentation / man.mtool.work