aboutsummaryrefslogtreecommitdiff
path: root/libbrep/build.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'libbrep/build.hxx')
-rw-r--r--libbrep/build.hxx12
1 files changed, 12 insertions, 0 deletions
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