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