utils

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilterQueryForSelectBuilder

func FilterQueryForSelectBuilder(sl squirrel.SelectBuilder, filter *base.TupleFilter) squirrel.SelectBuilder

FilterQueryForSelectBuilder -

func FilterQueryForUpdateBuilder

func FilterQueryForUpdateBuilder(sl squirrel.UpdateBuilder, filter *base.TupleFilter) squirrel.UpdateBuilder

FilterQueryForUpdateBuilder -

func NewContinuousToken added in v0.3.0

func NewContinuousToken(value string) database.ContinuousToken

NewContinuousToken - Creates a new continuous token

func NewNoopContinuousToken added in v0.3.0

func NewNoopContinuousToken() database.ContinuousToken

NewNoopContinuousToken - Creates a new continuous token

func Rollback added in v0.2.3

func Rollback(tx *sql.Tx, logger logger.Interface)

Rollback - Rollbacks a transaction and logs the error

func SnapshotQuery

func SnapshotQuery(sl squirrel.SelectBuilder, revision uint64) squirrel.SelectBuilder

SnapshotQuery -

Types

type ContinuousToken added in v0.3.0

type ContinuousToken struct {
	Value string
}

ContinuousToken - Structure for continuous token

func (ContinuousToken) Encode added in v0.3.0

Encode - Encodes the token to a string

type EncodedContinuousToken added in v0.3.0

type EncodedContinuousToken struct {
	Value string
}

EncodedContinuousToken - Structure for encoded continuous token

func (EncodedContinuousToken) Decode added in v0.3.0

Decode decodes the token from a string

func (EncodedContinuousToken) String added in v0.3.0

func (t EncodedContinuousToken) String() string

Decode decodes the token from a string

type NoopContinuousToken added in v0.3.0

type NoopContinuousToken struct {
	Value string
}

func (NoopContinuousToken) Encode added in v0.3.0

Encode - Encodes the token to a string

type NoopEncodedContinuousToken added in v0.3.0

type NoopEncodedContinuousToken struct {
	Value string
}

func (NoopEncodedContinuousToken) Decode added in v0.3.0

Decode decodes the token from a string

func (NoopEncodedContinuousToken) String added in v0.3.0

Decode decodes the token from a string

Jump to

Keyboard shortcuts

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