gnomemm r2098 - in libgdamm/trunk: . libgda/src
- From: murrayc svn gnome org
- To: svn-commits-list gnome org
- Subject: gnomemm r2098 - in libgdamm/trunk: . libgda/src
- Date: Fri, 13 Mar 2009 15:39:04 +0000 (UTC)
Author: murrayc
Date: Fri Mar 13 15:39:04 2009
New Revision: 2098
URL: http://svn.gnome.org/viewvc/gnomemm?rev=2098&view=rev
Log:
2009-03-13 Murray Cumming <murrayc murrayc com>
* libgda/src/connection.[hg|ccg]: Added update_meta_store_data_types() and
update_meta_store_table_names().
Modified:
libgdamm/trunk/ChangeLog
libgdamm/trunk/libgda/src/connection.ccg
libgdamm/trunk/libgda/src/connection.hg
Modified: libgdamm/trunk/libgda/src/connection.ccg
==============================================================================
--- libgdamm/trunk/libgda/src/connection.ccg (original)
+++ libgdamm/trunk/libgda/src/connection.ccg Fri Mar 13 15:39:04 2009
@@ -378,7 +378,7 @@
GdaMetaContext mcontext = {(gchar*)"_tables", 1, column_names, column_values };
GError* gerror = 0;
- bool retval = gda_connection_update_meta_store(gobj(), &mcontext, &gerror);
+ const bool retval = gda_connection_update_meta_store(gobj(), &mcontext, &gerror);
g_value_unset(&table_name_value);
@@ -393,6 +393,48 @@
return retval;
}
+#ifdef GLIBMM_EXCEPTIONS_ENABLED
+bool Connection::update_meta_store_table_names()
+#else
+bool Connection::update_meta_store_table_names(std::auto_ptr<Glib::Error>& err)
+#endif
+{
+ GdaMetaContext mcontext = {(gchar*)"_tables", 0, 0, 0 };
+ GError* gerror = 0;
+ const bool retval = gda_connection_update_meta_store(gobj(), &mcontext, &gerror);
+
+#ifdef GLIBMM_EXCEPTIONS_ENABLED
+ if(gerror)
+ ::Glib::Error::throw_exception(gerror);
+#else
+ if(gerror)
+ error = ::Glib::Error::throw_exception(gerror);
+#endif //GLIBMM_EXCEPTIONS_ENABLED
+
+ return retval;
+}
+
+#ifdef GLIBMM_EXCEPTIONS_ENABLED
+bool Connection::update_meta_store_data_types()
+#else
+bool Connection::update_meta_store_data_types(std::auto_ptr<Glib::Error>& err)
+#endif
+{
+ GdaMetaContext mcontext = {(gchar*)"_builtin_data_types", 0, 0, 0 };
+ GError* gerror = 0;
+ const bool retval = gda_connection_update_meta_store(gobj(), &mcontext, &gerror);
+
+#ifdef GLIBMM_EXCEPTIONS_ENABLED
+ if(gerror)
+ ::Glib::Error::throw_exception(gerror);
+#else
+ if(gerror)
+ error = ::Glib::Error::throw_exception(gerror);
+#endif //GLIBMM_EXCEPTIONS_ENABLED
+
+ return retval;
+}
+
} //namespace Gda
} //namespace Gnome
Modified: libgdamm/trunk/libgda/src/connection.hg
==============================================================================
--- libgdamm/trunk/libgda/src/connection.hg (original)
+++ libgdamm/trunk/libgda/src/connection.hg Fri Mar 13 15:39:04 2009
@@ -246,6 +246,30 @@
#else
bool update_meta_store_table(const Glib::ustring& table_name, std::auto_ptr<Glib::Error>& err);
#endif //GLIBMM_EXCEPTIONS_ENABLED
+
+#ifdef GLIBMM_EXCEPTIONS_ENABLED
+ /** Update the meta store information for the table names.
+ *
+ * This can speed up the update of the meta store if you only need the list of table names.
+ *
+ * @return <tt>true</tt> if no error occurred.
+ */
+ bool update_meta_store_table_names();
+#else
+ bool update_meta_store_table_names(std::auto_ptr<Glib::Error>& err);
+#endif //GLIBMM_EXCEPTIONS_ENABLED
+
+#ifdef GLIBMM_EXCEPTIONS_ENABLED
+ /** Update the meta store information for the data types.
+ *
+ * This can speed up the update of the meta store if you only need the data types.
+ *
+ * @return <tt>true</tt> if no error occurred.
+ */
+ bool update_meta_store_data_types();
+#else
+ bool update_meta_store_data_types(std::auto_ptr<Glib::Error>& err);
+#endif //GLIBMM_EXCEPTIONS_ENABLED
_WRAP_METHOD(bool statement_prepare(const Glib::RefPtr<Statement>& stmt), gda_connection_statement_prepare, errthrow)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]