diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2014-10-09 11:22:06 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2014-11-11 10:29:50 +0200 |
commit | c7711aee32b17df232a967e9b368ec44ab237530 (patch) | |
tree | c594828e8e43d17b9155b78dc1ea8f631172bb26 /bulk | |
parent | 0d0e4b23176f0b55d7948ffef9b9ffdad6a95973 (diff) |
Initial bulk erase implementation
Diffstat (limited to 'bulk')
-rw-r--r-- | bulk/driver.cxx | 17 | ||||
-rw-r--r-- | bulk/mssql/auto/person-odb.hxx | 2 |
2 files changed, 18 insertions, 1 deletions
diff --git a/bulk/driver.cxx b/bulk/driver.cxx index 8632905..b0b259a 100644 --- a/bulk/driver.cxx +++ b/bulk/driver.cxx @@ -98,6 +98,23 @@ main (int argc, char* argv[]) t.commit (); } + + { + transaction t (db->begin ()); + + unsigned long ids[] = { + pp[0]->id, + pp[1]->id, + pp[2]->id, + pp[3]->id, + pp[4]->id, + 123 + }; + + db->erase<person> (ids, ids + sizeof (ids)/sizeof (ids[0])); + + t.commit (); + } } catch (const odb::exception& e) { diff --git a/bulk/mssql/auto/person-odb.hxx b/bulk/mssql/auto/person-odb.hxx index f73d829..7c1651f 100644 --- a/bulk/mssql/auto/person-odb.hxx +++ b/bulk/mssql/auto/person-odb.hxx @@ -7,7 +7,7 @@ #include <odb/version.hxx> -#if (ODB_VERSION != 20302UL) +#if (ODB_VERSION != 20303UL) #error ODB runtime version mismatch #endif |