MCPcopy Create free account
hub / github.com/davidgiven/fluxengine / sqlOpen

Function sqlOpen

tools/upgrade-flux-file.cc:34–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32}
33
34sqlite3* sqlOpen(const std::string filename, int flags)
35{
36 sqlite3* db;
37 int i = sqlite3_open_v2(filename.c_str(), &db, flags, NULL);
38 if (i != SQLITE_OK)
39 error("failed: {}", sqlite3_errstr(i));
40
41 return db;
42}
43
44void sqlClose(sqlite3* db)
45{

Callers 1

mainFunction · 0.85

Calls 1

errorFunction · 0.85

Tested by

no test coverage detected