Database.Int64

Database

64-bit signed integer column type.

Reducers

Types

Int64

type Int64 = Int64

64-bit signed integer column type.

Examples

type alias Row = { score : Int64 }

access rows token
    |> reduce (Database.Int64.sum .score)

Values

sum

sum : (row -> Int64) -> Reducer row IntX

Compute the sum of the relevant rows.

Examples

access rows token
    |> reduce (Database.Int64.sum .score)

ands

ands : (row -> Int64) -> Reducer row Int64

Compute the bitwise AND over the relevant rows.

Examples

access rows token
    |> reduce (Database.Int64.ands .flags)

ors

ors : (row -> Int64) -> Reducer row Int64

Compute the bitwise OR over the relevant rows.

Examples

access rows token
    |> reduce (Database.Int64.ors .flags)

xors

xors : (row -> Int64) -> Reducer row Int64

Compute the bitwise XOR over the relevant rows. Useful as a checksum for an unordered set of values.

Examples

access rows token
    |> reduce (Database.Int64.xors .flags)