diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2012-10-08 16:09:08 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2012-10-08 16:09:08 +0200 |
commit | 382035d872a2cbb22fc14d3c87db93b1f39b407b (patch) | |
tree | eae01dfdad70ffc916e3dc23a6f279a1a25a1556 /odb/sqlite/statement-cache.txx | |
parent | d8fed1d9dbab80e14033b385c604abb41cc84390 (diff) |
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.
Diffstat (limited to 'odb/sqlite/statement-cache.txx')
-rw-r--r-- | odb/sqlite/statement-cache.txx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/odb/sqlite/statement-cache.txx b/odb/sqlite/statement-cache.txx index b702712..775a6a8 100644 --- a/odb/sqlite/statement-cache.txx +++ b/odb/sqlite/statement-cache.txx @@ -7,10 +7,13 @@ namespace odb namespace sqlite { template <typename T> - typename object_traits<T>::statements_type& statement_cache:: + typename object_traits_impl<T, id_sqlite>::statements_type& + statement_cache:: find_object () { - typedef typename object_traits<T>::statements_type statements_type; + typedef + typename object_traits_impl<T, id_sqlite>::statements_type + statements_type; map::iterator i (map_.find (&typeid (T))); |