inspect

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Priority

func Priority(c Column) (p int)

Priority evaluates view priority

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

type Type

type Type byte
const (
	Unknown Type = iota
	Text
	Integer
	Decimal
	Binary
	Boolean
	Enumeration
	Set
)

func (Type) String

func (t Type) String() string

Jump to

Keyboard shortcuts

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