19#ifndef CPPREALM_BRIDGE_TABLE_HPP
20#define CPPREALM_BRIDGE_TABLE_HPP
24#include <cpprealm/internal/bridge/obj_key.hpp>
33 namespace internal::bridge {
47 table(
const TableRef &);
48 table(
const ConstTableRef &);
49 operator TableRef()
const;
50 operator ConstTableRef()
const;
52 col_key get_column_key(
const std::string_view &name)
const;
53 uint32_t get_key()
const;
54 std::string get_name()
const;
56 obj create_object_with_primary_key(
const mixed &key)
const;
63 [[nodiscard]]
bool is_embedded()
const;
65 struct query query(const std::string &, const std::vector <mixed>&) const;
66 struct
query where() const;
68 void remove_object(const obj_key &) const;
69 obj get_object(const obj_key&) const;
70 bool is_valid(const obj_key&) const;
71 using underlying = TableRef;
72#ifdef CPPREALM_HAVE_GENERATED_BRIDGE_TYPES
73 storage::TableRef m_table[1];
75 std::shared_ptr<TableRef> m_table;
87 operator TableView()
const;
88 using underlying = TableView;
89#ifdef CPPREALM_HAVE_GENERATED_BRIDGE_TYPES
90 storage::TableView m_table_view[1];
92 std::shared_ptr<TableView> m_table_view;
Definition: col_key.hpp:28
Definition: query.hpp:107
Definition: obj_key.hpp:33
Definition: query.hpp:131