StormByte C++ Library: Database module 0.0.9999
StormByte-Database is a StormByte library module for handling database connections
Loading...
Searching...
No Matches
query.hxx
1#pragma once
2
3#include <StormByte/database/query.hxx>
4#include <StormByte/database/sqlite/preparedSTMT.hxx>
5#include <StormByte/database/sqlite/alias.hxx>
6
11namespace StormByte::Database::SQLite {
17 class STORMBYTE_DATABASE_PUBLIC Query final: public StormByte::Database::Query<Row> {
18 friend class SQLite3;
19 public:
24 Query(const std::string& query);
25
30 Query(std::string&& query);
31
35 Query(const Query&) = delete;
36
40 Query(Query&&) = default;
41
45 Query& operator=(const Query&) = delete;
46
50 Query& operator=(Query&&) = default;
51
55 ~Query() override = default;
56
60 const Row& Step() noexcept override;
61
62 private:
66 std::unique_ptr<PreparedSTMT> m_stmt; //< The SQLite3 statement
67 };
68}
Represents a query to be executed in a database.
Definition query.hxx:14
Row class for databases.
Definition row.hxx:20
Prepared statement for SQLite.
Definition preparedSTMT.hxx:16
Represents a query to be executed in a SQLite3 database. In SQLite3 a query is a Prepared Statement s...
Definition query.hxx:17
Query(const std::string &query)
Query & operator=(Query &&)=default
Query & operator=(const Query &)=delete
const Row & Step() noexcept override
Contains classes and functions for SQLite3 database operations.