ledger-core
DatabaseConnection.hpp
1 // AUTOGENERATED FILE - DO NOT MODIFY!
2 // This file generated by Djinni from database.djinni
3 
4 #ifndef DJINNI_GENERATED_DATABASECONNECTION_HPP
5 #define DJINNI_GENERATED_DATABASECONNECTION_HPP
6 
7 #include <memory>
8 #include <string>
9 #ifndef LIBCORE_EXPORT
10  #if defined(_MSC_VER)
11  #include <libcore_export.h>
12  #else
13  #define LIBCORE_EXPORT
14  #endif
15 #endif
16 
17 namespace ledger { namespace core { namespace api {
18 
19 class DatabaseBlob;
20 class DatabaseStatement;
21 
28 public:
29  virtual ~DatabaseConnection() {}
30 
37  virtual std::shared_ptr<DatabaseStatement> prepareStatement(const std::string & query, bool repeatable) = 0;
38 
40  virtual void begin() = 0;
41 
43  virtual void rollback() = 0;
44 
46  virtual void commit() = 0;
47 
49  virtual void close() = 0;
50 
55  virtual std::shared_ptr<DatabaseBlob> newBlob() = 0;
56 };
57 
58 } } } // namespace ledger::core::api
59 #endif //DJINNI_GENERATED_DATABASECONNECTION_HPP
virtual std::shared_ptr< DatabaseStatement > prepareStatement(const std::string &query, bool repeatable)=0
virtual std::shared_ptr< DatabaseBlob > newBlob()=0
Definition: DatabaseConnection.hpp:27
Definition: Account.cpp:8