package types
import "github.com/ydb-platform/ydb-go-sdk/v3/internal/types"
Index ¶
- func Equal(a, b Type) bool
- func TypeToYDB(t Type, a *allocator.Allocator) *Ydb.Type
- type Decimal
- func NewDecimal(precision, scale uint32) *Decimal
- func (v *Decimal) Name() string
- func (v *Decimal) Precision() uint32
- func (v *Decimal) Scale() uint32
- func (v *Decimal) String() string
- func (v *Decimal) ToYDB(a *allocator.Allocator) *Ydb.Type
- func (v *Decimal) Yql() string
- type Dict
- func NewDict(key, value Type) (v *Dict)
- func (v *Dict) KeyType() Type
- func (v *Dict) String() string
- func (v *Dict) ToYDB(a *allocator.Allocator) *Ydb.Type
- func (v *Dict) ValueType() Type
- func (v *Dict) Yql() string
- type EmptyDict
- func EmptySet() EmptyDict
- func NewEmptyDict() EmptyDict
- func (v EmptyDict) String() string
- func (EmptyDict) ToYDB(a *allocator.Allocator) *Ydb.Type
- func (v EmptyDict) Yql() string
- type EmptyList
- func NewEmptyList() EmptyList
- func (v EmptyList) String() string
- func (EmptyList) ToYDB(a *allocator.Allocator) *Ydb.Type
- func (v EmptyList) Yql() string
- type List
- func NewList(t Type) *List
- func (v *List) ItemType() Type
- func (v *List) String() string
- func (v *List) ToYDB(a *allocator.Allocator) *Ydb.Type
- func (v *List) Yql() string
- type Null
- func NewNull() Null
- func (v Null) String() string
- func (Null) ToYDB(*allocator.Allocator) *Ydb.Type
- func (v Null) Yql() string
- type Optional
- func NewOptional(t Type) Optional
- func (v Optional) InnerType() Type
- func (v Optional) IsOptional()
- func (v Optional) String() string
- func (v Optional) ToYDB(a *allocator.Allocator) *Ydb.Type
- func (v Optional) Yql() string
- type PgType
- func (v PgType) String() string
- func (v PgType) ToYDB(a *allocator.Allocator) *Ydb.Type
- func (v PgType) Yql() string
- type Primitive
- func (v Primitive) String() string
- func (v Primitive) ToYDB(*allocator.Allocator) *Ydb.Type
- func (v Primitive) Yql() string
- type Set
- func NewSet(t Type) *Set
- func (v *Set) ItemType() Type
- func (v *Set) String() string
- func (v *Set) ToYDB(a *allocator.Allocator) *Ydb.Type
- func (v *Set) Yql() string
- type Struct
- func NewStruct(fields ...StructField) (v *Struct)
- func (v *Struct) Field(i int) StructField
- func (v *Struct) Fields() []StructField
- func (v *Struct) String() string
- func (v *Struct) ToYDB(a *allocator.Allocator) *Ydb.Type
- func (v *Struct) Yql() string
- type StructField
- type Tuple
- func NewTuple(items ...Type) (v *Tuple)
- func (v *Tuple) InnerTypes() []Type
- func (v *Tuple) ItemType(i int) Type
- func (v *Tuple) String() string
- func (v *Tuple) ToYDB(a *allocator.Allocator) *Ydb.Type
- func (v *Tuple) Yql() string
- type Type
- type VariantStruct
- func NewVariantStruct(fields ...StructField) *VariantStruct
- func (v *VariantStruct) ToYDB(a *allocator.Allocator) *Ydb.Type
- func (v *VariantStruct) Yql() string
- type VariantTuple
- func NewVariantTuple(items ...Type) *VariantTuple
- func (v *VariantTuple) ToYDB(a *allocator.Allocator) *Ydb.Type
- func (v *VariantTuple) Yql() string
- type Void
Functions ¶
func Equal ¶
func TypeToYDB ¶
Types ¶
type Decimal ¶
type Decimal struct {
// contains filtered or unexported fields
}
func NewDecimal ¶
func (*Decimal) Name ¶
func (*Decimal) Precision ¶
func (*Decimal) Scale ¶
func (*Decimal) String ¶
func (*Decimal) ToYDB ¶
func (*Decimal) Yql ¶
type Dict ¶
type Dict struct {
// contains filtered or unexported fields
}
func NewDict ¶
func (*Dict) KeyType ¶
func (*Dict) String ¶
func (*Dict) ToYDB ¶
func (*Dict) ValueType ¶
func (*Dict) Yql ¶
type EmptyDict ¶
type EmptyDict struct{}
func EmptySet ¶
func EmptySet() EmptyDict
func NewEmptyDict ¶
func NewEmptyDict() EmptyDict
func (EmptyDict) String ¶
func (EmptyDict) ToYDB ¶
func (EmptyDict) Yql ¶
type EmptyList ¶
type EmptyList struct{}
func NewEmptyList ¶
func NewEmptyList() EmptyList
func (EmptyList) String ¶
func (EmptyList) ToYDB ¶
func (EmptyList) Yql ¶
type List ¶
type List struct {
// contains filtered or unexported fields
}
func NewList ¶
func (*List) ItemType ¶
func (*List) String ¶
func (*List) ToYDB ¶
func (*List) Yql ¶
type Null ¶
type Null struct{}
func NewNull ¶
func NewNull() Null
func (Null) String ¶
func (Null) ToYDB ¶
func (Null) Yql ¶
type Optional ¶
type Optional struct {
// contains filtered or unexported fields
}
func NewOptional ¶
func (Optional) InnerType ¶
func (Optional) IsOptional ¶
func (v Optional) IsOptional()
func (Optional) String ¶
func (Optional) ToYDB ¶
func (Optional) Yql ¶
type PgType ¶
type PgType struct { OID uint32 }
func (PgType) String ¶
func (PgType) ToYDB ¶
func (PgType) Yql ¶
type Primitive ¶
type Primitive uint
const ( Unknown Primitive = iota Bool Int8 Uint8 Int16 Uint16 Int32 Uint32 Int64 Uint64 Float Double Date Datetime Timestamp Interval TzDate TzDatetime TzTimestamp Bytes Text YSON JSON UUID JSONDocument DyNumber )
func (Primitive) String ¶
func (Primitive) ToYDB ¶
func (Primitive) Yql ¶
type Set ¶
type Set struct {
// contains filtered or unexported fields
}
func NewSet ¶
func (*Set) ItemType ¶
func (*Set) String ¶
func (*Set) ToYDB ¶
func (*Set) Yql ¶
type Struct ¶
type Struct struct {
// contains filtered or unexported fields
}
func NewStruct ¶
func NewStruct(fields ...StructField) (v *Struct)
func (*Struct) Field ¶
func (v *Struct) Field(i int) StructField
func (*Struct) Fields ¶
func (v *Struct) Fields() []StructField
func (*Struct) String ¶
func (*Struct) ToYDB ¶
func (*Struct) Yql ¶
type StructField ¶
func StructFields ¶
func StructFields(ms []*Ydb.StructMember) []StructField
type Tuple ¶
type Tuple struct {
// contains filtered or unexported fields
}
func NewTuple ¶
func (*Tuple) InnerTypes ¶
func (*Tuple) ItemType ¶
func (*Tuple) String ¶
func (*Tuple) ToYDB ¶
func (*Tuple) Yql ¶
type Type ¶
type Type interface { Yql() string String() string ToYDB(a *allocator.Allocator) *Ydb.Type // contains filtered or unexported methods }
func FromYDB ¶
func TypeFromYDB ¶
type VariantStruct ¶
type VariantStruct struct { *Struct }
func NewVariantStruct ¶
func NewVariantStruct(fields ...StructField) *VariantStruct
func (*VariantStruct) ToYDB ¶
func (v *VariantStruct) ToYDB(a *allocator.Allocator) *Ydb.Type
func (*VariantStruct) Yql ¶
func (v *VariantStruct) Yql() string
type VariantTuple ¶
type VariantTuple struct { *Tuple }
func NewVariantTuple ¶
func NewVariantTuple(items ...Type) *VariantTuple
func (*VariantTuple) ToYDB ¶
func (v *VariantTuple) ToYDB(a *allocator.Allocator) *Ydb.Type
func (*VariantTuple) Yql ¶
func (v *VariantTuple) Yql() string
type Void ¶
type Void struct{}
func NewVoid ¶
func NewVoid() Void
func (Void) String ¶
func (Void) ToYDB ¶
func (Void) Yql ¶
Source Files ¶
- Version
- v3.89.3
- Published
- Nov 2, 2024
- Platform
- linux/amd64
- Imports
- 4 packages
- Last checked
- 36 seconds ago –
Tools for package owners.