| 160 | |
| 161 | |
| 162 | void 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 | |
| 184 | uint32_t PgWriter::SetupSchema(uint32_t srid) |
nothing calls this directly
no test coverage detected