MCPcopy Create free account
hub / github.com/ddnet/ddnet / SqlitePrepare

Function SqlitePrepare

src/engine/client/sqlite.cpp:53–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51}
52
53CSqliteStmt SqlitePrepare(IConsole *pConsole, sqlite3 *pSqlite, const char *pStatement)
54{
55 sqlite3_stmt *pTemp;
56 if(SQLITE_HANDLE_ERROR(sqlite3_prepare_v2(pSqlite, pStatement, -1, &pTemp, nullptr)))
57 {
58 return nullptr;
59 }
60 return CSqliteStmt{pTemp};
61}

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected