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

Improve interface

This commit is contained in:
Frank Park 2017-04-11 01:09:15 -04:00
parent 6cda931465
commit ac5e93b856
2 changed files with 6 additions and 5 deletions

View File

@ -215,6 +215,12 @@ namespace sqlpp
{
query_task<connection_pool, Query, Lambda>(*this, query, callback)();
}
template<typename Query>
void operator()(Query query)
{
operator()(query, [](){});
}
};
template<typename Connection_config,

View File

@ -77,11 +77,6 @@ namespace sqlpp
return _impl->prepare(t);
}
Connection* operator->()
{
return &_impl;
}
pool_connection(const pool_connection&) = delete;
pool_connection(pool_connection&& other)
: _impl(std::move(other._impl)), origin(other.origin) {}