macro_rules! copy_bind_callback {
($name:ident, |$info:ident| $body:block) => { ... };
}Expand description
Wraps a COPY ... TO bind callback so a panic becomes a DuckDB error.
Requires the duckdb-1-5 feature: duckdb_copy_function_bind_set_error
lives past the stable prefix of duckdb_ext_api_v1.
ยงExample
quack_rs::copy_bind_callback!(my_bind, |info| {
let _ = info;
});