⌘K ctrl+k
Search Shortcut cmd + k | ctrl + k
DuckDB 2.0 ドキュメント 全文検索
per page, with , order by , clip by
Results of 1 - 2 of about 2 for Steven (0.001 sec.)
Run Queries 11228
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 ... n (id INTEGER, name TEXT, data BLOB)", [], )?; let rows_changed = conn.execute( "INSERT INTO person (id, name) VALUES (1, 'Steven')", [], )?; To run several statements at once, for example a schema-setup script, use execute_batch() : conn.execute_batch ... the parameter slice: use duckdb::params; conn.execute( "INSERT INTO person (id, name, data) VALUES (?, ?, ?)", params![1, "Steven", None::<Vec<u8>>], )?; For named placeholders such as $name , use the named_params! macro: use duckdb::named_params; conn ... d to read rows back. let mut stmt = conn.prepare("INSERT INTO person (id, name) VALUES (?, ?)")?; stmt.execute(params![1, "Steven"])?; stmt.execute(params![2, "Jane"])?; Mapping Rows to Rust Values To read a result set, prepare a SELECT and call query_ ...
https://man.mtool.work/duckdb/2.0/clients/rust/querying.html
Rust Client 7485
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 ... on ( id INTEGER PRIMARY KEY DEFAULT NEXTVAL('seq'), name TEXT NOT NULL, data BLOB );", )?; let me = Person { id: 0, name: "Steven".to_string(), data: None, }; conn.execute( "INSERT INTO person (name, data) VALUES (?, ?)", params![me.name, me.data], )?; ...
https://man.mtool.work/duckdb/2.0/clients/rust/overview.html
PREV 1 NEXT
DuckDB 2.0 Documentation / man.mtool.work