From 3d1969a43fce72dd50044c5eada38557f3f200bd Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 8 Oct 2012 16:09:08 +0200 Subject: Ground work for multi-database support All generated code now includes database id. The database-specific database class interface has been updated to include all the database operations. The database-specific tests now use this interface. --- sqlite/truncation/driver.cxx | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'sqlite/truncation') diff --git a/sqlite/truncation/driver.cxx b/sqlite/truncation/driver.cxx index c8b9dab..70fde25 100644 --- a/sqlite/truncation/driver.cxx +++ b/sqlite/truncation/driver.cxx @@ -18,7 +18,8 @@ #include "test-odb.hxx" using namespace std; -using namespace odb::core; +namespace sqlite = odb::sqlite; +using namespace sqlite; int main (int argc, char* argv[]) @@ -33,7 +34,7 @@ main (int argc, char* argv[]) // Test basic operations. // { - auto_ptr db (create_database (argc, argv)); + auto_ptr db (create_specific_database (argc, argv)); // Run persist/load so that the initial bindings are established // (version == 0). @@ -98,10 +99,10 @@ main (int argc, char* argv[]) // Test query. // { - typedef odb::query query; - typedef odb::result result; + auto_ptr db (create_specific_database (argc, argv)); - auto_ptr db (create_database (argc, argv)); + typedef sqlite::query query; + typedef odb::result result; // Run persist/query so that the initial bindings are established // (version == 0). -- cgit v1.1