From 5163436b00711318baea4fc0ad43a4de8222354a Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Sun, 14 May 2017 00:37:16 +0300 Subject: Implement builds page --- libbrep/build.hxx | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'libbrep') diff --git a/libbrep/build.hxx b/libbrep/build.hxx index f841e6c..90e6523 100644 --- a/libbrep/build.hxx +++ b/libbrep/build.hxx @@ -170,6 +170,18 @@ namespace brep build () : package_name (id.package.name), configuration (id.configuration) {} }; + + #pragma db view object(build) + struct build_count + { + size_t result; + + operator size_t () const {return result;} + + // Database mapping. + // + #pragma db member(result) column("count(" + build::package_name + ")") + }; } #endif // LIBBREP_BUILD_HXX -- cgit v1.1