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