Skip to content

Commit c953857

Browse files
committed
Add _t suffix to class table_desc
1 parent dfa0df3 commit c953857

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

src/middle-pgsql.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ void load_id_list(pg_conn_t const &db_connection, std::string const &table,
7373

7474
} // anonymous namespace
7575

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)
7878
: m_copy_target(std::make_shared<db_target_descr_t>(
7979
options.middle_dbschema, fmt::format("{}_{}", options.prefix, name),
8080
"id"))
@@ -99,7 +99,7 @@ void middle_query_pgsql_t::prepare(std::string const &stmt,
9999
m_db_connection.prepare(stmt, fmt::runtime(sql_cmd));
100100
}
101101

102-
void middle_pgsql_t::table_desc::drop_table(
102+
void middle_pgsql_t::table_desc_t::drop_table(
103103
pg_conn_t const &db_connection) const
104104
{
105105
util::timer_t timer;
@@ -110,7 +110,7 @@ void middle_pgsql_t::table_desc::drop_table(
110110
util::human_readable_duration(timer.stop()));
111111
}
112112

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)
114114
{
115115
auto const qual_name = qualified_name(schema(), name());
116116
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,
12571257

12581258
init_params(&m_params, *options);
12591259

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"};
12631263
}
12641264

12651265
void middle_pgsql_t::set_requirements(

src/middle-pgsql.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,11 +110,11 @@ struct middle_pgsql_t : public middle_t
110110
void get_way_parents(idlist_t const &changed_ways,
111111
idlist_t *parent_relations) const override;
112112

113-
class table_desc
113+
class table_desc_t
114114
{
115115
public:
116-
table_desc() = default;
117-
table_desc(options_t const &options, std::string_view name);
116+
table_desc_t() = default;
117+
table_desc_t(options_t const &options, std::string_view name);
118118

119119
std::string const &schema() const noexcept
120120
{
@@ -180,7 +180,7 @@ struct middle_pgsql_t : public middle_t
180180
void build_relation_member_indexes();
181181

182182
std::map<osmium::user_id_type, std::string> m_users;
183-
osmium::nwr_array<table_desc> m_tables;
183+
osmium::nwr_array<table_desc_t> m_tables;
184184

185185
options_t const *m_options;
186186

0 commit comments

Comments
 (0)