Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DBColumn ¶
type DBColumn struct {
Name string
Key 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 ¶ added in v0.15.70
type DBFuncParam ¶
type DBFuncParam struct {
ID int
Name sql.NullString
Type string
}
type DBFunction ¶
type DBFunction struct {
Name string
Params []DBFuncParam
}
func DiscoverFunctions ¶ added in v0.15.70
func DiscoverFunctions(db *sql.DB, blockList []string) ([]DBFunction, error)
type DBInfo ¶
type DBInfo struct {
Version int
Type string
Tables []DBTable
Functions []DBFunction
VTables []VirtualTable
// contains filtered or unexported fields
}
func GetTestDBInfo ¶
func GetTestDBInfo() *DBInfo
type DBRel ¶
type DBRel struct {
Type RelType
Through DBRelThrough
Left DBRelLeft
Right DBRelRight
}
type DBRelRight ¶ added in v0.15.63
type DBRelThrough ¶ added in v0.15.63
type DBSchema ¶
type DBSchema struct {
// contains filtered or unexported fields
}
func GetTestSchema ¶
func NewDBSchema ¶
func (*DBSchema) GetFunctions ¶
func (s *DBSchema) GetFunctions() map[string]DBFunction
func (*DBSchema) GetTableNames ¶
type DBTable ¶
type DBTable struct {
Schema string
Name string
Type string
Columns []DBColumn
PrimaryCol DBColumn
SecondaryCol DBColumn
FullText []DBColumn
Singular string
Plural string
Blocked bool
// contains filtered or unexported fields
}
func NewDBTable ¶ added in v0.15.70
type TEdge ¶ added in v0.15.70
type TEdge struct {
Type RelType
LT, RT DBTable
L, R DBColumn
graph.WeightedEdge
}
Click to show internal directories.
Click to hide internal directories.