aboutsummaryrefslogtreecommitdiff
path: root/libbrep/common-odb.ixx
diff options
context:
space:
mode:
Diffstat (limited to 'libbrep/common-odb.ixx')
-rw-r--r--libbrep/common-odb.ixx587
1 files changed, 587 insertions, 0 deletions
diff --git a/libbrep/common-odb.ixx b/libbrep/common-odb.ixx
new file mode 100644
index 0000000..ce8fe1c
--- /dev/null
+++ b/libbrep/common-odb.ixx
@@ -0,0 +1,587 @@
+// -*- C++ -*-
+//
+// This file was generated by ODB, object-relational mapping (ORM)
+// compiler for C++.
+//
+
+namespace odb
+{
+}
+
+namespace odb
+{
+ // _version
+ //
+
+ inline
+ bool access::composite_value_traits< ::brep::_version, id_pgsql >::
+ get_null (const image_type& i)
+ {
+ bool r (true);
+ r = r && i.epoch_null;
+ r = r && i.canonical_upstream_null;
+ r = r && i.canonical_release_null;
+ r = r && i.revision_null;
+ r = r && i.upstream_null;
+ r = r && i.release_null;
+ return r;
+ }
+
+ inline
+ void access::composite_value_traits< ::brep::_version, id_pgsql >::
+ set_null (image_type& i,
+ pgsql::statement_kind sk)
+ {
+ ODB_POTENTIALLY_UNUSED (sk);
+
+ using namespace pgsql;
+
+ i.epoch_null = true;
+ i.canonical_upstream_null = true;
+ i.canonical_release_null = true;
+ i.revision_null = true;
+ i.upstream_null = true;
+ i.release_null = true;
+ }
+
+ // email
+ //
+
+ inline
+ bool access::composite_value_traits< ::bpkg::email, id_pgsql >::
+ get_null (const image_type& i)
+ {
+ bool r (true);
+ r = r && i.value_null;
+ r = r && i.comment_null;
+ return r;
+ }
+
+ inline
+ void access::composite_value_traits< ::bpkg::email, id_pgsql >::
+ set_null (image_type& i,
+ pgsql::statement_kind sk)
+ {
+ ODB_POTENTIALLY_UNUSED (sk);
+
+ using namespace pgsql;
+
+ i.value_null = true;
+ i.comment_null = true;
+ }
+
+ // version_constraint
+ //
+
+ inline
+ bool access::composite_value_traits< ::bpkg::version_constraint, id_pgsql >::
+ get_null (const image_type& i)
+ {
+ bool r (true);
+ r = r && composite_value_traits< ::brep::_version, id_pgsql >::get_null (i.min_version_value);
+ r = r && composite_value_traits< ::brep::_version, id_pgsql >::get_null (i.max_version_value);
+ r = r && i.min_open_null;
+ r = r && i.max_open_null;
+ return r;
+ }
+
+ inline
+ void access::composite_value_traits< ::bpkg::version_constraint, id_pgsql >::
+ set_null (image_type& i,
+ pgsql::statement_kind sk)
+ {
+ ODB_POTENTIALLY_UNUSED (sk);
+
+ using namespace pgsql;
+
+ composite_value_traits< ::brep::_version, id_pgsql >::set_null (i.min_version_value, sk);
+ composite_value_traits< ::brep::_version, id_pgsql >::set_null (i.max_version_value, sk);
+ i.min_open_null = true;
+ i.max_open_null = true;
+ }
+
+ // requirement_alternative
+ //
+
+ inline
+ bool access::composite_value_traits< ::bpkg::requirement_alternative, id_pgsql >::
+ get_null (const image_type& i)
+ {
+ bool r (true);
+ r = r && i.enable_null;
+ r = r && i.reflect_null;
+ return r;
+ }
+
+ inline
+ void access::composite_value_traits< ::bpkg::requirement_alternative, id_pgsql >::
+ set_null (image_type& i,
+ pgsql::statement_kind sk)
+ {
+ ODB_POTENTIALLY_UNUSED (sk);
+
+ using namespace pgsql;
+
+ i.enable_null = true;
+ i.reflect_null = true;
+ }
+
+ // requirement_alternatives
+ //
+
+ inline
+ bool access::composite_value_traits< ::bpkg::requirement_alternatives, id_pgsql >::
+ get_null (const image_type& i)
+ {
+ bool r (true);
+ r = r && i.buildtime_null;
+ r = r && i.comment_null;
+ return r;
+ }
+
+ inline
+ void access::composite_value_traits< ::bpkg::requirement_alternatives, id_pgsql >::
+ set_null (image_type& i,
+ pgsql::statement_kind sk)
+ {
+ ODB_POTENTIALLY_UNUSED (sk);
+
+ using namespace pgsql;
+
+ i.buildtime_null = true;
+ i.comment_null = true;
+ }
+
+ // build_constraint
+ //
+
+ inline
+ bool access::composite_value_traits< ::bpkg::build_constraint, id_pgsql >::
+ get_null (const image_type& i)
+ {
+ bool r (true);
+ r = r && i.exclusion_null;
+ r = r && i.config_null;
+ r = r && i.target_null;
+ r = r && i.comment_null;
+ return r;
+ }
+
+ inline
+ void access::composite_value_traits< ::bpkg::build_constraint, id_pgsql >::
+ set_null (image_type& i,
+ pgsql::statement_kind sk)
+ {
+ ODB_POTENTIALLY_UNUSED (sk);
+
+ using namespace pgsql;
+
+ i.exclusion_null = true;
+ i.config_null = true;
+ i.target_null = true;
+ i.comment_null = true;
+ }
+
+ // build_class_expr
+ //
+
+ inline
+ bool access::composite_value_traits< ::bpkg::build_class_expr, id_pgsql >::
+ get_null (const image_type& i)
+ {
+ bool r (true);
+ r = r && i.expression_null;
+ r = r && i.comment_null;
+ return r;
+ }
+
+ inline
+ void access::composite_value_traits< ::bpkg::build_class_expr, id_pgsql >::
+ set_null (image_type& i,
+ pgsql::statement_kind sk)
+ {
+ ODB_POTENTIALLY_UNUSED (sk);
+
+ using namespace pgsql;
+
+ i.expression_null = true;
+ i.comment_null = true;
+ }
+
+ // build_auxiliary
+ //
+
+ inline
+ bool access::composite_value_traits< ::bpkg::build_auxiliary, id_pgsql >::
+ get_null (const image_type& i)
+ {
+ bool r (true);
+ r = r && i.environment_name_null;
+ r = r && i.config_null;
+ r = r && i.comment_null;
+ return r;
+ }
+
+ inline
+ void access::composite_value_traits< ::bpkg::build_auxiliary, id_pgsql >::
+ set_null (image_type& i,
+ pgsql::statement_kind sk)
+ {
+ ODB_POTENTIALLY_UNUSED (sk);
+
+ using namespace pgsql;
+
+ i.environment_name_null = true;
+ i.config_null = true;
+ i.comment_null = true;
+ }
+
+ // canonical_version
+ //
+
+ inline
+ bool access::composite_value_traits< ::brep::canonical_version, id_pgsql >::
+ get_null (const image_type& i)
+ {
+ bool r (true);
+ r = r && i.epoch_null;
+ r = r && i.canonical_upstream_null;
+ r = r && i.canonical_release_null;
+ r = r && i.revision_null;
+ return r;
+ }
+
+ inline
+ void access::composite_value_traits< ::brep::canonical_version, id_pgsql >::
+ set_null (image_type& i,
+ pgsql::statement_kind sk)
+ {
+ ODB_POTENTIALLY_UNUSED (sk);
+
+ using namespace pgsql;
+
+ i.epoch_null = true;
+ i.canonical_upstream_null = true;
+ i.canonical_release_null = true;
+ i.revision_null = true;
+ }
+
+ // upstream_version
+ //
+
+ inline
+ bool access::composite_value_traits< ::brep::upstream_version, id_pgsql >::
+ get_null (const image_type& i)
+ {
+ bool r (true);
+ r = r && i.upstream_null;
+ r = r && i.release_null;
+ return r;
+ }
+
+ inline
+ void access::composite_value_traits< ::brep::upstream_version, id_pgsql >::
+ set_null (image_type& i,
+ pgsql::statement_kind sk)
+ {
+ ODB_POTENTIALLY_UNUSED (sk);
+
+ using namespace pgsql;
+
+ i.upstream_null = true;
+ i.release_null = true;
+ }
+
+ // package_id
+ //
+
+ inline
+ bool access::composite_value_traits< ::brep::package_id, id_pgsql >::
+ get_null (const image_type& i)
+ {
+ bool r (true);
+ r = r && i.tenant_null;
+ r = r && i.name_null;
+ r = r && composite_value_traits< ::brep::canonical_version, id_pgsql >::get_null (i.version_value);
+ return r;
+ }
+
+ inline
+ void access::composite_value_traits< ::brep::package_id, id_pgsql >::
+ set_null (image_type& i,
+ pgsql::statement_kind sk)
+ {
+ ODB_POTENTIALLY_UNUSED (sk);
+
+ using namespace pgsql;
+
+ i.tenant_null = true;
+ i.name_null = true;
+ composite_value_traits< ::brep::canonical_version, id_pgsql >::set_null (i.version_value, sk);
+ }
+
+ // _repository_location
+ //
+
+ inline
+ bool access::composite_value_traits< ::brep::_repository_location, id_pgsql >::
+ get_null (const image_type& i)
+ {
+ bool r (true);
+ r = r && i.url_null;
+ r = r && i.type_null;
+ return r;
+ }
+
+ inline
+ void access::composite_value_traits< ::brep::_repository_location, id_pgsql >::
+ set_null (image_type& i,
+ pgsql::statement_kind sk)
+ {
+ ODB_POTENTIALLY_UNUSED (sk);
+
+ using namespace pgsql;
+
+ i.url_null = true;
+ i.type_null = true;
+ }
+
+ // repository_id
+ //
+
+ inline
+ bool access::composite_value_traits< ::brep::repository_id, id_pgsql >::
+ get_null (const image_type& i)
+ {
+ bool r (true);
+ r = r && i.tenant_null;
+ r = r && i.canonical_name_null;
+ return r;
+ }
+
+ inline
+ void access::composite_value_traits< ::brep::repository_id, id_pgsql >::
+ set_null (image_type& i,
+ pgsql::statement_kind sk)
+ {
+ ODB_POTENTIALLY_UNUSED (sk);
+
+ using namespace pgsql;
+
+ i.tenant_null = true;
+ i.canonical_name_null = true;
+ }
+
+ // public_key_id
+ //
+
+ inline
+ bool access::composite_value_traits< ::brep::public_key_id, id_pgsql >::
+ get_null (const image_type& i)
+ {
+ bool r (true);
+ r = r && i.tenant_null;
+ r = r && i.fingerprint_null;
+ return r;
+ }
+
+ inline
+ void access::composite_value_traits< ::brep::public_key_id, id_pgsql >::
+ set_null (image_type& i,
+ pgsql::statement_kind sk)
+ {
+ ODB_POTENTIALLY_UNUSED (sk);
+
+ using namespace pgsql;
+
+ i.tenant_null = true;
+ i.fingerprint_null = true;
+ }
+
+ // build_toolchain
+ //
+
+ inline
+ bool access::composite_value_traits< ::brep::build_toolchain, id_pgsql >::
+ get_null (const image_type& i)
+ {
+ bool r (true);
+ r = r && i.name_null;
+ r = r && composite_value_traits< ::brep::_version, id_pgsql >::get_null (i.version_value);
+ return r;
+ }
+
+ inline
+ void access::composite_value_traits< ::brep::build_toolchain, id_pgsql >::
+ set_null (image_type& i,
+ pgsql::statement_kind sk)
+ {
+ ODB_POTENTIALLY_UNUSED (sk);
+
+ using namespace pgsql;
+
+ i.name_null = true;
+ composite_value_traits< ::brep::_version, id_pgsql >::set_null (i.version_value, sk);
+ }
+
+ // build_class_expr_key
+ //
+
+ inline
+ bool access::composite_value_traits< ::brep::build_class_expr_key, id_pgsql >::
+ get_null (const image_type& i)
+ {
+ bool r (true);
+ r = r && i.outer_null;
+ r = r && i.inner_null;
+ return r;
+ }
+
+ inline
+ void access::composite_value_traits< ::brep::build_class_expr_key, id_pgsql >::
+ set_null (image_type& i,
+ pgsql::statement_kind sk)
+ {
+ ODB_POTENTIALLY_UNUSED (sk);
+
+ using namespace pgsql;
+
+ i.outer_null = true;
+ i.inner_null = true;
+ }
+
+ // build_constraint_key
+ //
+
+ inline
+ bool access::composite_value_traits< ::brep::build_constraint_key, id_pgsql >::
+ get_null (const image_type& i)
+ {
+ bool r (true);
+ r = r && i.outer_null;
+ r = r && i.inner_null;
+ return r;
+ }
+
+ inline
+ void access::composite_value_traits< ::brep::build_constraint_key, id_pgsql >::
+ set_null (image_type& i,
+ pgsql::statement_kind sk)
+ {
+ ODB_POTENTIALLY_UNUSED (sk);
+
+ using namespace pgsql;
+
+ i.outer_null = true;
+ i.inner_null = true;
+ }
+
+ // build_auxiliary_key
+ //
+
+ inline
+ bool access::composite_value_traits< ::brep::build_auxiliary_key, id_pgsql >::
+ get_null (const image_type& i)
+ {
+ bool r (true);
+ r = r && i.outer_null;
+ r = r && i.inner_null;
+ return r;
+ }
+
+ inline
+ void access::composite_value_traits< ::brep::build_auxiliary_key, id_pgsql >::
+ set_null (image_type& i,
+ pgsql::statement_kind sk)
+ {
+ ODB_POTENTIALLY_UNUSED (sk);
+
+ using namespace pgsql;
+
+ i.outer_null = true;
+ i.inner_null = true;
+ }
+
+ // requirement_alternative_key
+ //
+
+ inline
+ bool access::composite_value_traits< ::brep::requirement_alternative_key, id_pgsql >::
+ get_null (const image_type& i)
+ {
+ bool r (true);
+ r = r && i.outer_null;
+ r = r && i.inner_null;
+ return r;
+ }
+
+ inline
+ void access::composite_value_traits< ::brep::requirement_alternative_key, id_pgsql >::
+ set_null (image_type& i,
+ pgsql::statement_kind sk)
+ {
+ ODB_POTENTIALLY_UNUSED (sk);
+
+ using namespace pgsql;
+
+ i.outer_null = true;
+ i.inner_null = true;
+ }
+
+ // requirement_key
+ //
+
+ inline
+ bool access::composite_value_traits< ::brep::requirement_key, id_pgsql >::
+ get_null (const image_type& i)
+ {
+ bool r (true);
+ r = r && i.outer_null;
+ r = r && i.middle_null;
+ r = r && i.inner_null;
+ return r;
+ }
+
+ inline
+ void access::composite_value_traits< ::brep::requirement_key, id_pgsql >::
+ set_null (image_type& i,
+ pgsql::statement_kind sk)
+ {
+ ODB_POTENTIALLY_UNUSED (sk);
+
+ using namespace pgsql;
+
+ i.outer_null = true;
+ i.middle_null = true;
+ i.inner_null = true;
+ }
+
+ // tenant_service
+ //
+
+ inline
+ bool access::composite_value_traits< ::brep::tenant_service, id_pgsql >::
+ get_null (const image_type& i)
+ {
+ bool r (true);
+ r = r && i.id_null;
+ r = r && i.type_null;
+ r = r && i.data_null;
+ return r;
+ }
+
+ inline
+ void access::composite_value_traits< ::brep::tenant_service, id_pgsql >::
+ set_null (image_type& i,
+ pgsql::statement_kind sk)
+ {
+ ODB_POTENTIALLY_UNUSED (sk);
+
+ using namespace pgsql;
+
+ i.id_null = true;
+ i.type_null = true;
+ i.data_null = true;
+ }
+}
+