Remove unused header, friend class, add explicit keyword at constructor.
Change-Id: I8979902b2275a7de9882468613da30caf255f38e
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
#include <sqlite3.h>
#include <memory>
-#include <mutex>
#include <string>
namespace ttm {
namespace provider {
-class SQLiteTransaction;
class SQLiteStatement;
class SQLiteConnection : public std::enable_shared_from_this<SQLiteConnection> {
bool IsValid();
private:
- friend class SQLiteTransaction;
-
bool Connect(bool readonly);
bool Disconnect();
std::string GetErrorMessage() const;
class SQLiteStatement {
public:
- SQLiteStatement(std::shared_ptr<SQLiteConnection> sql_conn,
+ explicit SQLiteStatement(std::shared_ptr<SQLiteConnection> sql_conn,
sqlite3_stmt* stmt);
virtual ~SQLiteStatement();