aboutsummaryrefslogtreecommitdiff
path: root/bdep/project-odb.ixx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2024-04-19 21:12:56 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2024-04-19 21:12:56 +0300
commitf5d27a72c12b8beebf6ac34fe5fc1239b9c7c691 (patch)
tree3a9d336a06bd7b860f65477eb63272834b17f414 /bdep/project-odb.ixx
parent168811dcad9900fc1961514da91158f422f3c71e (diff)
Make changes required for CIci
Diffstat (limited to 'bdep/project-odb.ixx')
-rw-r--r--bdep/project-odb.ixx94
1 files changed, 94 insertions, 0 deletions
diff --git a/bdep/project-odb.ixx b/bdep/project-odb.ixx
new file mode 100644
index 0000000..1061753
--- /dev/null
+++ b/bdep/project-odb.ixx
@@ -0,0 +1,94 @@
+// -*- C++ -*-
+//
+// This file was generated by ODB, object-relational mapping (ORM)
+// compiler for C++.
+//
+
+namespace odb
+{
+ // configuration
+ //
+
+ inline
+ access::object_traits< ::bdep::configuration >::id_type
+ access::object_traits< ::bdep::configuration >::
+ id (const object_type& o)
+ {
+ return o.id;
+ }
+
+ inline
+ void access::object_traits< ::bdep::configuration >::
+ callback (database& db, object_type& x, callback_event e)
+ {
+ ODB_POTENTIALLY_UNUSED (db);
+ ODB_POTENTIALLY_UNUSED (x);
+ ODB_POTENTIALLY_UNUSED (e);
+ }
+
+ inline
+ void access::object_traits< ::bdep::configuration >::
+ callback (database& db, const object_type& x, callback_event e)
+ {
+ ODB_POTENTIALLY_UNUSED (db);
+ ODB_POTENTIALLY_UNUSED (x);
+ ODB_POTENTIALLY_UNUSED (e);
+ }
+
+ // configuration_count
+ //
+
+ inline
+ void access::view_traits< ::bdep::configuration_count >::
+ callback (database& db, view_type& x, callback_event e)
+ {
+ ODB_POTENTIALLY_UNUSED (db);
+ ODB_POTENTIALLY_UNUSED (x);
+ ODB_POTENTIALLY_UNUSED (e);
+ }
+}
+
+#include <odb/schema-version.hxx>
+
+namespace odb
+{
+ // package_state
+ //
+
+ inline
+ bool access::composite_value_traits< ::bdep::package_state, id_sqlite >::
+ get_null (const image_type& i)
+ {
+ bool r (true);
+ r = r && i.name_null;
+ return r;
+ }
+
+ inline
+ void access::composite_value_traits< ::bdep::package_state, id_sqlite >::
+ set_null (image_type& i,
+ sqlite::statement_kind sk)
+ {
+ ODB_POTENTIALLY_UNUSED (sk);
+
+ using namespace sqlite;
+
+ i.name_null = true;
+ }
+
+ // configuration
+ //
+
+ inline
+ void access::object_traits_impl< ::bdep::configuration, id_sqlite >::
+ erase (database& db, const object_type& obj)
+ {
+ callback (db, obj, callback_event::pre_erase);
+ erase (db, id (obj));
+ callback (db, obj, callback_event::post_erase);
+ }
+
+ // configuration_count
+ //
+}
+