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

Method done

plugins/pgpointcloud/io/PgWriter.cpp:162–181  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

160
161
162void PgWriter::done(PointTableRef /*table*/)
163{
164 //CreateIndex(m_schema_name, m_table_name, m_column_name);
165
166 if (m_post_sql.size())
167 {
168 std::string sql = FileUtils::readFileIntoString(m_post_sql);
169 if (!sql.size())
170 {
171 // if there was no file to read because the data in post_sql was
172 // actually the sql code the user wanted to run instead of the
173 // filename to open, we'll use that instead.
174 sql = m_post_sql;
175 }
176 pg_execute(m_session, sql);
177 }
178
179 pg_commit(m_session);
180 return;
181}
182
183
184uint32_t PgWriter::SetupSchema(uint32_t srid)

Callers

nothing calls this directly

Calls 4

readFileIntoStringFunction · 0.85
pg_executeFunction · 0.85
pg_commitFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected