libgda r3317 - in trunk: . doc/C doc/C/tmpl libgda/sqlite/virtual



Author: vivien
Date: Mon Feb  9 19:28:14 2009
New Revision: 3317
URL: http://svn.gnome.org/viewvc/libgda?rev=3317&view=rev

Log:
2009-02-09  Vivien Malerba <malerba gnome-db org>

	* libgda/sqlite/virtual/: s/GdaVConnectionDataModelFunc/GdaVconnectionDataModelFunc/
	* doc/C: doc. updates


Modified:
   trunk/ChangeLog
   trunk/doc/C/libgda-4.0-sections.txt
   trunk/doc/C/limitations.xml
   trunk/doc/C/migration2.xml
   trunk/doc/C/tmpl/gda-sql-statement.sgml
   trunk/doc/C/tmpl/gda-vconnection-data-model.sgml
   trunk/libgda/sqlite/virtual/gda-vconnection-data-model.c
   trunk/libgda/sqlite/virtual/gda-vconnection-data-model.h
   trunk/libgda/sqlite/virtual/gda-vconnection-hub.c
   trunk/libgda/sqlite/virtual/gda-vprovider-data-model.c

Modified: trunk/doc/C/libgda-4.0-sections.txt
==============================================================================
--- trunk/doc/C/libgda-4.0-sections.txt	(original)
+++ trunk/doc/C/libgda-4.0-sections.txt	Mon Feb  9 19:28:14 2009
@@ -567,7 +567,7 @@
 <FILE>gda-vconnection-data-model</FILE>
 <TITLE>GdaVconnectionDataModel</TITLE>
 GdaVconnectionDataModel
-GdaVConnectionDataModelFunc
+GdaVconnectionDataModelFunc
 GdaVconnectionDataModelSpec
 GdaVconnectionDataModelCreateColumnsFunc
 GdaVconnectionDataModelCreateModelFunc
@@ -928,7 +928,6 @@
 GDA_IS_REPORT_ENGINE
 GDA_REPORT_ENGINE
 GDA_REPORT_ENGINE_CLASS
-GDA_REPORT_ENGINE_ERROR
 GDA_TYPE_REPORT_ENGINE
 gda_report_engine_get_type
 </SECTION>
@@ -944,7 +943,6 @@
 GDA_IS_REPORT_DOCUMENT
 GDA_REPORT_DOCUMENT
 GDA_REPORT_DOCUMENT_CLASS
-GDA_REPORT_DOCUMENT_ERROR
 GDA_TYPE_REPORT_DOCUMENT
 gda_report_document_get_type
 </SECTION>
@@ -958,7 +956,6 @@
 GDA_IS_REPORT_RML_DOCUMENT
 GDA_REPORT_RML_DOCUMENT
 GDA_REPORT_RML_DOCUMENT_CLASS
-GDA_REPORT_RML_DOCUMENT_ERROR
 GDA_TYPE_REPORT_RML_DOCUMENT
 gda_report_rml_document_get_type
 </SECTION>
@@ -972,7 +969,6 @@
 GDA_IS_REPORT_DOCBOOK_DOCUMENT
 GDA_REPORT_DOCBOOK_DOCUMENT
 GDA_REPORT_DOCBOOK_DOCUMENT_CLASS
-GDA_REPORT_DOCBOOK_DOCUMENT_ERROR
 GDA_TYPE_REPORT_DOCBOOK_DOCUMENT
 gda_report_docbook_document_get_type
 </SECTION>
@@ -1258,6 +1254,7 @@
 gda_sql_select_target_take_alias
 <SUBSECTION>
 GdaSqlSelectJoin
+GdaSqlSelectJoinType
 gda_sql_select_join_new
 gda_sql_select_join_free
 gda_sql_select_join_copy

Modified: trunk/doc/C/limitations.xml
==============================================================================
--- trunk/doc/C/limitations.xml	(original)
+++ trunk/doc/C/limitations.xml	Mon Feb  9 19:28:14 2009
@@ -72,10 +72,10 @@
 	      to store other information within the database. Libgda assumes that any column of type "Oid" represents a
 	      blob. If this is not the case, then you must cast it to the correct data type within your SQL query (for example
 	      as "SELECT oid::varchar FROM...")</para></listitem>
-	  <listitem><para>As Libgda tries as much as possible to avoid orphaned BLOBs, it assumes that any BLOB Oid is
-	      present in at most one column of a table (and if not
-	      present, then the BLOB is orphaned); if a same BLOB is present in more than one column of a table, then
-	      expect some problems.</para></listitem>
+	  <listitem><para>&LIBGDA; does not try to avoid orphaned BLOBs, to solve the problem of orphaned BLOBs, set up
+	      the "lo" extension from PÃstgreSQL's contrib, and/or use the "vacuumlo" also from the contrib.</para>
+	  <para>Note that in the future the PostgreSQL's provider will have an option to ensure that there are no
+	    orphaned BLOBs itself.</para></listitem>
 	  <listitem><para>BLOB manipulations can only occur within a transaction, 
 	      so you should start a transaction before any operation
 	      on BLOBs, otherwise Libgda will automatically start one</para></listitem>

Modified: trunk/doc/C/migration2.xml
==============================================================================
--- trunk/doc/C/migration2.xml	(original)
+++ trunk/doc/C/migration2.xml	Mon Feb  9 19:28:14 2009
@@ -128,6 +128,16 @@
       </para>
     </sect2>
 
+    <sect2><title>Database provider's changes</title>
+      <para>
+	<itemizedlist>
+	  <listitem><para>BLOB handling in the PostgreSQL provider has changed and is now similar to JDBC and ODBC: 
+	      the provider does not handle orphaned BLOBs (which is a problem specific to PostgreSQL). See the section
+	      about <link linkend="limitations_postgres">PostgreSQL's limitations</link> for more information.</para></listitem>
+	</itemizedlist>
+      </para>
+    </sect2>
+
     <sect2><title>API changes</title>
       <para>
 	<itemizedlist>

Modified: trunk/doc/C/tmpl/gda-sql-statement.sgml
==============================================================================
--- trunk/doc/C/tmpl/gda-sql-statement.sgml	(original)
+++ trunk/doc/C/tmpl/gda-sql-statement.sgml	Mon Feb  9 19:28:14 2009
@@ -1109,7 +1109,7 @@
 <para>
   This structure represents a selected item in a SELECT statement (when executed, the returned data set
   will have one column per selected item). Note that the @table_name and 
-  @table field parts <emphasis>will be</emphasis> overwritten by &LIBGDA;,
+  @field_name field parts <emphasis>will be</emphasis> overwritten by &LIBGDA;,
   set the value of @expr->value instead.
 </para>
 
@@ -1276,6 +1276,18 @@
 @_gda_reserved1: 
 @_gda_reserved2: 
 
+<!-- ##### ENUM GdaSqlSelectJoinType ##### -->
+<para>
+
+</para>
+
+ GDA_SQL_SELECT_JOIN_CROSS: 
+ GDA_SQL_SELECT_JOIN_NATURAL: 
+ GDA_SQL_SELECT_JOIN_INNER: 
+ GDA_SQL_SELECT_JOIN_LEFT: 
+ GDA_SQL_SELECT_JOIN_RIGHT: 
+ GDA_SQL_SELECT_JOIN_FULL: 
+
 <!-- ##### FUNCTION gda_sql_select_join_new ##### -->
 <para>
 

Modified: trunk/doc/C/tmpl/gda-vconnection-data-model.sgml
==============================================================================
--- trunk/doc/C/tmpl/gda-vconnection-data-model.sgml	(original)
+++ trunk/doc/C/tmpl/gda-vconnection-data-model.sgml	Mon Feb  9 19:28:14 2009
@@ -25,6 +25,16 @@
 </para>
 
 
+<!-- ##### USER_FUNCTION GdaVconnectionDataModelFunc ##### -->
+<para>
+
+</para>
+
+ Param1: 
+ Param2: 
+ Param3: 
+
+
 <!-- ##### STRUCT GdaVconnectionDataModelSpec ##### -->
 <para>
 

Modified: trunk/libgda/sqlite/virtual/gda-vconnection-data-model.c
==============================================================================
--- trunk/libgda/sqlite/virtual/gda-vconnection-data-model.c	(original)
+++ trunk/libgda/sqlite/virtual/gda-vconnection-data-model.c	Mon Feb  9 19:28:14 2009
@@ -381,7 +381,7 @@
 /**
  * gda_vconnection_data_model_foreach
  * @cnc: a #GdaVconnectionDataModel connection
- * @func: a #GdaVConnectionDataModelFunc function pointer
+ * @func: a #GdaVconnectionDataModelFunc function pointer
  * @data: data to pass to @cunc calls
  *
  * Call @func for each table in @cnc. 
@@ -392,7 +392,7 @@
  */
 void
 gda_vconnection_data_model_foreach (GdaVconnectionDataModel *cnc, 
-				    GdaVConnectionDataModelFunc func, gpointer data)
+				    GdaVconnectionDataModelFunc func, gpointer data)
 {
 	GSList *list, *next;
 	g_return_if_fail (GDA_IS_VCONNECTION_DATA_MODEL (cnc));

Modified: trunk/libgda/sqlite/virtual/gda-vconnection-data-model.h
==============================================================================
--- trunk/libgda/sqlite/virtual/gda-vconnection-data-model.h	(original)
+++ trunk/libgda/sqlite/virtual/gda-vconnection-data-model.h	Mon Feb  9 19:28:14 2009
@@ -40,6 +40,7 @@
 
 typedef GList        *(*GdaVconnectionDataModelCreateColumnsFunc) (GdaVconnectionDataModelSpec *, GError **);
 typedef GdaDataModel *(*GdaVconnectionDataModelCreateModelFunc)   (GdaVconnectionDataModelSpec *);
+typedef void (*GdaVconnectionDataModelFunc) (GdaDataModel *, const gchar *, gpointer );
 
 struct _GdaVconnectionDataModelSpec {
 	GdaDataModel                             *data_model;
@@ -50,9 +51,8 @@
 	void (*_gda_reserved1) (void);
 	void (*_gda_reserved2) (void);
 };
-#define GDA_VCONNECTION_DATA_MODEL_SPEC(x) ((GdaVconnectionDataModelSpec*)(x))
 
-typedef void (*GdaVConnectionDataModelFunc) (GdaDataModel *model, const gchar *table_name, gpointer data);
+#define GDA_VCONNECTION_DATA_MODEL_SPEC(x) ((GdaVconnectionDataModelSpec*)(x))
 
 struct _GdaVconnectionDataModel {
 	GdaVirtualConnection            connection;
@@ -80,7 +80,7 @@
 GdaDataModel       *gda_vconnection_data_model_get_model (GdaVconnectionDataModel *cnc, const gchar *table_name);
 
 void                gda_vconnection_data_model_foreach   (GdaVconnectionDataModel *cnc, 
-							  GdaVConnectionDataModelFunc func, gpointer data);
+							  GdaVconnectionDataModelFunc func, gpointer data);
 
 G_END_DECLS
 

Modified: trunk/libgda/sqlite/virtual/gda-vconnection-hub.c
==============================================================================
--- trunk/libgda/sqlite/virtual/gda-vconnection-hub.c	(original)
+++ trunk/libgda/sqlite/virtual/gda-vconnection-hub.c	Mon Feb  9 19:28:14 2009
@@ -313,7 +313,7 @@
 /**
  * gda_vconnection_hub_foreach
  * @hub: a #GdaVconnectionHub connection
- * @func: a #GdaVConnectionDataModelFunc function pointer
+ * @func: a #GdaVconnectionDataModelFunc function pointer
  * @data: data to pass to @cunc calls
  *
  * Call @func for each #GdaConnection represented in @hub.

Modified: trunk/libgda/sqlite/virtual/gda-vprovider-data-model.c
==============================================================================
--- trunk/libgda/sqlite/virtual/gda-vprovider-data-model.c	(original)
+++ trunk/libgda/sqlite/virtual/gda-vprovider-data-model.c	Mon Feb  9 19:28:14 2009
@@ -310,7 +310,7 @@
 	g_return_val_if_fail (GDA_IS_VCONNECTION_DATA_MODEL (cnc), FALSE);
 
 	gda_vconnection_data_model_foreach (GDA_VCONNECTION_DATA_MODEL (cnc),
-					    (GdaVConnectionDataModelFunc) cnc_close_foreach_func, cnc);
+					    (GdaVconnectionDataModelFunc) cnc_close_foreach_func, cnc);
 
 	return GDA_SERVER_PROVIDER_CLASS (parent_class)->close_connection (GDA_SERVER_PROVIDER (provider), cnc);
 }



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