Skip to content

Commit f4064b0

Browse files
authored
JJBv2.0 CppSQLite3 Implementation copy
1 parent fb1f445 commit f4064b0

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

CppSQLite3.cpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#include <sstream>
1111
#include <iostream>
1212
#include <unistd.h>
13+
#include <memory>
1314

1415
using namespace std;
1516

@@ -1053,13 +1054,23 @@ void CppSQLite3DB::close()
10531054
}
10541055
}
10551056

1057+
/*
10561058
CppSQLite3Statement CppSQLite3DB::compileStatement(const string &szSQL) const
10571059
{
10581060
checkDB();
10591061
10601062
sqlite3_stmt *pVM = compile(szSQL);
10611063
return CppSQLite3Statement(mpDB, pVM);
10621064
}
1065+
*/
1066+
1067+
std::shared_ptr<CppSQLite3Statement> CppSQLite3DB::compileStatement(const string &szSQL) const
1068+
{
1069+
checkDB();
1070+
1071+
sqlite3_stmt *pVM = compile(szSQL);
1072+
return std::make_shared<CppSQLite3Statement>(mpDB, pVM);
1073+
}
10631074

10641075
bool CppSQLite3DB::tableExists(const string &szTable) const
10651076
{

0 commit comments

Comments
 (0)