lintel 0.2.0
Loading...
Searching...
No Matches
PreparedStatement.h
Go to the documentation of this file.
1#ifndef LINTEL_SQLITE_PREPAREDSTATEMENT_H
2#define LINTEL_SQLITE_PREPAREDSTATEMENT_H
3
4#include "Connection.h"
5
6namespace lintel {
7namespace sqlite {
17 {
18 private:
19 bool m_closed = false;
20 Connection &m_connection;
21 const std::string m_statement;
22 const std::string m_statementName;
23
24 public:
31 PreparedStatement(Connection &connection, const std::string &statement, const std::string &statementName);
32
34
40 std::shared_ptr<Result> execute(const std::vector<std::string> &params);
41
43 void close();
44 };
45}// namespace sqlite
46}// namespace lintel
47#endif// LINTEL_SQLITE_PREPAREDSTATEMENT_H
Definition Connection.h:30
Definition PreparedStatement.h:17
PreparedStatement(Connection &connection, const std::string &statement, const std::string &statementName)
std::shared_ptr< Result > execute(const std::vector< std::string > &params)
Definition BaseFeature.h:6
constexpr std::string_view type_name()
Definition TypeName.h:9