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

Method read

src/database/cppsqlite3.cpp:1633–1656  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1631}
1632
1633bool CppSQLite3DB::read(const CString& strNewFileName)
1634{
1635 FILE* fp = fopen(::WizBSTR2UTF8(strNewFileName).c_str(), "rb");
1636 if (!fp)
1637 {
1638 TOLOG1("Failed to open file: %1", strNewFileName);
1639 return false;
1640 }
1641 //
1642 callback_data data;
1643 data.db = mpDB;
1644 data.out = fp;
1645 data.writableSchema = 0;
1646 data.cnt = 0;
1647 data.pStmt = NULL;
1648 //
1649 callback_data* p = &data;
1650 //
1651 int errCnt = process_input(p, fp);
1652 //
1653 fclose(fp);
1654 //
1655 return 0 == errCnt;
1656}
1657
1658
1659bool CppSQLite3DB::repair(const CString& strDBFileName, const CString& strRetFileName)

Callers 1

repairMethod · 0.45

Calls 2

WizBSTR2UTF8Function · 0.85
process_inputFunction · 0.85

Tested by

no test coverage detected