| 378 | } |
| 379 | |
| 380 | void PgWriter::CreateTable(std::string const& schema_name, |
| 381 | std::string const& table_name, std::string const& column_name, |
| 382 | uint32_t pcid) |
| 383 | { |
| 384 | std::ostringstream oss; |
| 385 | oss << "CREATE TABLE "; |
| 386 | if (schema_name.size()) |
| 387 | oss << pg_quote_identifier(schema_name) << "."; |
| 388 | oss << pg_quote_identifier(table_name); |
| 389 | oss << " (id SERIAL PRIMARY KEY, " << |
| 390 | pg_quote_identifier(column_name) << " PcPatch"; |
| 391 | if (pcid) |
| 392 | oss << "(" << pcid << ")"; |
| 393 | oss << ")"; |
| 394 | |
| 395 | pg_execute(m_session, oss.str()); |
| 396 | } |
| 397 | |
| 398 | |
| 399 | // Make sure you test for the presence of PostGIS before calling this |
nothing calls this directly
no test coverage detected