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

Method CreateTable

plugins/pgpointcloud/io/PgWriter.cpp:380–396  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

378}
379
380void 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

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