sequence

package
v0.0.0-...-7bcc545 Latest Latest
Warning

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

Go to latest
Published: May 27, 2021 License: Apache-2.0, MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupSequences

func SetupSequences()

Types

type Sequence

type Sequence struct {
	CurrentValue int64
	Db           *sql.DB
	IncrementBy  int64
	Max          int64
	Name         string
	// contains filtered or unexported fields
}
var (
	FactorId             Sequence
	FactorPositionId     Sequence
	PositionId           Sequence
	LabelId              Sequence
	PollContinentId      Sequence
	PollCountryId        Sequence
	PollCountyId         Sequence
	PollFactorPositionId Sequence
	PollId               Sequence
	PollLabelId          Sequence
	PollStateId          Sequence
	PollTownId           Sequence
)

func (*Sequence) GetCursor

func (seq *Sequence) GetCursor(numVals int) (SequenceCursor, error)

func (*Sequence) Init

func (seq *Sequence) Init(done chan bool)

type SequenceBlock

type SequenceBlock struct {
	End    int64
	Start  int64
	Length int64
}

type SequenceCursor

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

func (*SequenceCursor) Next

func (cur *SequenceCursor) Next() int64

type SequenceError

type SequenceError struct {
}

func (*SequenceError) Error

func (e *SequenceError) Error() string

Jump to

Keyboard shortcuts

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