Database.UInt32
Database
32-bit unsigned integer column type.
Reducers
Types
UInt32
type UInt32 = UInt3232-bit unsigned integer column type.
Examples
type alias Row = { score : UInt32 }
access rows token
|> reduce (Database.UInt32.sum .score)Values
sum
sum : (row -> UInt32) -> Reducer row IntXCompute the sum of the relevant rows.
Examples
access rows token
|> reduce (Database.UInt32.sum .score)ands
ands : (row -> UInt32) -> Reducer row UInt32Compute the bitwise AND over the relevant rows.
Examples
access rows token
|> reduce (Database.UInt32.ands .flags)ors
ors : (row -> UInt32) -> Reducer row UInt32Compute the bitwise OR over the relevant rows.
Examples
access rows token
|> reduce (Database.UInt32.ors .flags)xors
xors : (row -> UInt32) -> Reducer row UInt32Compute the bitwise XOR over the relevant rows. Useful as a checksum for an unordered set of values.
Examples
access rows token
|> reduce (Database.UInt32.xors .flags)