aboutsummaryrefslogtreecommitdiff
path: root/mod/ci-common.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2024-10-24 14:45:19 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2024-10-24 14:45:19 +0200
commit1bfb0c463d49e939dabc71fbb6adbc154915e619 (patch)
tree3d61531d5e9eedf7bf253c43e25567391c4d7fe2 /mod/ci-common.hxx
parent7728e2469fdf49307231d57a9fc5a2cf60aa535a (diff)
Sketch
Diffstat (limited to 'mod/ci-common.hxx')
-rw-r--r--mod/ci-common.hxx10
1 files changed, 10 insertions, 0 deletions
diff --git a/mod/ci-common.hxx b/mod/ci-common.hxx
index d155398..1703ae0 100644
--- a/mod/ci-common.hxx
+++ b/mod/ci-common.hxx
@@ -205,6 +205,16 @@ namespace brep
optional<build_state>
rebuild (odb::core::database&, const build_id&) const;
+ // Find the tenant given the tenant service type and id and return the
+ // associated data or nullopt if there is no such tenant.
+ //
+ // Note: should be called out of the database transaction.
+ //
+ optional<tenant_service>
+ find (odb::core::database&,
+ const string& type,
+ const string& id) const;
+
// Helpers.
//