ledger-core
DatabaseEngine.hpp
1 // AUTOGENERATED FILE - DO NOT MODIFY!
2 // This file generated by Djinni from database.djinni
3 
4 #ifndef DJINNI_GENERATED_DATABASEENGINE_HPP
5 #define DJINNI_GENERATED_DATABASEENGINE_HPP
6 
7 #include <cstdint>
8 #include <memory>
9 #include <string>
10 #ifndef LIBCORE_EXPORT
11  #if defined(_MSC_VER)
12  #include <libcore_export.h>
13  #else
14  #define LIBCORE_EXPORT
15  #endif
16 #endif
17 
18 namespace ledger { namespace core { namespace api {
19 
20 class DatabaseConnectionPool;
21 
24 public:
25  virtual ~DatabaseEngine() {}
26 
32  virtual std::shared_ptr<DatabaseConnectionPool> connect(const std::string & databaseName) = 0;
33 
38  virtual int32_t getPoolSize() = 0;
39 };
40 
41 } } } // namespace ledger::core::api
42 #endif //DJINNI_GENERATED_DATABASEENGINE_HPP
Definition: DatabaseEngine.hpp:23
Definition: Account.cpp:8
virtual std::shared_ptr< DatabaseConnectionPool > connect(const std::string &databaseName)=0
virtual int32_t getPoolSize()=0