gcvctor

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2025 License: MIT Imports: 16 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ArrayValue

ArrayValue constructs ARRAY GenericColumnValue. Note: Currently, it doesn't support implicit type conversion a.k.a. coercion so variant typed input is not supported.

func BoolValue

func BoolValue(v bool) spanner.GenericColumnValue

func BytesBasedValue

func BytesBasedValue(typ *sppb.Type, v []byte) spanner.GenericColumnValue

func BytesValue

func BytesValue(v []byte) spanner.GenericColumnValue

func DateValue

func DateValue(v civil.Date) spanner.GenericColumnValue

func ElemTypeCodeToEmptyArray added in v0.1.7

func ElemTypeCodeToEmptyArray(code sppb.TypeCode) spanner.GenericColumnValue

func ElemTypeToEmptyArray added in v0.1.7

func ElemTypeToEmptyArray(typ *sppb.Type) spanner.GenericColumnValue

func EnumValue

func EnumValue(fqn string, v int64) spanner.GenericColumnValue

func Float32Value added in v0.1.5

func Float32Value(v float32) spanner.GenericColumnValue

func Float64Value

func Float64Value(v float64) spanner.GenericColumnValue

func Int64Value

func Int64Value(v int64) spanner.GenericColumnValue

func IntervalValue added in v0.1.6

func IntervalValue(v spanner.Interval) spanner.GenericColumnValue

func JSONValue

func JSONValue(v any) (spanner.GenericColumnValue, error)

func NumericValue

func NumericValue(v *big.Rat) spanner.GenericColumnValue

func ProtoValue

func ProtoValue(fqn string, b []byte) spanner.GenericColumnValue

func SimpleTypedNull

func SimpleTypedNull(code sppb.TypeCode) spanner.GenericColumnValue

func StringBasedValue

func StringBasedValue(code sppb.TypeCode, v string) spanner.GenericColumnValue

func StringValue

func StringValue(v string) spanner.GenericColumnValue

func StructValue

func StructValue(names []string, gcvs []spanner.GenericColumnValue) (spanner.GenericColumnValue, error)

StructValue constructs STRUCT GenericColumnValue. Note: Currently, it doesn't support implicit type conversion a.k.a. coercion so variant typed input is not supported.

func TimestampValue

func TimestampValue(v time.Time) spanner.GenericColumnValue

func TypedNull

func TypedNull(typ *sppb.Type) spanner.GenericColumnValue

func UUIDValue added in v0.1.8

func UUIDValue(v uuid.UUID) spanner.GenericColumnValue

Types

This section is empty.

Jump to

Keyboard shortcuts

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