1 // Copyright (c) 2018 Samsung Electronics Co., Ltd All Rights Reserved
2 // Use of this source code is governed by a apache 2.0 license that can be
3 // found in the LICENSE file.
5 #ifndef SQLITE_STATEMENT_H_
6 #define SQLITE_STATEMENT_H_
12 #include "src/sql_statement.h"
18 class SQLiteStatement final : public SQLStatement {
20 SQLiteStatement(SQLConnection* sql_conn, sqlite3_stmt* stmt);
21 virtual ~SQLiteStatement();
24 SQLiteStatement(const SQLiteStatement&) = delete;
25 SQLiteStatement& operator=(const SQLiteStatement&) = delete;
27 SQLStatement::StepResult Step() override;
29 bool BindInt(int pos, int val) override;
30 bool BindString(int pos, const std::string& val) override;
32 int GetColumnInt(int pos) const override;
33 std::string GetColumnString(int pos) const override;
35 bool Reset() override;
36 void Clear() override;
39 std::string GetErrorMessage() const;
46 #endif // SQLITE_STATEMENT_H_