[libgdamm] Connection: Added *_row_into_table() methods.



commit f208ffe770caa3548b5f5720de0ab358fa3a576f
Author: Murray Cumming <murrayc murrayc com>
Date:   Wed Mar 30 10:58:42 2011 +0200

    Connection: Added *_row_into_table() methods.
    
    * libgda/src/connection.hg: Added insert_row_into_table(),
    update_row_in_table(), and delete_row_in_table().

 ChangeLog                |    7 +++++++
 libgda/src/connection.hg |    9 +++++++++
 2 files changed, 16 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 2826ef4..84307f7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2011-03-30  Murray Cumming  <murrayc murrayc com>
 
+	Connection: Added *_row_into_table() methods.
+
+	* libgda/src/connection.hg: Added insert_row_into_table(),
+	update_row_in_table(), and delete_row_in_table().
+
+2011-03-30  Murray Cumming  <murrayc murrayc com>
+
 	Replace a remaining use of ListHandle.
 
 	* libgda/libgdamm/value.h: Remove the ListHandle and SListHandle typedefs.
diff --git a/libgda/src/connection.hg b/libgda/src/connection.hg
index 736cc97..71ed759 100644
--- a/libgda/src/connection.hg
+++ b/libgda/src/connection.hg
@@ -250,6 +250,15 @@ public:
   _WRAP_METHOD(std::vector< Glib::RefPtr<ConnectionEvent> > get_events(), gda_connection_get_events)
   _WRAP_METHOD(std::vector< Glib::RefPtr<const ConnectionEvent> > get_events() const, gda_connection_get_events)
 
+#m4 _CONVERSION(`const std::vector<Glib::ustring>&', `GSList*',`Glib::SListHandler<Glib::ustring>::vector_to_slist($3).data()')
+#m4 _CONVERSION(`const std::vector<Value>&', `GSList*',`Glib::SListHandler<Value, ValueTraits>::vector_to_slist($3).data()')
+  _WRAP_METHOD(bool insert_row_into_table(const Glib::ustring& table, const std::vector<Glib::ustring>& col_names, const std::vector<Value>& values), gda_connection_insert_row_into_table_v, errthrow)
+  _IGNORE(gda_connection_insert_row_into_table)
+
+  _WRAP_METHOD(bool update_row_in_table(const Glib::ustring& table, const Glib::ustring& condition_column_name, const Value& condition_value, const std::vector<Glib::ustring>& col_names, const std::vector<Value>& values), gda_connection_update_row_in_table_v, errthrow)
+
+  _WRAP_METHOD(bool delete_row_from_table(const Glib::ustring& table, const Glib::ustring& condition_column_name, const Value& condition_value), gda_connection_delete_row_from_table, errthrow)
+  _IGNORE(gda_connection_update_row_in_table)
 
   _WRAP_METHOD(Glib::ustring value_to_sql_string(const Value& from) const, gda_connection_value_to_sql_string)
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]