Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ColumnMeta ¶
type ColumnMeta struct {
Name string `json:"name"`
Type string `json:"type"`
PK bool `json:"pk"`
FK bool `json:"fk"` // populated by HTTPHandler from Relations(), not Inspector
NotNull bool `json:"notNull"`
Default string `json:"default"` // empty string = no explicit default
Unique bool `json:"unique"` // true when column has a UNIQUE constraint/index
}
ColumnMeta extends raw column data with constraint information.
Click to show internal directories.
Click to hide internal directories.