Expand description
DuckDB type system wrappers.
This module provides ergonomic wrappers for DuckDB’s type system:
TypeId: An enum of all supportedDuckDBcolumn typesLogicalType: An RAII wrapper aroundduckdb_logical_typethat ensures the type is properly destroyed when it goes out of scope
§Pitfall L7: LogicalType memory leak
duckdb_create_logical_type allocates memory that must be freed with
duckdb_destroy_logical_type. Failing to call the destructor leaks memory.
LogicalType solves this by implementing Drop.
Re-exports§
pub use logical_type::LogicalType;pub use logical_type::LogicalTypeError;pub use null_handling::NullHandling;pub use type_id::TypeId;
Modules§
- logical_
type - RAII wrapper for
duckdb_logical_type. - null_
handling - NULL propagation behaviour for
DuckDBfunctions. - type_id
- Ergonomic enum of all
DuckDBcolumn types.