aboutsummaryrefslogtreecommitdiff
path: root/libbrep/package.hxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2018-09-13 19:27:00 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2018-09-14 13:55:17 +0300
commit1367aa09951e0aa7491bc2a5bf7209b0b47be65e (patch)
tree8e4ffe92d9d7107d712f7096a7eb78872617efca /libbrep/package.hxx
parentda39917917f03bd709eb7807cc5d900ddeb1e48c (diff)
Add support for packages and builds global views
Diffstat (limited to 'libbrep/package.hxx')
-rw-r--r--libbrep/package.hxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/libbrep/package.hxx b/libbrep/package.hxx
index 6e372b3..fbe6f60 100644
--- a/libbrep/package.hxx
+++ b/libbrep/package.hxx
@@ -346,6 +346,7 @@ namespace brep
//
package_id id;
+ const string& tenant; // Tracks id.tenant.
const package_name& name; // Tracks id.name.
upstream_version version;
@@ -395,6 +396,7 @@ namespace brep
// Database mapping.
//
#pragma db member(id) id column("")
+ #pragma db member(tenant) transient
#pragma db member(name) transient
#pragma db member(version) set(this.version.init (this.id.version, (?)))
@@ -476,7 +478,7 @@ namespace brep
private:
friend class odb::access;
- package (): name (id.name) {}
+ package (): tenant (id.tenant), name (id.name) {}
// Save keywords, summary, description, and changes to weighted_text
// a, b, c, d members, respectively. So a word found in keywords will