feat(db): introduce query for repositories (with at least 1 tag) under a path
Related to #869 (closed)
Context 🌱
This MR introduces a query for that will be exposed via the GitLab V1 API in a following MR .
The query introduced here will retrieve all repositories that are found in a base path (e.g for base path = a/b/c we may return repositories: a/b/c a/b/c/d a/b/c/d2, and a/b/c/d/e when a/b/c itself has a repository and the path a/b/c has sub-repositories d, d2, d/e) that has at least 1 tag.
The returned result is paginated as a list of lexicographically arranged repositories that match the basepath queried, starting from the specified (non-inclusive) start point (i.e lastPath) and containing at most limit amount of repositories.
This is a stepping stone in remedying &9107
Edited by SAhmed