mirror of
https://github.com/rbock/sqlpp11.git
synced 2026-01-04 12:10:43 -06:00
Updated return types for executing custom queries
This commit is contained in:
@@ -53,13 +53,13 @@ namespace sqlpp
|
||||
|
||||
// Execute
|
||||
template<typename Db, typename Composite>
|
||||
auto _run(Db& db, const Composite& composite) const -> void
|
||||
auto _run(Db& db, const Composite& composite) const -> size_t
|
||||
{
|
||||
return db.execute(composite);
|
||||
}
|
||||
|
||||
template<typename Db>
|
||||
auto _run(Db& db) const -> void
|
||||
auto _run(Db& db) const -> size_t
|
||||
{
|
||||
return db.execute(_get_statement());
|
||||
}
|
||||
|
||||
@@ -45,7 +45,7 @@ namespace sqlpp
|
||||
using _run_check = consistent_t;
|
||||
|
||||
auto _run(Db& db) const
|
||||
-> void
|
||||
-> size_t
|
||||
{
|
||||
return db.run_prepared_execute(*this);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user