[odb-users] ODB
Boris Kolpackov
boris at codesynthesis.com
Sun Jun 9 15:02:56 EDT 2013
Hi Piotr,
Piotr Wygocki <vwygos at gmail.com> writes:
> I like ODB very much but there is one think that bothers me. The
> think is that you cannot run which translates directly to this kind
> of query:
>
> "UPDATE table SET id = id + 1 WHERE id > 10".
Yes, we call these "mass update" statements (since they affect multiple
objects). There are plans to support mass updates (and mass, inserts for
databases that support them) in the near future.
> "DELETE FROM table WHERE id > 10".
This one is actually already supported:
db.erase_query<object> (query<object>::id > 10);
Boris
More information about the odb-users
mailing list