Skip to main content

Module logical_type

Module logical_type 

Source
Expand description

RAII wrapper for duckdb_logical_type.

§Pitfall L7: LogicalType memory leak

Every duckdb_create_logical_type call allocates memory that must be freed with duckdb_destroy_logical_type. Forgetting to call the destructor leaks memory. LogicalType implements Drop to prevent this.

Structs§

LogicalType
An RAII wrapper around a duckdb_logical_type handle.
LogicalTypeError
Error returned by the fallible LogicalType constructors.

Constants§

MAX_UNION_MEMBERS
The most members a UNION may have.