helper

package
v3.0.0-beta7 Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DbmsMinRevisionWithClientInfo                     = 54032
	DbmsMinRevisionWithServerTimezone                 = 54058
	DbmsMinRevisionWithQuotaKeyInClientInfo           = 54060
	DbmsMinRevisionWithServerDisplayName              = 54372
	DbmsMinRevisionWithVersionPatch                   = 54401
	DbmsMinRevisionWithClientWriteInfo                = 54420
	DbmsMinRevisionWithSettingsSerializedAsStrings    = 54429
	DbmsMinRevisionWithInterServerSecret              = 54441
	DbmsMinRevisionWithOpenTelemetry                  = 54442
	DbmsMinProtocolVersionWithDistributedDepth        = 54448
	DbmsMinProtocolVersionWithInitialQueryStartTime   = 54449
	DbmsMinProtocolVersionWithParallelReplicas        = 54453
	DbmsMinProtocolWithCustomSerialization            = 54454
	DbmsMinProtocolWithQuotaKey                       = 54458
	DbmsMinProtocolWithParameters                     = 54459
	DbmsMinProtocolWithServerQueryTimeInProgress      = 54460
	DbmsMinProtocolVersionWithPasswordComplexityRules = 54461
	DbmsMinRevisionWithInterserverSecretV2            = 54462
	DbmsMinProtocolVersionWithTotalBytesInProgress    = 54463
	DbmsMinProtocolVersionWithTimezoneUpdates         = 54464
	DbmsMinRevisionWithSparseSerialization            = 54465

	ClientTCPVersion = DbmsMinRevisionWithSparseSerialization
)
View Source
const (
	TupleStr    = "Tuple("
	LenTupleStr = len(TupleStr)
	PointStr    = "Point"
)
View Source
const (
	VariantStr    = "Variant("
	LenVariantStr = len(VariantStr)
)
View Source
const (
	ArrayStr          = "Array("
	LenArrayStr       = len(ArrayStr)
	ArrayTypeStr      = "Array(<type>)"
	NestedStr         = "Nested("
	LenNestedStr      = len(NestedStr)
	NestedToArrayTube = "Array(Nested("
	RingStr           = "Ring"
)
View Source
const (
	Enum8Str              = "Enum8("
	Enum8StrLen           = len(Enum8Str)
	Enum16Str             = "Enum16("
	Enum16StrLen          = len(Enum16Str)
	DateTimeStr           = "DateTime("
	DateTimeStrLen        = len(DateTimeStr)
	DateTime64Str         = "DateTime64("
	DateTime64StrLen      = len(DateTime64Str)
	DecimalStr            = "Decimal("
	DecimalStrLen         = len(DecimalStr)
	FixedStringStr        = "FixedString("
	FixedStringStrLen     = len(FixedStringStr)
	SimpleAggregateStr    = "SimpleAggregateFunction("
	SimpleAggregateStrLen = len(SimpleAggregateStr)
)
View Source
const (
	LowCardinalityStr             = "LowCardinality("
	LenLowCardinalityStr          = len(LowCardinalityStr)
	LowCardinalityTypeStr         = "LowCardinality(<type>)"
	LowCardinalityNullableStr     = "LowCardinality(Nullable("
	LenLowCardinalityNullableStr  = len(LowCardinalityNullableStr)
	LowCardinalityNullableTypeStr = "LowCardinality(Nullable(<type>))"
)
View Source
const (
	MapStr     = "Map("
	LenMapStr  = len(MapStr)
	MapTypeStr = "Map(<key>, <value>)"
)
View Source
const (
	NullableStr     = "Nullable("
	LenNullableStr  = len(NullableStr)
	NullableTypeStr = "Nullable(<type>)"
)
View Source
const MultiPolygonStr = "MultiPolygon"
View Source
const (
	NothingStr = "Nothing"
)
View Source
const PolygonStr = "Polygon"
View Source
const (
	StringStr = "String"
)

Variables

View Source
var MultiPolygonMainTypeStr = []byte("Array(Array(Array(Tuple(Float64, Float64))))")
View Source
var PointMainTypeStr = []byte("Tuple(Float64, Float64)")
View Source
var PolygonMainTypeStr = []byte("Array(Array(Tuple(Float64, Float64)))")
View Source
var RingMainTypeStr = []byte("Array(Tuple(Float64, Float64))")

Functions

func AppendJSONSting

func AppendJSONSting(out []byte, ignoreDoubleQuotes bool, s []byte) []byte

func ConvertToByte

func ConvertToByte[T any](v []T, size int) []byte

func ExtractEnum

func ExtractEnum(data []byte) (intToStringMap map[int16]string, stringToIntMap map[string]int16, err error)

func FilterSimpleAggregate

func FilterSimpleAggregate(chType []byte) []byte

func IsArray

func IsArray(chType []byte) bool

func IsDateTime64

func IsDateTime64(chType []byte) bool

func IsDateTimeWithParam

func IsDateTimeWithParam(chType []byte) bool

func IsDecimal

func IsDecimal(chType []byte) bool

func IsEnum16

func IsEnum16(chType []byte) bool

func IsEnum8

func IsEnum8(chType []byte) bool

func IsFixedString

func IsFixedString(chType []byte) bool

func IsLowCardinality

func IsLowCardinality(chType []byte) bool

func IsMap

func IsMap(chType []byte) bool

func IsMultiPolygon

func IsMultiPolygon(chType []byte) bool

func IsNested

func IsNested(chType []byte) bool

func IsNothing

func IsNothing(chType []byte) bool

func IsNullable

func IsNullable(chType []byte) bool

func IsNullableLowCardinality

func IsNullableLowCardinality(chType []byte) bool

func IsPoint

func IsPoint(chType []byte) bool

func IsPolygon

func IsPolygon(chType []byte) bool

func IsRing

func IsRing(chType []byte) bool

func IsString

func IsString(chType []byte) bool

func IsTuple

func IsTuple(chType []byte) bool

func IsVariant

func IsVariant(chType []byte) bool

func NestedToArrayType

func NestedToArrayType(chType []byte) []byte

Types

type ColumnData

type ColumnData struct {
	ChType, Name []byte
}

func SplitNameType

func SplitNameType(b []byte) (ColumnData, error)

func TypesInParentheses

func TypesInParentheses(b []byte) ([]ColumnData, error)

Jump to

Keyboard shortcuts

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