Versions in this module Expand all Collapse all v0 v0.40.4 May 19, 2022 Changes in this version + var DateType = &datetimeType + var DatetimeType = &datetimeType + var Float32Type = &floatType + var Float64Type = &floatType + var GeometryType = &geometryType + var Identifiers = map[Identifier]struct + var IncompatibleTypeConversion = errors.NewKind("`%s` cannot convert any values to `%s`") + var Int16Type = &intType + var Int24Type = &intType + var Int32Type = &intType + var Int64Type = &intType + var Int8Type = &intType + var InvalidTypeConversion = errors.NewKind("`%s` cannot convert the value `%v` to `%s`") + var JSONType = &jsonType + var LegacyStringDefaultType = &varStringType + var LinestringType = &linestringType + var PointType = &pointType + var PolygonType = &polygonType + var StringDefaultType = &varStringType + var TimeType = &timeType + var TimestampType = &datetimeType + var TupleType = &tupleType + var Uint16Type = &uintType + var Uint24Type = &uintType + var Uint32Type = &uintType + var Uint64Type = &uintType + var Uint8Type = &uintType + var UnhandledTypeConversion = errors.NewKind("`%s` does not know how to handle type conversions to `%s`") + var UuidType = &uuidType + var YearType = &yearType + func ConvertSQLGeometryToTypesGeometry(p sql.Geometry) types.Geometry + func ConvertSQLLinestringToTypesLinestring(l sql.Linestring) types.Linestring + func ConvertSQLPointToTypesPoint(p sql.Point) types.Point + func ConvertSQLPolygonToTypesPolygon(p sql.Polygon) types.Polygon + func ConvertTypesGeometryToSQLGeometry(g types.Geometry) sql.Geometry + func ConvertTypesLinestringToSQLLinestring(l types.Linestring) sql.Linestring + func ConvertTypesPointToSQLPoint(p types.Point) sql.Point + func ConvertTypesPolygonToSQLPolygon(p types.Polygon) sql.Polygon + func IsStringType(ti TypeInfo) bool + type FloatWidth int8 + type Identifier string + const BitTypeIdentifier + const BlobStringTypeIdentifier + const BoolTypeIdentifier + const DatetimeTypeIdentifier + const DecimalTypeIdentifier + const EnumTypeIdentifier + const FloatTypeIdentifier + const GeometryTypeIdentifier + const InlineBlobTypeIdentifier + const IntTypeIdentifier + const JSONTypeIdentifier + const LinestringTypeIdentifier + const PointTypeIdentifier + const PolygonTypeIdentifier + const SetTypeIdentifier + const TimeTypeIdentifier + const TupleTypeIdentifier + const UintTypeIdentifier + const UnknownTypeIdentifier + const UuidTypeIdentifier + const VarBinaryTypeIdentifier + const VarStringTypeIdentifier + const YearTypeIdentifier + func ParseIdentifier(name string) Identifier + func (i Identifier) String() string + type TypeConverter func(ctx context.Context, vrw types.ValueReadWriter, v types.Value) (types.Value, error) + func GetTypeConverter(ctx context.Context, srcTi TypeInfo, destTi TypeInfo) (tc TypeConverter, needsConversion bool, err error) + type TypeInfo interface + ConvertNomsValueToValue func(v types.Value) (interface{}, error) + ConvertValueToNomsValue func(ctx context.Context, vrw types.ValueReadWriter, v interface{}) (types.Value, error) + Equals func(other TypeInfo) bool + FormatValue func(v types.Value) (*string, error) + GetTypeIdentifier func() Identifier + GetTypeParams func() map[string]string + IsValid func(v types.Value) bool + NomsKind func() types.NomsKind + Promote func() TypeInfo + ReadFrom func(nbf *types.NomsBinFormat, reader types.CodecReader) (interface{}, error) + ToSqlType func() sql.Type + var BoolType TypeInfo = &boolType{ ... } + var PseudoBoolType TypeInfo = &bitType{ ... } + var UnknownType TypeInfo = &unknownType{} + func CreateBitTypeFromParams(params map[string]string) (TypeInfo, error) + func CreateBlobStringTypeFromParams(params map[string]string) (TypeInfo, error) + func CreateDatetimeTypeFromParams(params map[string]string) (TypeInfo, error) + func CreateDecimalTypeFromParams(params map[string]string) (TypeInfo, error) + func CreateEnumTypeFromParams(params map[string]string) (TypeInfo, error) + func CreateFloatTypeFromParams(params map[string]string) (TypeInfo, error) + func CreateInlineBlobTypeFromParams(params map[string]string) (TypeInfo, error) + func CreateIntTypeFromParams(params map[string]string) (TypeInfo, error) + func CreateSetTypeFromParams(params map[string]string) (TypeInfo, error) + func CreateUintTypeFromParams(params map[string]string) (TypeInfo, error) + func CreateVarBinaryTypeFromParams(params map[string]string) (TypeInfo, error) + func CreateVarStringTypeFromParams(params map[string]string) (TypeInfo, error) + func FromKind(kind types.NomsKind) TypeInfo + func FromSqlType(sqlType sql.Type) (TypeInfo, error) + func FromTypeParams(id Identifier, params map[string]string) (TypeInfo, error)