backend tests progress
This commit is contained in:
@@ -37,7 +37,7 @@ public:
|
||||
: column(std::move(name), data_type_traits<Type>::builtin_type(attr.size()), attr, null_opt)
|
||||
{}
|
||||
|
||||
column(std::string name, data_type_t type, utils::field_attributes attr, null_option null_opt);
|
||||
column(std::string name, data_type_t type, utils::field_attributes attr, null_option null_opt, size_t index = 0);
|
||||
|
||||
template<typename Type>
|
||||
column(std::string name, std::string ref_table, std::string ref_column, utils::field_attributes attr, null_option null_opt)
|
||||
|
||||
@@ -39,10 +39,13 @@ public:
|
||||
|
||||
statement prepare(query_context &&query) const;
|
||||
|
||||
const class dialect& dialect() const;
|
||||
|
||||
private:
|
||||
connection_info connection_info_;
|
||||
std::unique_ptr<connection_impl> connection_;
|
||||
utils::logger logger_;
|
||||
const class dialect &dialect_;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
@@ -24,8 +24,8 @@ public:
|
||||
record() = default;
|
||||
record(std::initializer_list<column> columns);
|
||||
explicit record(const std::vector<column> &columns);
|
||||
record(const record&) = default;
|
||||
record& operator=(const record&) = default;
|
||||
record(const record &x);
|
||||
record& operator=(const record &x);
|
||||
record(record&&) noexcept = default;
|
||||
record& operator=(record&&) noexcept = default;
|
||||
~record() = default;
|
||||
@@ -45,8 +45,8 @@ public:
|
||||
|
||||
void append(column col);
|
||||
|
||||
bool has_primary_key() const;
|
||||
const column& primary_key() const;
|
||||
[[nodiscard]] bool has_primary_key() const;
|
||||
[[nodiscard]] const column& primary_key() const;
|
||||
|
||||
[[nodiscard]] const std::vector<column>& columns() const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user