Documentation
¶
Index ¶
- func ArrayValue(vs ...spanner.GenericColumnValue) (spanner.GenericColumnValue, error)
- func BoolValue(v bool) spanner.GenericColumnValue
- func BytesBasedValue(typ *sppb.Type, v []byte) spanner.GenericColumnValue
- func BytesValue(v []byte) spanner.GenericColumnValue
- func DateValue(v civil.Date) spanner.GenericColumnValue
- func ElemTypeCodeToEmptyArray(code sppb.TypeCode) spanner.GenericColumnValue
- func ElemTypeToEmptyArray(typ *sppb.Type) spanner.GenericColumnValue
- func EnumValue(fqn string, v int64) spanner.GenericColumnValue
- func Float32Value(v float32) spanner.GenericColumnValue
- func Float64Value(v float64) spanner.GenericColumnValue
- func Int64Value(v int64) spanner.GenericColumnValue
- func IntervalValue(v spanner.Interval) spanner.GenericColumnValue
- func JSONValue(v any) (spanner.GenericColumnValue, error)
- func NumericValue(v *big.Rat) spanner.GenericColumnValue
- func ProtoValue(fqn string, b []byte) spanner.GenericColumnValue
- func SimpleTypedNull(code sppb.TypeCode) spanner.GenericColumnValue
- func StringBasedValue(code sppb.TypeCode, v string) spanner.GenericColumnValue
- func StringValue(v string) spanner.GenericColumnValue
- func StructValue(names []string, gcvs []spanner.GenericColumnValue) (spanner.GenericColumnValue, error)
- func TimestampValue(v time.Time) spanner.GenericColumnValue
- func TypedNull(typ *sppb.Type) spanner.GenericColumnValue
- func UUIDValue(v uuid.UUID) spanner.GenericColumnValue
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ArrayValue ¶
func ArrayValue(vs ...spanner.GenericColumnValue) (spanner.GenericColumnValue, error)
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 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 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 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
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.