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
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
Click to show internal directories.
Click to hide internal directories.