Add query column in introspection tables to populate FullName if a QueryProvider references a named query. Closes #3161

This commit is contained in:
Puskar Basu
2023-03-13 21:02:51 +05:30
committed by GitHub
parent c72cab6884
commit 8cb5935a36
28 changed files with 85 additions and 19 deletions

View File

@@ -17,3 +17,9 @@ func UnquoteStringArray(stringArray []string) []string {
func StringSlicesEqual(l, r []string) bool {
return strings.Join(l, ",") == strings.Join(r, ",")
}
// RemoveElementFromSlice takes a slice of strings and an index to remove,
// and returns a new slice with the specified element removed.
func RemoveElementFromSlice(slice []string, s int) []string {
return append(slice[:s], slice[s+1:]...)
}