[libgdamm] ServerOperation: Add perform_create_table().



commit b58d0998d7a5c03597e2ec93c19123904e05b4fe
Author: Pavlo Solntsev <pavlo solntsev gmail com>
Date:   Tue Apr 25 22:26:12 2017 -0500

    ServerOperation: Add perform_create_table().
    
    Bug #781762

 libgda/src/serveroperation.ccg |   11 +++++++++++
 libgda/src/serveroperation.hg  |    1 +
 2 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/libgda/src/serveroperation.ccg b/libgda/src/serveroperation.ccg
index 968ac0e..ca40b52 100644
--- a/libgda/src/serveroperation.ccg
+++ b/libgda/src/serveroperation.ccg
@@ -98,6 +98,17 @@ void ServerOperation::set_value_at_as_value(const Glib::ustring& path, const Gli
     ::Glib::Error::throw_exception(gerror);
 }
 
+bool ServerOperation::perform_create_table()
+{
+    GError *error = 0;
+    bool res;
+    res = gda_server_operation_perform_create_table(gobj(),&error);
+    if(error) ::Glib::Error::throw_exception(error);
+
+    return res;
+}
+
+
 } /* namespace Gda */
 
 } /* namespace Gnome */
diff --git a/libgda/src/serveroperation.hg b/libgda/src/serveroperation.hg
index ea80011..15ab121 100644
--- a/libgda/src/serveroperation.hg
+++ b/libgda/src/serveroperation.hg
@@ -68,6 +68,7 @@ public:
   static Glib::RefPtr<ServerOperation> prepare_drop_database(const Glib::ustring& provider,
                                                              const Glib::ustring& db_name);
 
+  bool perform_create_table();
   bool perform_drop_database(const Glib::ustring& provider);
   bool perform_create_database(const Glib::ustring& provider);
 


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