Hello,

Still trying to get around libgdamm. I found that
gda_server_operation_perform_create_table() has no wrapper. Is there
any reason for that? I made a simple patch to implement this. I may try
to help more if it is useful. Let me know. 

BTW, what distro is more appropriate for GNOME? I am using Debian
testing but it looks like my packages are not new enough. I used to use
Ubuntu, but it was so buggy about 3-4 years ago. I don't want to make a
lot of discussion from this topic just want to get an idea about what
people use. 

Thanks. 



-- 
- Pavlo Solntsev
---------------------------------------------
Sent from Evolution on GNU/Debian <www.debian.org> id="-x-evo-
selection-start-marker">
From d65b598c4b5969736a376be9c7c23f4dacd47764 Mon Sep 17 00:00:00 2001
From: Pavlo Solntsev <pavlo.solnt...@gmail.com>
Date: Tue, 25 Apr 2017 22:26:12 -0500
Subject: [PATCH] perform_create_table was wrapped

---
 libgda/src/serveroperation.ccg | 11 +++++++++++
 libgda/src/serveroperation.hg  |  1 +
 2 files changed, 12 insertions(+)

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 ef12fd0..d1eb8ee 100644
--- a/libgda/src/serveroperation.hg
+++ b/libgda/src/serveroperation.hg
@@ -67,6 +67,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);
 
-- 
2.11.0

_______________________________________________
gtkmm-list mailing list
gtkmm-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtkmm-list

Reply via email to