1#ifndef joedb_Compiler_Options_declared
2#define joedb_Compiler_Options_declared
71 for (
const auto &[table_id, table_name]:
db.
get_tables())
72 for (
const auto &[field_id, field_name]:
db.
get_fields(table_id))
80 for (
const auto &index:
indices)
89 if (options.single_row)
97 if (!options.single_row)
107 for (
const auto &[field_id, name]:
db.
get_fields(table_id))
108 if (name == field_name)
118 if (name == table_name)
135 indices.emplace_back(std::move(index));
159 std::string
get_path(
const std::string &schema)
const
162 return std::string(
"..");
std::map< Table_Id, Table_Options > table_options
std::vector< std::string > custom_names
std::string get_path(const std::string &schema) const
const std::string & get_name_space_back() const
void add_index(Index index)
std::vector< std::string > name_space
const std::vector< std::string > & get_custom_names() const
std::vector< Index > indices
const std::vector< std::string > & get_name_space() const
void set_single_row(Table_Id table_id, bool value)
void set_name_space(std::vector< std::string > v)
bool is_unique_field_name(const std::string &field_name) const
bool has_unique_index() const
const std::vector< Index > & get_indices() const
bool has_single_row() const
const Table_Options & get_table_options(Table_Id table_id) const
const Database & get_db() const
bool has_table(const std::string &table_name) const
bool has_multi_row() const
const std::map< Table_Id, std::string > & get_tables() const override
const Type & get_field_type(Table_Id table_id, Field_Id field_id) const override
const std::map< Field_Id, std::string > & get_fields(Table_Id table_id) const override
Type_Id get_type_id() const
bool is_trigger(const Table_Id tid, const Field_Id fid) const
std::vector< Field_Id > field_ids