@@ -73,8 +73,8 @@ void load_id_list(pg_conn_t const &db_connection, std::string const &table,
73
73
74
74
} // anonymous namespace
75
75
76
- middle_pgsql_t ::table_desc::table_desc (options_t const &options,
77
- std::string_view name)
76
+ middle_pgsql_t ::table_desc_t :: table_desc_t (options_t const &options,
77
+ std::string_view name)
78
78
: m_copy_target(std::make_shared<db_target_descr_t >(
79
79
options.middle_dbschema, fmt::format(" {}_{}" , options.prefix, name),
80
80
" id" ))
@@ -99,7 +99,7 @@ void middle_query_pgsql_t::prepare(std::string const &stmt,
99
99
m_db_connection.prepare (stmt, fmt::runtime (sql_cmd));
100
100
}
101
101
102
- void middle_pgsql_t::table_desc ::drop_table (
102
+ void middle_pgsql_t::table_desc_t ::drop_table (
103
103
pg_conn_t const &db_connection) const
104
104
{
105
105
util::timer_t timer;
@@ -110,7 +110,7 @@ void middle_pgsql_t::table_desc::drop_table(
110
110
util::human_readable_duration (timer.stop ()));
111
111
}
112
112
113
- void middle_pgsql_t::table_desc ::init_max_id (pg_conn_t const &db_connection)
113
+ void middle_pgsql_t::table_desc_t ::init_max_id (pg_conn_t const &db_connection)
114
114
{
115
115
auto const qual_name = qualified_name (schema (), name ());
116
116
auto const res = db_connection.exec (" SELECT max(id) FROM {}" , qual_name);
@@ -1257,9 +1257,9 @@ middle_pgsql_t::middle_pgsql_t(std::shared_ptr<thread_pool_t> thread_pool,
1257
1257
1258
1258
init_params (&m_params, *options);
1259
1259
1260
- m_tables.nodes () = table_desc {*options, " nodes" };
1261
- m_tables.ways () = table_desc {*options, " ways" };
1262
- m_tables.relations () = table_desc {*options, " rels" };
1260
+ m_tables.nodes () = table_desc_t {*options, " nodes" };
1261
+ m_tables.ways () = table_desc_t {*options, " ways" };
1262
+ m_tables.relations () = table_desc_t {*options, " rels" };
1263
1263
}
1264
1264
1265
1265
void middle_pgsql_t::set_requirements (
0 commit comments