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

Function pg_execute

plugins/pgpointcloud/io/PgCommon.hpp:86–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84}
85
86inline void pg_execute(PGconn* session, std::string const& sql)
87{
88 PGresult *result = PQexec(session, sql.c_str());
89 if ( (!result) || (PQresultStatus(result) != PGRES_COMMAND_OK) )
90 {
91 std::string errmsg = std::string(PQerrorMessage(session));
92 if( result )
93 PQclear(result);
94 throw pdal_error(errmsg);
95 }
96 PQclear(result);
97}
98
99inline void pg_begin(PGconn* session)
100{

Callers 15

CursorSetupMethod · 0.85
CursorTeardownMethod · 0.85
pg_beginFunction · 0.85
pg_commitFunction · 0.85
writeInitMethod · 0.85
doneMethod · 0.85
DeleteTableMethod · 0.85
CheckPointCloudExistsMethod · 0.85
CheckPostGISExistsMethod · 0.85
CreateTableMethod · 0.85
CreateIndexMethod · 0.85
writeTileMethod · 0.85

Calls

no outgoing calls

Tested by 3

executeOnTestDbMethod · 0.68
executeOnMasterDbMethod · 0.68
executeMethod · 0.68