0
0
mirror of https://github.com/rbock/sqlpp11.git synced 2024-11-16 21:04:15 +08:00

make pool::connection inherit from sqlpp::connection

This commit is contained in:
Frank Park 2017-04-11 13:48:30 -04:00
parent 325f1ad731
commit 1987614bfe

View File

@ -27,13 +27,14 @@
#ifndef SQLPP_POOL_CONNECTION_H #ifndef SQLPP_POOL_CONNECTION_H
#define SQLPP_POOL_CONNECTION_H #define SQLPP_POOL_CONNECTION_H
#include <sqlpp11/connection.h>
#include <memory> #include <memory>
namespace sqlpp namespace sqlpp
{ {
template <typename Connection_config, typename Connection_validator, typename Connection, template <typename Connection_config, typename Connection_validator, typename Connection,
typename Connection_pool = connection_pool<Connection_config, Connection_validator, Connection>> typename Connection_pool = connection_pool<Connection_config, Connection_validator, Connection>>
struct pool_connection struct pool_connection : public sqlpp::connection
{ {
private: private:
std::unique_ptr<Connection> _impl; std::unique_ptr<Connection> _impl;