MCPcopy Create free account
hub / github.com/dgraph-io/dgraph / getBlankNodeGen

Function getBlankNodeGen

dgraph/cmd/migrate/table_guide.go:249–258  ·  view source on GitHub ↗
(ti *sqlTable)

Source from the content-addressed store, hash-verified

247}
248
249func getBlankNodeGen(ti *sqlTable) blankNode {
250 primaryKeyIndices := getColumnIndices(ti, func(info *sqlTable, column string) bool {
251 return info.columns[column].keyType == primary
252 })
253
254 if len(primaryKeyIndices) > 0 {
255 return &usingColumns{}
256 }
257 return &usingCounter{}
258}
259
260func getTableGuides(tables map[string]*sqlTable) map[string]*tableGuide {
261 tableGuides := make(map[string]*tableGuide)

Callers 1

getTableGuidesFunction · 0.85

Calls 1

getColumnIndicesFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…