dialects

package
v0.20.2 Latest Latest
Warning

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

Go to latest
Published: May 21, 2023 License: MIT Imports: 1 Imported by: 1

Documentation

Index

Constants

View Source
const (
	DataTypeBlob   = DataType("blob")
	DataTypeString = DataType("string")
	DataTypeEnum   = DataType("enum")

	DataTypeBoolean = DataType("bool")

	DataTypeDate     = DataType("date")
	DataTypeDateTime = DataType("date-time")

	DataTypeFloat32 = DataType("float32")
	DataTypeFloat64 = DataType("float64")

	DataTypeInt8  = DataType("int8")
	DataTypeInt16 = DataType("int16")
	DataTypeInt32 = DataType("int32")
	DataTypeInt64 = DataType("int64")

	DataTypeUInt8  = DataType("uint8")
	DataTypeUInt16 = DataType("uint16")
	DataTypeUInt32 = DataType("uint32")
	DataTypeUInt64 = DataType("uint64")

	DataTypeJSON = DataType("json")
)

Variables

This section is empty.

Functions

func SetDefaultDialect added in v0.20.2

func SetDefaultDialect(dialectFactory func() Dialect)

Types

type DataType

type DataType string

func (DataType) IsValid added in v0.17.1

func (d DataType) IsValid() bool

type DataTyper added in v0.17.1

type DataTyper interface {
	DataType() DataType
}

DataTyper must not be implemented on an interface

type Dialect

type Dialect interface {
	Identifier(string) string
	DataType(DataType) string
	CurrentTime() string
	Binding() string
}

func New added in v0.20.2

func New() Dialect

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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