renamed schema to repository
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
|
||||
#include "matador/sql/column.hpp"
|
||||
|
||||
#include "matador/object/schema.hpp"
|
||||
#include "matador/object/repository.hpp"
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
@@ -20,14 +20,14 @@ class column_generator
|
||||
{
|
||||
private:
|
||||
column_generator(std::vector<column> &column_infos,
|
||||
const object::schema &ts,
|
||||
const object::repository &ts,
|
||||
const std::string &table_name,
|
||||
bool force_lazy,
|
||||
bool has_many_to_many = false);
|
||||
|
||||
public:
|
||||
template < class Type >
|
||||
static std::vector<column> generate(const object::schema &scm, const bool force_lazy = false) {
|
||||
static std::vector<column> generate(const object::repository &scm, const bool force_lazy = false) {
|
||||
const auto info = scm.info<Type>();
|
||||
if (!info) {
|
||||
return {};
|
||||
@@ -40,7 +40,7 @@ public:
|
||||
}
|
||||
|
||||
template < class Type >
|
||||
static std::vector<column> generate_has_many_to_many(const object::schema &scm, const bool force_lazy = false) {
|
||||
static std::vector<column> generate_has_many_to_many(const object::repository &scm, const bool force_lazy = false) {
|
||||
const auto info = scm.info<Type>();
|
||||
if (!info) {
|
||||
return {};
|
||||
@@ -143,7 +143,7 @@ private:
|
||||
std::stack<std::string> table_name_stack_;
|
||||
std::vector<column> &column_infos_;
|
||||
std::unordered_set<std::string> seen_tables;
|
||||
const object::schema &table_schema_;
|
||||
const object::repository &table_schema_;
|
||||
int column_index{0};
|
||||
bool force_lazy_{false};
|
||||
bool has_many_to_many_{false};
|
||||
|
||||
Reference in New Issue
Block a user