Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bytebase/bytebase
/ AddNode
Method
AddNode
backend/plugin/parser/base/topo_sort.go:29–31 ·
view source on GitHub ↗
(id string)
Source
from the content-addressed store, hash-verified
27
}
28
29
func
(g *Graph) AddNode(id string) {
30
g.NodeMap[id] = &Node{ID: id}
31
}
32
33
func
(g *Graph) AddEdge(start, end string) {
34
if
_, ok := g.NodeMap[start]; !ok {
Callers
15
AddEdge
Method · 0.95
dropObjectsInOrder
Function · 0.95
createObjectsInOrder
Function · 0.95
GetDatabaseDefinition
Function · 0.95
dropViewsInOrder
Function · 0.95
createTablesInOrder
Function · 0.95
createViewsInOrder
Function · 0.95
sortTablesByDependenciesAcrossSchemas
Function · 0.95
sortViewsByDependenciesAcrossSchemas
Function · 0.95
dropTablesInDependencyOrder
Function · 0.95
writeDropDependentObjects
Function · 0.95
writeCreateTables
Function · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected