MCPcopy Create free account
hub / github.com/PDAL/PDAL / DeleteTable

Method DeleteTable

plugins/pgpointcloud/io/PgWriter.cpp:303–319  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

301
302
303void PgWriter::DeleteTable(std::string const& schema_name,
304 std::string const& table_name)
305{
306 std::ostringstream stmt;
307 std::ostringstream name;
308
309 stmt << "DROP TABLE IF EXISTS ";
310
311 if (schema_name.size())
312 {
313 name << pg_quote_identifier(schema_name) << ".";
314 }
315 name << pg_quote_identifier(table_name);
316 stmt << name.str();
317
318 pg_execute(m_session, stmt.str());
319}
320
321
322bool PgWriter::CheckPointCloudExists()

Callers

nothing calls this directly

Calls 4

pg_quote_identifierFunction · 0.85
pg_executeFunction · 0.85
strMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected