boat
C++23 geospatial library
Loading...
Searching...
No Matches
command.hpp
Go to the documentation of this file.
1// Andrew Naplavkov
2
3#ifndef BOAT_DB_COMMAND_HPP
4#define BOAT_DB_COMMAND_HPP
5
6#include <boat/db/query.hpp>
7#include <boat/db/rowset.hpp>
8#include <stop_token>
9
10namespace boat::db {
11
12struct command {
13 virtual ~command() = default;
14 virtual rowset exec(query const&, std::stop_token = {}) = 0;
15 virtual void set_autocommit(bool) = 0;
16 virtual void commit() = 0;
17 virtual std::string dbms() = 0;
18};
19
20} // namespace boat::db
21
22#endif // BOAT_DB_COMMAND_HPP
Definition query.hpp:19
Definition geometry.hpp:9
Definition command.hpp:12
virtual std::string dbms()=0
Lowercase.
virtual void set_autocommit(bool)=0
virtual rowset exec(query const &, std::stop_token={})=0
virtual ~command()=default
virtual void commit()=0
Definition rowset.hpp:13