| 181 | } |
| 182 | |
| 183 | void StatementGenerator::flatTableColumnPath( |
| 184 | const uint32_t flags, const std::unordered_map<String, SQLColumn> & cols, std::function<bool(const SQLColumn & c)> col_filter) |
| 185 | { |
| 186 | auto & res = ((flags & to_table_entries) != 0) ? this->table_entries |
| 187 | : (((flags & to_remote_entries) != 0) ? this->remote_entries : this->entries); |
| 188 | |
| 189 | chassert(res.empty()); |
| 190 | for (const auto & [key, val] : cols) |
| 191 | { |
| 192 | if (col_filter(val)) |
| 193 | { |
| 194 | ColumnPathChain cpc(val.nullable, val.special, val.dmod, {}); |
| 195 | |
| 196 | collectColumnPaths(val.getColumnName(), val.tp.get(), flags, cpc, res); |
| 197 | } |
| 198 | } |
| 199 | } |
| 200 | |
| 201 | void StatementGenerator::flatColumnPath(const uint32_t flags, const std::unordered_map<uint32_t, std::unique_ptr<SQLType>> & centries) |
| 202 | { |
no test coverage detected