Documentation
¶
Index ¶
- Constants
- Variables
- type BuiltinType
- func NewTypeBigInt() *BuiltinType
- func NewTypeBoolean() *BuiltinType
- func NewTypeDate() *BuiltinType
- func NewTypeDecimal() *BuiltinType
- func NewTypeFloat() *BuiltinType
- func NewTypeInteger() *BuiltinType
- func NewTypeString() *BuiltinType
- func NewTypeTime() *BuiltinType
- func NewTypeTimestamp() *BuiltinType
- type Column
- type Definition
- type Schema
- type Table
- type Type
Constants ¶
View Source
const ( TypeBoolean = "BOOLEAN" TypeInteger = "INTEGER" TypeBigInt = "BIGINT" TypeFloat = "FLOAT" TypeDecimal = "DECIMAL" TypeDate = "DATE" TypeTime = "TIME" TypeTimestamp = "TIMESTAMP" TypeString = "STRING" )
Variables ¶
View Source
var (
ErrAlreadyExists = errors.New("already exists")
)
Functions ¶
This section is empty.
Types ¶
type BuiltinType ¶
type BuiltinType struct {
// contains filtered or unexported fields
}
func NewTypeBigInt ¶
func NewTypeBigInt() *BuiltinType
func NewTypeBoolean ¶
func NewTypeBoolean() *BuiltinType
func NewTypeDate ¶
func NewTypeDate() *BuiltinType
func NewTypeDecimal ¶
func NewTypeDecimal() *BuiltinType
func NewTypeFloat ¶
func NewTypeFloat() *BuiltinType
func NewTypeInteger ¶
func NewTypeInteger() *BuiltinType
func NewTypeString ¶
func NewTypeString() *BuiltinType
func NewTypeTime ¶
func NewTypeTime() *BuiltinType
func NewTypeTimestamp ¶
func NewTypeTimestamp() *BuiltinType
func (BuiltinType) Name ¶
func (t BuiltinType) Name() string
type Definition ¶
type Definition struct {
// contains filtered or unexported fields
}
func NewDefinition ¶
func NewDefinition(defaultSchema string) Definition
func (*Definition) CreateSchema ¶
func (def *Definition) CreateSchema(name string) (*Schema, error)
func (Definition) DefaultSchema ¶
func (def Definition) DefaultSchema() *Schema
func (Definition) Schema ¶
func (def Definition) Schema(name string) *Schema
func (Definition) Schemas ¶
func (def Definition) Schemas() []*Schema
Click to show internal directories.
Click to hide internal directories.