MCPcopy Create free account
hub / github.com/OSGeo/PROJ / prepare

Method prepare

src/networkfilemanager.cpp:586–594  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

584// ---------------------------------------------------------------------------
585
586std::unique_ptr<SQLiteStatement> DiskChunkCache::prepare(const char *sql) {
587 sqlite3_stmt *hStmt = nullptr;
588 sqlite3_prepare_v2(hDB_, sql, -1, &hStmt, nullptr);
589 if (!hStmt) {
590 pj_log(ctx_, PJ_LOG_ERROR, "%s", sqlite3_errmsg(hDB_));
591 return nullptr;
592 }
593 return std::unique_ptr<SQLiteStatement>(new SQLiteStatement(hStmt));
594}
595
596// ---------------------------------------------------------------------------
597

Callers 5

insertMethod · 0.45
getMethod · 0.45
tryGetMethod · 0.45
proj_is_download_neededFunction · 0.45
proj_download_fileFunction · 0.45

Calls 1

pj_logFunction · 0.85

Tested by

no test coverage detected