Documentation
¶
Index ¶
- Variables
- type DBColumn
- type DBFuncParam
- type DBFunction
- type DBInfo
- type DBRel
- type DBRelLeft
- type DBRelRight
- type DBSchema
- func (s *DBSchema) DBName() string
- func (s *DBSchema) DBSchema() string
- func (s *DBSchema) DBType() string
- func (s *DBSchema) DBVersion() int
- func (s *DBSchema) Find(schema, name string) (DBTable, error)
- func (s *DBSchema) FindPath(from, to, through string) ([]TPath, error)
- func (s *DBSchema) GetAliases() map[string]DBTable
- func (s *DBSchema) GetFirstDegree(schema, table string) (map[string]DBTable, error)
- func (s *DBSchema) GetFunctions() map[string]DBFunction
- func (s *DBSchema) GetSecondDegree(schema, table string) (map[string]DBTable, error)
- func (s *DBSchema) GetTables() []DBTable
- func (s *DBSchema) IsAlias(name string) bool
- func (s *DBSchema) PrintEdgeInfo(e edgeInfo)
- func (s *DBSchema) PrintLines(lines []util.Edge)
- type DBTable
- type RelType
- type TEdge
- type TPath
- type VirtualTable
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type DBColumn ¶
type DBColumn struct {
ID int32
Name string
Type string
Array bool
NotNull bool
PrimaryKey bool
UniqueKey bool
FullText bool
FKeySchema string
FKeyTable string
FKeyCol string
Blocked bool
Table string
Schema string
}
func DiscoverColumns ¶
type DBFunction ¶
type DBFunction struct {
Schema string
Name string
Type string
Agg bool
Inputs []DBFuncParam
Outputs []DBFuncParam
}
func DiscoverFunctions ¶
func (*DBFunction) GetInput ¶
func (fn *DBFunction) GetInput(name string) (ret DBFuncParam, err error)
func (DBFunction) String ¶
func (fn DBFunction) String() string
type DBInfo ¶
type DBInfo struct {
Type string
Version int
Schema string
Name string
Tables []DBTable
Functions []DBFunction
VTables []VirtualTable
// contains filtered or unexported fields
}
func GetTestDBInfo ¶
func GetTestDBInfo() *DBInfo
type DBRel ¶
type DBRel struct {
Type RelType
Left DBRelLeft
Right DBRelRight
}
type DBRelRight ¶
type DBSchema ¶
type DBSchema struct {
// contains filtered or unexported fields
}
func GetTestSchema ¶
func (*DBSchema) GetAliases ¶
func (*DBSchema) GetFirstDegree ¶
func (*DBSchema) GetFunctions ¶
func (s *DBSchema) GetFunctions() map[string]DBFunction
func (*DBSchema) GetSecondDegree ¶
func (*DBSchema) PrintEdgeInfo ¶
func (s *DBSchema) PrintEdgeInfo(e edgeInfo)
func (*DBSchema) PrintLines ¶
type DBTable ¶
type DBTable struct {
Schema string
Name string
Type string
Columns []DBColumn
PrimaryCol DBColumn
SecondaryCol DBColumn
FullText []DBColumn
Blocked bool
Func DBFunction
// contains filtered or unexported fields
}
func NewDBTable ¶
Click to show internal directories.
Click to hide internal directories.