childLinkTypeSQL returns a SQL IN clause fragment like "'parent','implements'" for filtering item_links by child relationship types.
()
| 22 | // childLinkTypeSQL returns a SQL IN clause fragment like "'parent','implements'" |
| 23 | // for filtering item_links by child relationship types. |
| 24 | func 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. |
| 33 | type ItemSearchResult struct { |
no test coverage detected