gcvctor

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: MIT Imports: 15 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 EnumValue

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

func Float64Value

func Float64Value(v float64) spanner.GenericColumnValue

func Int64Value

func Int64Value(v int64) 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

Types

This section is empty.

Jump to

Keyboard shortcuts

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