renamed schema to repository
This commit is contained in:
@@ -15,13 +15,13 @@ utils::error make_error(const error_code ec, const std::string &msg) {
|
||||
session::session(session_context&& ctx)
|
||||
: cache_(ctx.bus, ctx.pool, ctx.cache_size)
|
||||
, dialect_(sql::backend_provider::instance().connection_dialect(ctx.pool.info().type))
|
||||
, schema_(std::make_unique<object::schema>(dialect_.default_schema_name())) {
|
||||
, schema_(std::make_unique<object::repository>(dialect_.default_schema_name())) {
|
||||
}
|
||||
|
||||
utils::result<void, utils::error> session::create_schema() const {
|
||||
// Step 1: Build dependency graph
|
||||
std::unordered_map<std::string, std::vector<std::string> > dependency_graph;
|
||||
std::unordered_map<std::string, std::pair<int,object::schema::node_ptr>> in_degree;
|
||||
std::unordered_map<std::string, std::pair<int,object::repository::node_ptr>> in_degree;
|
||||
|
||||
for (const auto &node: *schema_) {
|
||||
for (auto it = node->info().endpoint_begin(); it != node->info().endpoint_end(); ++it) {
|
||||
|
||||
Reference in New Issue
Block a user