Documentation
¶
Index ¶
Constants ¶
View Source
const RootScopeName = "<root>"
Variables ¶
This section is empty.
Functions ¶
func SortIndexTargetTable ¶
func SortIndexTargetTable(tables []*IndexTargetTable)
Types ¶
type ColumnSchema ¶
type ColumnSchema struct {
Name string
}
type Field ¶
type Field struct {
AsName string
Columns []*FieldColumn
}
type FieldColumn ¶
type IndexField ¶
type IndexTargetBuilder ¶
type IndexTargetBuilder struct {
// contains filtered or unexported fields
}
func NewIndexTargetBuilder ¶
func NewIndexTargetBuilder(tablesSchemas []*TableSchema) *IndexTargetBuilder
func (*IndexTargetBuilder) Build ¶
func (itb *IndexTargetBuilder) Build(scopes []*StmtScope) ([]*dmodel.IndexTarget, error)
type IndexTargetTable ¶
type IndexTargetTable struct {
TableName string
IndexFields []*IndexField
}
func (*IndexTargetTable) String ¶
func (itt *IndexTargetTable) String() string
func (*IndexTargetTable) ToIndexTarget ¶
func (itt *IndexTargetTable) ToIndexTarget() *dmodel.IndexTarget
type StmtScope ¶
type TableSchema ¶
type TableSchema struct {
Name string
Columns []*ColumnSchema
PrimaryKeys []string
}
func CreateTableSchemas ¶
func (*TableSchema) TableDescription ¶
func (ts *TableSchema) TableDescription() string
Click to show internal directories.
Click to hide internal directories.