Documentation ¶
Index ¶
- Variables
- func Render(pkgName, structName string, obj Struct, w io.Writer) error
- type Column
- type Field
- type RenderData
- type Struct
- type Table
- type Type
- type TypeArray
- type TypeEnum
- type TypeEnumElem
- type TypeFixedString
- type TypeLowCardinalityUnary
- type TypeMap
- type TypeNullableUnary
- type TypeUnary
- type TypeUnaryUnary
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUnsupportedType = errors.New("unsupported type")
Functions ¶
Types ¶
type RenderData ¶
type Table ¶
func Introspect ¶
type Type ¶
type TypeEnum ¶
type TypeEnum struct {
Elems []TypeEnumElem `parser:"('Enum8' | 'Enum16') '(' ( @@ ','? )+ ')'"`
}
type TypeEnumElem ¶
type TypeFixedString ¶
type TypeFixedString struct {
Length int `parser:"'FixedString' '(' @Int ')'"`
}
func (TypeFixedString) Field ¶
func (t TypeFixedString) Field() (Field, error)
type TypeLowCardinalityUnary ¶
type TypeLowCardinalityUnary struct {
Type TypeUnary `parser:"'LowCardinality' '(' @@ ')'"`
}
func (TypeLowCardinalityUnary) Field ¶
func (t TypeLowCardinalityUnary) Field() (Field, error)
type TypeMap ¶
type TypeNullableUnary ¶
type TypeNullableUnary struct {
Type TypeUnary `parser:"'Nullable' '(' @@ ')'"`
}
func (TypeNullableUnary) Field ¶
func (t TypeNullableUnary) Field() (Field, error)
type TypeUnary ¶
type TypeUnary struct { Unary *TypeUnaryUnary `parser:" @@"` Nullable *TypeNullableUnary `parser:"| @@"` LowCardinality *TypeLowCardinalityUnary `parser:"| @@"` FixedString *TypeFixedString `parser:"| @@"` // it's not exactly unary at db side, but resulting Go type is merely a string }
type TypeUnaryUnary ¶
type TypeUnaryUnary struct {
Type string `` /* 318-byte string literal not displayed */
}
func (TypeUnaryUnary) Field ¶
func (t TypeUnaryUnary) Field() (Field, error)
Click to show internal directories.
Click to hide internal directories.