MCPcopy Create free account
hub / github.com/araddon/qlbridge / FindFirstIdentity

Function FindFirstIdentity

expr/node.go:340–346  ·  view source on GitHub ↗

FindFirstIdentity Recursively descend down a node looking for first Identity Field min(year) == year eq(min(item), max(month)) == item eq(min(user.last_name), max(month)) == user.last_name

(node Node)

Source from the content-addressed store, hash-verified

338// eq(min(user.last_name), max(month)) == user.last_name
339//
340func FindFirstIdentity(node Node) string {
341 l := findIdentities(node, nil).Strings()
342 if len(l) == 0 {
343 return ""
344 }
345 return l[0]
346}
347
348// FindAllIdentityField Recursively descend down a node looking for all Identity Fields
349//

Callers 2

TestIdentityNamesFunction · 0.92
parseColumnsFunction · 0.92

Calls 2

findIdentitiesFunction · 0.85
StringsMethod · 0.45

Tested by 1

TestIdentityNamesFunction · 0.74