aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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'";