From ae4eb4360376a52866b4737ba8f0fc76255821a0 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Sat, 10 Jun 2017 02:11:14 +0300 Subject: Support displaying unbuilt package configurations on builds page --- libbrep/package.hxx | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'libbrep') diff --git a/libbrep/package.hxx b/libbrep/package.hxx index ee51778..4693a34 100644 --- a/libbrep/package.hxx +++ b/libbrep/package.hxx @@ -495,6 +495,19 @@ namespace brep // #pragma db member(version) set(this.version.init (this.id.version, (?))) }; + + #pragma db view object(package) \ + object(repository: package::internal_repository) + struct package_version_count + { + size_t result; + + operator size_t () const {return result;} + + // Database mapping. + // + #pragma db member(result) column("count(" + package::id.name + ")") + }; } #endif // LIBBREP_PACKAGE_HXX -- cgit v1.1