aboutsummaryrefslogtreecommitdiff
path: root/libbrep/build.hxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2017-05-14 00:37:16 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2017-05-15 20:37:43 +0300
commit5163436b00711318baea4fc0ad43a4de8222354a (patch)
treea05c06693bda84dd9a9b365a50c227126a5ec05f /libbrep/build.hxx
parent2ebf9de408f3fd629126a20b21221e186195813c (diff)
Implement builds page
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