aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2010-07-22 14:30:45 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2010-07-22 14:30:45 +0200
commita82a07719d3df95ea6b7a569b9ffd854e12d2554 (patch)
treec60b41bf65e6ab8bdf733d6284802352dfc26e91
parent6400b736456af65176c9c1959022f1eb49fcde32 (diff)
Rename insert and update to persist and store in traits
-rw-r--r--odb/database.txx4
-rw-r--r--odb/traits.hxx4
2 files changed, 4 insertions, 4 deletions
diff --git a/odb/database.txx b/odb/database.txx
index 12edc85..402fc0b 100644
--- a/odb/database.txx
+++ b/odb/database.txx
@@ -20,7 +20,7 @@ namespace odb
if (!transaction::has_current ())
throw not_in_transaction ();
- traits::insert (*this, obj);
+ traits::persist (*this, obj);
return traits::id (obj);
}
@@ -73,7 +73,7 @@ namespace odb
if (!transaction::has_current ())
throw not_in_transaction ();
- object_traits<T>::update (*this, obj);
+ object_traits<T>::store (*this, obj);
}
template <typename T>
diff --git a/odb/traits.hxx b/odb/traits.hxx
index 50d87eb..8aee00c 100644
--- a/odb/traits.hxx
+++ b/odb/traits.hxx
@@ -27,8 +27,8 @@ namespace odb
// id_source - object id (primary key) source
// id_type id (const T&) - get object id
//
- // void insert (database&, T&)
- // void update (database&, T&)
+ // void persist (database&, T&)
+ // void store (database&, T&)
// void erase (database&, const id_type&)
// pointer_type find (database&, const id_type&)
// bool find (database&, const id_type&, T&)