ducky/types
Type mappings between DuckDB and Gleam.
Types
A value from a DuckDB result set.
pub type Value {
Null
Boolean(Bool)
TinyInt(Int)
SmallInt(Int)
Integer(Int)
BigInt(Int)
Float(Float)
Double(Float)
Text(String)
Blob(BitArray)
Timestamp(Int)
Date(Int)
Time(Int)
Interval(Int)
List(List(Value))
}
Constructors
-
Null -
Boolean(Bool) -
TinyInt(Int) -
SmallInt(Int) -
Integer(Int) -
BigInt(Int) -
Float(Float) -
Double(Float) -
Text(String) -
Blob(BitArray) -
Timestamp(Int) -
Date(Int) -
Time(Int) -
Interval(Int) -
List(List(Value))
Values
pub fn get(row: Row, index: Int) -> option.Option(Value)
Get a value from a row by column index.