MCPcopy Create free account
hub / github.com/PerpetualSoftware/pad / childLinkTypeSQL

Function childLinkTypeSQL

internal/store/items.go:24–30  ·  view source on GitHub ↗

childLinkTypeSQL returns a SQL IN clause fragment like "'parent','implements'" for filtering item_links by child relationship types.

()

Source from the content-addressed store, hash-verified

22// childLinkTypeSQL returns a SQL IN clause fragment like "'parent','implements'"
23// for filtering item_links by child relationship types.
24func childLinkTypeSQL() string {
25 quoted := make([]string, len(childLinkTypes))
26 for i, t := range childLinkTypes {
27 quoted[i] = "'" + t + "'"
28 }
29 return strings.Join(quoted, ",")
30}
31
32// ItemSearchResult holds FTS search results for items.
33type ItemSearchResult struct {

Callers 12

GetBacklinksMethod · 0.85
CountBacklinksMethod · 0.85
GetParentForItemMethod · 0.85
GetParentMapMethod · 0.85
GetItemProgressMethod · 0.85
GetAllItemProgressMethod · 0.85
getChildItemsMethod · 0.85
PopulateHasChildrenMethod · 0.85

Calls 2

JoinMethod · 0.80
makeFunction · 0.50

Tested by

no test coverage detected