diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2014-11-17 09:08:25 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2014-11-25 06:44:31 +0200 |
commit | 2db43d4c2f2bed0348d781367090e633ad02779f (patch) | |
tree | c966a8dfb7855866e7bc89e6d4ef9c5c5fb3560c /odb/pgsql/database.ixx | |
parent | 6323bca38688f0f5be72481fb146313d2fc5fe78 (diff) |
Implement bulk database operation support for Oracle and SQL Server
Diffstat (limited to 'odb/pgsql/database.ixx')
-rw-r--r-- | odb/pgsql/database.ixx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/odb/pgsql/database.ixx b/odb/pgsql/database.ixx index 21b5729..5324fc8 100644 --- a/odb/pgsql/database.ixx +++ b/odb/pgsql/database.ixx @@ -27,6 +27,13 @@ namespace odb template <typename T> inline typename object_traits<T>::id_type database:: + persist (const T& obj) + { + return persist_<const T, id_pgsql> (obj); + } + + template <typename T> + inline typename object_traits<T>::id_type database:: persist (T* p) { typedef typename object_traits<T>::pointer_type object_pointer; |