Documentation ¶
Index ¶
- Constants
- Variables
- func AppendJSONSting(out []byte, ignoreDoubleQuotes bool, s []byte) []byte
- func ConvertToByte[T any](v []T, size int) []byte
- func ExtractEnum(data []byte) (intToStringMap map[int16]string, stringToIntMap map[string]int16, err error)
- func FilterSimpleAggregate(chType []byte) []byte
- func IsArray(chType []byte) bool
- func IsDateTime64(chType []byte) bool
- func IsDateTimeWithParam(chType []byte) bool
- func IsDecimal(chType []byte) bool
- func IsEnum16(chType []byte) bool
- func IsEnum8(chType []byte) bool
- func IsFixedString(chType []byte) bool
- func IsLowCardinality(chType []byte) bool
- func IsMap(chType []byte) bool
- func IsMultiPolygon(chType []byte) bool
- func IsNested(chType []byte) bool
- func IsNothing(chType []byte) bool
- func IsNullable(chType []byte) bool
- func IsNullableLowCardinality(chType []byte) bool
- func IsPoint(chType []byte) bool
- func IsPolygon(chType []byte) bool
- func IsRing(chType []byte) bool
- func IsString(chType []byte) bool
- func IsTuple(chType []byte) bool
- func IsVariant(chType []byte) bool
- func NestedToArrayType(chType []byte) []byte
- type ColumnData
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 ConvertToByte ¶
func ExtractEnum ¶
func FilterSimpleAggregate ¶
func IsDateTime64 ¶
func IsDateTimeWithParam ¶
func IsFixedString ¶
func IsLowCardinality ¶
func IsMultiPolygon ¶
func IsNullable ¶
func NestedToArrayType ¶
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)
Click to show internal directories.
Click to hide internal directories.