| 338 | |
| 339 | |
| 340 | bool PgWriter::CheckPostGISExists() |
| 341 | { |
| 342 | log()->get(LogLevel::Debug) << "checking for PostGIS existence ... " << |
| 343 | std::endl; |
| 344 | |
| 345 | std::string q = "SELECT PostGIS_Version()"; |
| 346 | try |
| 347 | { |
| 348 | pg_execute(m_session, q); |
| 349 | } |
| 350 | catch (pdal_error const &) |
| 351 | { |
| 352 | return false; |
| 353 | } |
| 354 | return true; |
| 355 | } |
| 356 | |
| 357 | |
| 358 | bool PgWriter::CheckTableExists(std::string const& name) |
nothing calls this directly
no test coverage detected