From 9381bece0459fab204fceb09349091e838f1e940 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 9 Oct 2014 11:22:05 +0200 Subject: Initial bulk erase implementation --- odb/database.hxx | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'odb/database.hxx') 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::pointer_type& obj_ptr); + // Bulk erase. + // + template + void + erase (I id_begin, I id_end); + + template + void + erase (I obj_begin, I obj_end); + // Erase multiple objects matching a query predicate. // template -- cgit v1.1