spannertool

package
v0.0.23 Latest Latest
Warning

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

Go to latest
Published: May 12, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaxMutations = 20000
	MaxPartition = 32
)

Variables

This section is empty.

Functions

func BatchMutate

func BatchMutate[T comparable](
	ctx context.Context,
	session spannerSession.ISession,
	inputs []T,
	inputTable string,
	inputColumns []string,
) error

func ExecuteAndCheckEffectRowOverZero

func ExecuteAndCheckEffectRowOverZero(txn *spanner.ReadWriteTransaction, ctx context.Context, stmt spanner.Statement) error

func FetchSpannerTagValue

func FetchSpannerTagValue(input interface{}, ignoreZero bool, createdTimeKeyWord string) (Columns, Placeholders, Parameters)

func GetIteratorFirstRow

func GetIteratorFirstRow(iter ISpannerRowIterator, entity interface{}) error

GetIteratorFirstRow func entity must use reference

func ValidListArgument added in v0.0.6

func ValidListArgument(row, page uint64) error

Types

type Columns

type Columns []string

func (Columns) String

func (c Columns) String() string

type ISpannerRowIterator

type ISpannerRowIterator interface {
	Next() (*spanner.Row, error)
}

type Parameters

type Parameters map[string]interface{}

type Placeholders

type Placeholders []string

func (Placeholders) String

func (p Placeholders) String() string

Jump to

Keyboard shortcuts

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