connection info in connection pool progress
This commit is contained in:
@@ -11,9 +11,8 @@ sql::connection_impl *test_backend_service::create(const sql::connection_info &i
|
||||
return noop_connections_.insert(std::make_unique<test_connection>(info)).first->get();
|
||||
}
|
||||
|
||||
void test_backend_service::destroy(sql::connection_impl *impl)
|
||||
{
|
||||
auto it = std::find_if(noop_connections_.begin(), noop_connections_.end(), [impl](const auto &item) {
|
||||
void test_backend_service::destroy(sql::connection_impl *impl) {
|
||||
const auto it = std::find_if(noop_connections_.begin(), noop_connections_.end(), [impl](const auto &item) {
|
||||
return impl == item.get();
|
||||
});
|
||||
if (it != noop_connections_.end()) {
|
||||
@@ -21,8 +20,7 @@ void test_backend_service::destroy(sql::connection_impl *impl)
|
||||
}
|
||||
}
|
||||
|
||||
const sql::dialect *test_backend_service::dialect() const
|
||||
{
|
||||
const sql::dialect *test_backend_service::dialect() const {
|
||||
static sql::dialect dialect_ = sql::dialect_builder::builder()
|
||||
.create()
|
||||
.build();
|
||||
|
||||
Reference in New Issue
Block a user