aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-06-29 17:13:05 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-08-06 20:32:30 +0200
commitc188831c50456754de79aadc26df74149cb00422 (patch)
tree43b79baed8c1b123f9d82a599c6ce26499422dc4
parent5734c3f3ac74a80cc36ecd5a08048b917056f65b (diff)
Convert package tags type to string vector
-rw-r--r--brep/package3
-rw-r--r--brep/search.cxx3
2 files changed, 4 insertions, 2 deletions
diff --git a/brep/package b/brep/package
index f0906b8..62ad8d6 100644
--- a/brep/package
+++ b/brep/package
@@ -172,7 +172,7 @@ namespace brep
std::string name;
std::string summary;
- std::string tags;
+ strings tags;
std::string description;
url_type url;
odb::nullable<url_type> package_url;
@@ -186,6 +186,7 @@ namespace brep
// Database mapping.
//
#pragma db member(name) id
+ #pragma db member(tags) id_column("package") value_column("tag")
#pragma db member(versions) inverse(id.package)
};
diff --git a/brep/search.cxx b/brep/search.cxx
index c4ed4b9..16e9f23 100644
--- a/brep/search.cxx
+++ b/brep/search.cxx
@@ -57,7 +57,8 @@ namespace brep
cli->name = "cli";
cli->summary = "CLI is ...";
cli->description = "This is CLI";
- cli->tags = "compiler, C++";
+ cli->tags.push_back ("compiler");
+ cli->tags.push_back ("C++");
licenses l;
l.comment = "License\"A'";