Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Column ¶
type Column struct { Database string Table string Name string Comment string Type Type Nullable bool Unsigned bool Indexed bool Size int Values []string OriginalType string }
Column is high level abstraction over database column
type ContentType ¶
type ContentType int
ContentType defines column content
const ( RawContent ContentType = iota IdentifierContent RelationIdentifierContent TimestampContext BooleanContent SecretContent NameContent TitleContent EmailContent URIContent FirstNameContent LastNameContent AddressContent CountryContent CityContent PostalZipContent PhoneContent )
func ResolveContentType ¶
func ResolveContentType(c Column) ContentType
ResolveContentType resolves column content
func (ContentType) String ¶
func (c ContentType) String() string
type Type ¶
type Type byte
const ( Unknown Type = iota // Unknown or unidentified column type Text // String column type of any size Integer // Integer column type Decimal // Floating point column type Binary // Binary column type Boolean // Boolean column type Enumeration // Enumeration column type Set // Set column type TimeStamp // Timestamp column type DateTime // Datetime column type Date // Date column type (without time) Time // Time column type (without date) )
Click to show internal directories.
Click to hide internal directories.