diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2014-10-09 11:22:05 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2014-11-11 10:28:19 +0200 |
commit | 9381bece0459fab204fceb09349091e838f1e940 (patch) | |
tree | 024249b42c83004af8feea521c7a64d1250e6604 /odb/database.hxx | |
parent | ded152cfb675537ab4ce24f50d0e95cec5b83b18 (diff) |
Initial bulk erase implementation
Diffstat (limited to 'odb/database.hxx')
-rw-r--r-- | odb/database.hxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/odb/database.hxx b/odb/database.hxx index 3ddf914..d399209 100644 --- a/odb/database.hxx +++ b/odb/database.hxx @@ -213,6 +213,16 @@ namespace odb void erase (const typename object_traits<T>::pointer_type& obj_ptr); + // Bulk erase. + // + template <typename T, typename I> + void + erase (I id_begin, I id_end); + + template <typename I> + void + erase (I obj_begin, I obj_end); + // Erase multiple objects matching a query predicate. // template <typename T> |