Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ForeignKey ¶
ForeignKey represents foreign key info
type Schema ¶
type Schema struct {
Tables []*Table
}
Schema represents schema info
type SchemaExplorer ¶
type SchemaExplorer struct {
// contains filtered or unexported fields
}
SchemaExplorer represents schema explorer
func NewSchemaExplorer ¶
func NewSchemaExplorer(schema *Schema) *SchemaExplorer
NewSchemaExplorer returns a new SchemaExplorer instance
type Table ¶
type Table struct { Name string Columns []*Column ForeignKeys []*ForeignKey Indexes []*Index }
Table represents table info
func (*Table) GetNonPrimaryKeyColumns ¶
GetNonPrimaryKeyColumns returns Non-Primary key columns
func (*Table) GetPrimaryKeyColumns ¶
GetPrimaryKeyColumns returns Primary key columns
type UndirectedGraph ¶
type UndirectedGraph struct {
// contains filtered or unexported fields
}
UndirectedGraph represents undirected graph
func NewUndirectedGraph ¶
func NewUndirectedGraph() *UndirectedGraph
NewUndirectedGraph returns a new UndirectedGraph instance
func (*UndirectedGraph) GetRowColumns ¶
func (g *UndirectedGraph) GetRowColumns(row string) []string
GetRowColumns returns columns of row
func (*UndirectedGraph) PutSymmetric ¶
func (g *UndirectedGraph) PutSymmetric(row string, col string, value bool)
PutSymmetric put value to symmetric matrix
Click to show internal directories.
Click to hide internal directories.