MCPcopy Create free account
hub / github.com/altairwei/WizNotePlus / open

Method open

src/database/cppsqlite3.cpp:776–787  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

774
775
776void CppSQLite3DB::open(const CString& strFile)
777{
778 int nRet = sqlite3_open16(strFile.utf16(), &mpDB);
779
780 if (nRet != SQLITE_OK)
781 {
782 const char* szError = sqlite3_errmsg(mpDB);
783 throw CppSQLite3Exception(nRet, szError);
784 }
785
786 setBusyTimeout(mnBusyTimeoutMs);
787}
788
789
790void CppSQLite3DB::close()

Callers 3

repairMethod · 0.45
openThumbMethod · 0.45
updateAbstractMethod · 0.45

Calls 1

CppSQLite3ExceptionClass · 0.85

Tested by

no test coverage detected