mirror of
https://github.com/rbock/sqlpp11.git
synced 2024-11-16 21:04:15 +08:00
Improve interface
This commit is contained in:
parent
6cda931465
commit
ac5e93b856
@ -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,
|
||||
|
@ -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) {}
|
||||
|
Loading…
Reference in New Issue
Block a user