Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ColumnsEqual ¶
Types ¶
type SQLColumn ¶
type SQLColumns ¶
type SQLColumns []SQLColumn
func (SQLColumns) FindColumnByName ¶
func (sqs SQLColumns) FindColumnByName(name string) (SQLColumn, bool)
type SQLIndex ¶
type SQLIndex struct { Name string `json:"name"` IsUnique bool `json:"isUnique,omitempty"` MethodName string `json:"methodName,omitempty"` Columns []string `json:"columns"` Options string `json:"options,omitempty"` // jsonb_path_ops или (title NULLS FIRST) Concurrently bool `json:"concurrently,omitempty"` With string `json:"with,omitempty"` Where string `json:"where,omitempty"` }
type SQLIndexes ¶
type SQLIndexes []SQLIndex
func (SQLIndexes) FindByName ¶
func (idxs SQLIndexes) FindByName(n string) (SQLIndex, bool)
type SQLModel ¶
type SQLModel struct { Table string `json:"table"` Columns SQLColumns `json:"cols,omitempty"` Indexes SQLIndexes `json:"idxs,omitempty"` ViewQuery string `json:"viewQuery,omitempty"` IsView bool `json:"isView,omitempty"` IsMaterialized bool `json:"isMaterialized,omitempty"` }
func (SQLModel) AllIndexLowerNames ¶
Click to show internal directories.
Click to hide internal directories.