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

Method tableExists

src/database/cppsqlite3.cpp:809–814  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

807
808
809bool CppSQLite3DB::tableExists(const CString& strTable)
810{
811 CString strSQL = WizFormatString1(_T("select count(*) from sqlite_master where type='table' and name='%1'"), strTable);
812 int nRet = execScalar(strSQL);
813 return (nRet > 0);
814}
815
816bool CppSQLite3DB::columnExists(const CString& strTable, const CString& strColumn)
817{

Callers 4

openThumbMethod · 0.80
checkThumbTableMethod · 0.80
openMethod · 0.80
checkTableMethod · 0.80

Calls 1

WizFormatString1Function · 0.85

Tested by

no test coverage detected