view

package
v1.3.24 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 17, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

README

RDb Projection View

Projection view implemented using relational database

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ORDER

type ORDER = string
const ORDER_ASC ORDER = "ASC"
const ORDER_DESC ORDER = "DESC"

type Total

type Total struct {
	// contains filtered or unexported fields
}

A generic record total tracker view

func NewTotal

func NewTotal(rdbHandle *rdb.Handle, tableName string) *Total

func (*Total) DecrementAll

func (view *Total) DecrementAll(identities []string, total int64) error

func (*Total) FindBy

func (view *Total) FindBy(identity string) (int64, error)

func (*Total) Increment

func (view *Total) Increment(identity string, total int64) error

func (*Total) IncrementAll

func (view *Total) IncrementAll(identities []string, total int64) error

func (*Total) Set

func (view *Total) Set(identity string, total int64) error

func (*Total) SumBy

func (view *Total) SumBy(identities []string) (int64, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL