ledger-core
DatabaseBackend.hpp
1 // AUTOGENERATED FILE - DO NOT MODIFY!
2 // This file generated by Djinni from database.djinni
3 
4 #ifndef DJINNI_GENERATED_DATABASEBACKEND_HPP
5 #define DJINNI_GENERATED_DATABASEBACKEND_HPP
6 
7 #include <cstdint>
8 #include <memory>
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 DatabaseEngine;
20 
22 class LIBCORE_EXPORT DatabaseBackend {
23 public:
24  virtual ~DatabaseBackend() {}
25 
30  virtual int32_t getConnectionPoolSize() = 0;
31 
36  virtual std::shared_ptr<DatabaseBackend> enableQueryLogging(bool enable) = 0;
37 
42  virtual bool isLoggingEnabled() = 0;
43 
48  static std::shared_ptr<DatabaseBackend> getSqlite3Backend();
49 
51  static std::shared_ptr<DatabaseBackend> createBackendFromEngine(const std::shared_ptr<DatabaseEngine> & engine);
52 };
53 
54 } } } // namespace ledger::core::api
55 #endif //DJINNI_GENERATED_DATABASEBACKEND_HPP
Definition: DatabaseBackend.hpp:22
Definition: Account.cpp:8