Database.UInt64

Database

64-bit unsigned integer column type.

Reducers

Types

UInt64

type UInt64 = UInt64

64-bit unsigned integer column type.

Examples

type alias Row = { score : UInt64 }

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

Values

sum

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

Compute the sum of the relevant rows.

Examples

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

ands

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

Compute the bitwise AND over the relevant rows.

Examples

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

ors

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

Compute the bitwise OR over the relevant rows.

Examples

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

xors

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

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

Examples

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