Module types

Source
Expand description

ToSql and FromSql are also implemented for Option<T> where T implements ToSql or FromSql for the cases where you want to know if a value was NULL (which gets translated to None).

Structs§

DuckString
Wrapper for underlying duck string type with a lifetime bound to a &mut duckdb_string_t
Null
Empty struct that can be used to fill in a query parameter as NULL.
OrderedMap
An ordered map of key-value pairs.

Enums§

EnumType
Wrapper type for different enum sizes
FromSqlError
Enum listing possible errors from FromSql trait.
ListType
Wrapper type for different list sizes
TimeUnit
An absolute length of time in seconds, milliseconds, microseconds or nanoseconds. Copy from arrow::datatypes::TimeUnit
ToSqlOutput
ToSqlOutput represents the possible output types for implementers of the ToSql trait.
Type
DuckDB data types. See Fundamental Datatypes.
Value
Owning dynamic type value. Value’s type is typically dictated by DuckDB (not by the caller).
ValueRef
A non-owning static type value. Typically the memory backing this value is owned by SQLite.

Traits§

FromSql
A trait for types that can be created from a DuckDB value.
ToSql
A trait for types that can be converted into DuckDB values. Returns [Error::ToSqlConversionFailure] if the conversion fails.

Type Aliases§

FromSqlResult
Result type for implementors of the FromSql trait.