pub trait ToDuckDbType {
type DuckDbRepresentation;
const DUCKDB_TYPE_ID: TypeId;
// Provided method
fn logical_type() -> LogicalTypeHandle { ... }
}
Expand description
Rust primitive types to duckdb types
Required Associated Constants§
const DUCKDB_TYPE_ID: TypeId
Required Associated Types§
Sourcetype DuckDbRepresentation
type DuckDbRepresentation
Representation to interface with DuckDb
Provided Methods§
Sourcefn logical_type() -> LogicalTypeHandle
fn logical_type() -> LogicalTypeHandle
Create a duckdb logical type structure for this type
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.