mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-28 19:51:58 +01:00
Reset connection when a session is returned to the SessionPool
This commit is contained in:
@@ -50,6 +50,7 @@ public:
|
||||
void rollback();
|
||||
void open(const std::string& connect = "");
|
||||
void close();
|
||||
void resetConnection();
|
||||
bool isConnected() const;
|
||||
void setConnectionTimeout(std::size_t timeout);
|
||||
std::size_t getConnectionTimeout() const;
|
||||
|
||||
@@ -92,6 +92,9 @@ public:
|
||||
void reconnect();
|
||||
/// Closes the connection and opens it again.
|
||||
|
||||
virtual void resetConnection() = 0;
|
||||
/// Reset connection with dababase and clears session state, but without disconnecting
|
||||
|
||||
virtual void begin() = 0;
|
||||
/// Starts a transaction.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user