gda-connection.h   gda-connection.h 
skipping to change at line 65 skipping to change at line 65
GDA_CONNECTION_DSN_NOT_FOUND_ERROR, GDA_CONNECTION_DSN_NOT_FOUND_ERROR,
GDA_CONNECTION_PROVIDER_NOT_FOUND_ERROR, GDA_CONNECTION_PROVIDER_NOT_FOUND_ERROR,
GDA_CONNECTION_PROVIDER_ERROR, GDA_CONNECTION_PROVIDER_ERROR,
GDA_CONNECTION_NO_CNC_SPEC_ERROR, GDA_CONNECTION_NO_CNC_SPEC_ERROR,
GDA_CONNECTION_NO_PROVIDER_SPEC_ERROR, GDA_CONNECTION_NO_PROVIDER_SPEC_ERROR,
GDA_CONNECTION_OPEN_ERROR, GDA_CONNECTION_OPEN_ERROR,
GDA_CONNECTION_STATEMENT_TYPE_ERROR, GDA_CONNECTION_STATEMENT_TYPE_ERROR,
GDA_CONNECTION_CANT_LOCK_ERROR, GDA_CONNECTION_CANT_LOCK_ERROR,
GDA_CONNECTION_TASK_NOT_FOUND_ERROR, GDA_CONNECTION_TASK_NOT_FOUND_ERROR,
GDA_CONNECTION_UNSUPPORTED_THREADS_ERROR, GDA_CONNECTION_UNSUPPORTED_THREADS_ERROR,
GDA_CONNECTION_CLOSED_ERROR GDA_CONNECTION_CLOSED_ERROR,
GDA_CONNECTION_META_DATA_CONTEXT_ERROR
} GdaConnectionError; } GdaConnectionError;
#define GDA_CONNECTION_NONEXIST_DSN_ERROR GDA_CONNECTION_DSN_NOT_FOUND_ERRO R #define GDA_CONNECTION_NONEXIST_DSN_ERROR GDA_CONNECTION_DSN_NOT_FOUND_ERRO R
/** /**
* SECTION:gda-connection * SECTION:gda-connection
* @short_description: A connection to a database * @short_description: A connection to a database
* @title: GdaConnection * @title: GdaConnection
* @stability: Stable * @stability: Stable
* *
 End of changes. 1 change blocks. 
1 lines changed or deleted 2 lines changed or added


 gda-data-model-iter.h   gda-data-model-iter.h 
skipping to change at line 117 skipping to change at line 117
* </mediaobject> * </mediaobject>
* *
* Note: the new #GdaDataModelIter does not hold any reference to the data model it iterates through (ie. * Note: the new #GdaDataModelIter does not hold any reference to the data model it iterates through (ie.
* if this data model is destroyed at some point, the new iterator will bec ome useless but in * if this data model is destroyed at some point, the new iterator will bec ome useless but in
* any case it will not prevent the data model from being destroyed). * any case it will not prevent the data model from being destroyed).
*/ */
GType gda_data_model_iter_get_type (void) G_GNUC_CO NST; GType gda_data_model_iter_get_type (void) G_GNUC_CO NST;
const GValue *gda_data_model_iter_get_value_at (GdaDataModelIte r *iter, gint col); const GValue *gda_data_model_iter_get_value_at (GdaDataModelIte r *iter, gint col);
const GValue *gda_data_model_iter_get_value_at_e (GdaDataModelIte r *iter, gint col, GError **error);
const GValue *gda_data_model_iter_get_value_for_field (GdaDataModelIte r *iter, const gchar *field_name); const GValue *gda_data_model_iter_get_value_for_field (GdaDataModelIte r *iter, const gchar *field_name);
gboolean gda_data_model_iter_set_value_at (GdaDataModelIte r *iter, gint col, gboolean gda_data_model_iter_set_value_at (GdaDataModelIte r *iter, gint col,
const GValue *va lue, GError **error); const GValue *va lue, GError **error);
gboolean gda_data_model_iter_move_to_row (GdaDataModelIte r *iter, gint row); gboolean gda_data_model_iter_move_to_row (GdaDataModelIte r *iter, gint row);
gboolean gda_data_model_iter_move_next (GdaDataModelIte r *iter); gboolean gda_data_model_iter_move_next (GdaDataModelIte r *iter);
gboolean gda_data_model_iter_move_prev (GdaDataModelIte r *iter); gboolean gda_data_model_iter_move_prev (GdaDataModelIte r *iter);
gint gda_data_model_iter_get_row (GdaDataModelIte r *iter); gint gda_data_model_iter_get_row (GdaDataModelIte r *iter);
void gda_data_model_iter_invalidate_contents (GdaDataModelIte r *iter); void gda_data_model_iter_invalidate_contents (GdaDataModelIte r *iter);
 End of changes. 1 change blocks. 
0 lines changed or deleted 1 lines changed or added


 gda-enum-types.h   gda-enum-types.h 
skipping to change at line 104 skipping to change at line 104
GType gda_transaction_status_state_get_type (void); GType gda_transaction_status_state_get_type (void);
#define GDA_TYPE_TRANSACTION_STATUS_STATE (gda_transaction_status_state_get _type()) #define GDA_TYPE_TRANSACTION_STATUS_STATE (gda_transaction_status_state_get _type())
GType gda_tree_error_get_type (void); GType gda_tree_error_get_type (void);
#define GDA_TYPE_TREE_ERROR (gda_tree_error_get_type()) #define GDA_TYPE_TREE_ERROR (gda_tree_error_get_type())
GType gda_tree_node_error_get_type (void); GType gda_tree_node_error_get_type (void);
#define GDA_TYPE_TREE_NODE_ERROR (gda_tree_node_error_get_type()) #define GDA_TYPE_TREE_NODE_ERROR (gda_tree_node_error_get_type())
GType gda_tree_manager_error_get_type (void); GType gda_tree_manager_error_get_type (void);
#define GDA_TYPE_TREE_MANAGER_ERROR (gda_tree_manager_error_get_type()) #define GDA_TYPE_TREE_MANAGER_ERROR (gda_tree_manager_error_get_type())
GType gda_xa_transaction_error_get_type (void); GType gda_xa_transaction_error_get_type (void);
#define GDA_TYPE_XA_TRANSACTION_ERROR (gda_xa_transaction_error_get_type()) #define GDA_TYPE_XA_TRANSACTION_ERROR (gda_xa_transaction_error_get_type())
GType gda_data_pivot_error_get_type (void);
#define GDA_TYPE_DATA_PIVOT_ERROR (gda_data_pivot_error_get_type())
GType gda_data_pivot_aggregate_get_type (void);
#define GDA_TYPE_DATA_PIVOT_AGGREGATE (gda_data_pivot_aggregate_get_type())
GType gda_data_pivot_field_type_get_type (void);
#define GDA_TYPE_DATA_PIVOT_FIELD_TYPE (gda_data_pivot_field_type_get_type(
))
G_END_DECLS G_END_DECLS
#endif /* __LIBGDA_ENUM_TYPES_H__ */ #endif /* __LIBGDA_ENUM_TYPES_H__ */
 End of changes. 1 change blocks. 
0 lines changed or deleted 7 lines changed or added


 gda-holder.h   gda-holder.h 
skipping to change at line 139 skipping to change at line 139
gboolean gda_holder_take_value (GdaHolder *holder, GValue *value, GError **error); gboolean gda_holder_take_value (GdaHolder *holder, GValue *value, GError **error);
GValue *gda_holder_take_static_value (GdaHolder *holder, const GValue *value, gboolean *value_changed, GError **error); GValue *gda_holder_take_static_value (GdaHolder *holder, const GValue *value, gboolean *value_changed, GError **error);
gboolean gda_holder_set_value_str (GdaHolder *holder, GdaDataHandler *dh, const gchar *value, GError **error); gboolean gda_holder_set_value_str (GdaHolder *holder, GdaDataHandler *dh, const gchar *value, GError **error);
const GValue *gda_holder_get_default_value (GdaHolder *holder); const GValue *gda_holder_get_default_value (GdaHolder *holder);
void gda_holder_set_default_value (GdaHolder *holder, const GValue *value); void gda_holder_set_default_value (GdaHolder *holder, const GValue *value);
gboolean gda_holder_set_value_to_default (GdaHolder *holder); gboolean gda_holder_set_value_to_default (GdaHolder *holder);
gboolean gda_holder_value_is_default (GdaHolder *holder); gboolean gda_holder_value_is_default (GdaHolder *holder);
void gda_holder_force_invalid (GdaHolder *holder); void gda_holder_force_invalid (GdaHolder *holder);
void gda_holder_force_invalid_e (GdaHolder *holder, GError *error);
gboolean gda_holder_is_valid (GdaHolder *holder); gboolean gda_holder_is_valid (GdaHolder *holder);
gboolean gda_holder_is_valid_e (GdaHolder *holder, GError **error);
void gda_holder_set_not_null (GdaHolder *holder, gboolean not_null); void gda_holder_set_not_null (GdaHolder *holder, gboolean not_null);
gboolean gda_holder_get_not_null (GdaHolder *holder); gboolean gda_holder_get_not_null (GdaHolder *holder);
gboolean gda_holder_set_source_model (GdaHolder *holder, GdaDataModel *model, gboolean gda_holder_set_source_model (GdaHolder *holder, GdaDataModel *model,
gint col, GError ** error); gint col, GError ** error);
GdaDataModel *gda_holder_get_source_model (GdaHolder *holder, gint *col); GdaDataModel *gda_holder_get_source_model (GdaHolder *holder, gint *col);
gboolean gda_holder_set_bind (GdaHolder *holder, GdaHolder *bind_to, GError **error); gboolean gda_holder_set_bind (GdaHolder *holder, GdaHolder *bind_to, GError **error);
GdaHolder *gda_holder_get_bind (GdaHolder *holder) ; GdaHolder *gda_holder_get_bind (GdaHolder *holder) ;
 End of changes. 2 change blocks. 
0 lines changed or deleted 2 lines changed or added


 gda-meta-struct.h   gda-meta-struct.h 
skipping to change at line 43 skipping to change at line 43
#define GDA_META_STRUCT_CLASS(klass) G_TYPE_CHECK_CLASS_CAST (klass, gda_m eta_struct_get_type (), GdaMetaStructClass) #define GDA_META_STRUCT_CLASS(klass) G_TYPE_CHECK_CLASS_CAST (klass, gda_m eta_struct_get_type (), GdaMetaStructClass)
#define GDA_IS_META_STRUCT(obj) G_TYPE_CHECK_INSTANCE_TYPE (obj, gda_ meta_struct_get_type ()) #define GDA_IS_META_STRUCT(obj) G_TYPE_CHECK_INSTANCE_TYPE (obj, gda_ meta_struct_get_type ())
/* error reporting */ /* error reporting */
extern GQuark gda_meta_struct_error_quark (void); extern GQuark gda_meta_struct_error_quark (void);
#define GDA_META_STRUCT_ERROR gda_meta_struct_error_quark () #define GDA_META_STRUCT_ERROR gda_meta_struct_error_quark ()
typedef enum { typedef enum {
GDA_META_STRUCT_UNKNOWN_OBJECT_ERROR, GDA_META_STRUCT_UNKNOWN_OBJECT_ERROR,
GDA_META_STRUCT_DUPLICATE_OBJECT_ERROR, GDA_META_STRUCT_DUPLICATE_OBJECT_ERROR,
GDA_META_STRUCT_INCOHERENCE_ERROR GDA_META_STRUCT_INCOHERENCE_ERROR,
GDA_META_STRUCT_XML_ERROR
} GdaMetaStructError; } GdaMetaStructError;
/* struct for the object's data */ /* struct for the object's data */
struct _GdaMetaStruct struct _GdaMetaStruct
{ {
GObject object; GObject object;
GdaMetaStructPrivate *priv; GdaMetaStructPrivate *priv;
}; };
/* struct for the object's class */ /* struct for the object's class */
skipping to change at line 115 skipping to change at line 116
* *
* Types of sorting * Types of sorting
*/ */
typedef enum { typedef enum {
GDA_META_SORT_ALHAPETICAL, GDA_META_SORT_ALHAPETICAL,
GDA_META_SORT_DEPENDENCIES GDA_META_SORT_DEPENDENCIES
} GdaMetaSortType; } GdaMetaSortType;
/** /**
* GdaMetaTable: * GdaMetaTable:
* @columns: list of #GdaMetaTableColumn structures, one for each column in the table * @columns: (element-type Gda.MetaTableColumn): list of #GdaMetaTableColum n structures, one for each column in the table
* @pk_cols_array: index of the columns part of the primary key for the tab le (WARNING: columns numbering * @pk_cols_array: index of the columns part of the primary key for the tab le (WARNING: columns numbering
* here start at 0) * here start at 0)
* @pk_cols_nb: size of the @pk_cols_array array * @pk_cols_nb: size of the @pk_cols_array array
* @reverse_fk_list: list of #GdaMetaTableForeignKey where the referenced t * @reverse_fk_list: (element-type Gda.MetaTableForeignKey): list of #GdaMe
able is this table taTableForeignKey where the referenced table is this table
* @fk_list: list of #GdaMetaTableForeignKey for this table * @fk_list: (element-type Gda.MetaTableForeignKey): list of #GdaMetaTableF
oreignKey for this table
* *
* This structure specifies a #GdaMetaDbObject to represent a table's speci fic attributes, * This structure specifies a #GdaMetaDbObject to represent a table's speci fic attributes,
* its contents must not be modified. * its contents must not be modified.
*
* Note that in some cases, the columns cannot be determined for views, and
in this case the
* @columns will be %NULL (this can be the case for example with SQLite whe
re a view
* uses a function which is not natively provided by SQLite.
*/ */
typedef struct { typedef struct {
/*< public >*/ /*< public >*/
GSList *columns; GSList *columns;
/* PK fields index */ /* PK fields index */
gint *pk_cols_array; gint *pk_cols_array;
gint pk_cols_nb; gint pk_cols_nb;
/* Foreign keys */ /* Foreign keys */
skipping to change at line 179 skipping to change at line 184
* GdaMetaDbObject: * GdaMetaDbObject:
* @extra: union for the actual object's contents, to be able to cast it us ing GDA_META_TABLE(), GDA_META_VIEW() * @extra: union for the actual object's contents, to be able to cast it us ing GDA_META_TABLE(), GDA_META_VIEW()
* @obj_type: the type of object (table, view) * @obj_type: the type of object (table, view)
* @outdated: set to %TRUE if the information in this #GdaMetaDbObject may be outdated because the #GdaMetaStore has been updated * @outdated: set to %TRUE if the information in this #GdaMetaDbObject may be outdated because the #GdaMetaStore has been updated
* @obj_catalog: the catalog the object is in * @obj_catalog: the catalog the object is in
* @obj_schema: the schema the object is in * @obj_schema: the schema the object is in
* @obj_name: the object's name * @obj_name: the object's name
* @obj_short_name: the shortest way to name the object * @obj_short_name: the shortest way to name the object
* @obj_full_name: the full name of the object (in the &lt;schema&gt;.&lt;n ameagt; notation * @obj_full_name: the full name of the object (in the &lt;schema&gt;.&lt;n ameagt; notation
* @obj_owner: object's owner * @obj_owner: object's owner
* @depend_list: list of #GdaMetaDbObject pointers on which this object dep ends (through foreign keys * @depend_list: (element-type Gda.MetaDbObject): list of #GdaMetaDbObject pointers on which this object depends (through foreign keys
* or tables used for views) * or tables used for views)
* *
* Struture to hold information about each database object (tables, views, ...), * Struture to hold information about each database object (tables, views, ...),
* its contents must not be modified. * its contents must not be modified.
* *
* Note: @obj_catalog, @obj_schema, @obj_name, @obj_short_name and @obj_ful l_name respect the * Note: @obj_catalog, @obj_schema, @obj_name, @obj_short_name and @obj_ful l_name respect the
* <link linkend="information_schema:sql_identifiers">SQL identifiers</link > convention used in * <link linkend="information_schema:sql_identifiers">SQL identifiers</link > convention used in
* #GdaMetaStore objects. Before using these SQL identifiers, you should ch eck the * #GdaMetaStore objects. Before using these SQL identifiers, you should ch eck the
* gda_sql_identifier_quote() to know if is it is necessary to surround by double quotes * gda_sql_identifier_quote() to know if is it is necessary to surround by double quotes
* before using in an SQL statement. * before using in an SQL statement.
 End of changes. 5 change blocks. 
6 lines changed or deleted 14 lines changed or added


 gda-pstmt.h   gda-pstmt.h 
skipping to change at line 38 skipping to change at line 38
#define GDA_TYPE_PSTMT (gda_pstmt_get_type()) #define GDA_TYPE_PSTMT (gda_pstmt_get_type())
#define GDA_PSTMT(obj) (G_TYPE_CHECK_INSTANCE_CAST (obj, GDA_TYP E_PSTMT, GdaPStmt)) #define GDA_PSTMT(obj) (G_TYPE_CHECK_INSTANCE_CAST (obj, GDA_TYP E_PSTMT, GdaPStmt))
#define GDA_PSTMT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST (klass, GDA_TYPE _PSTMT, GdaPStmtClass)) #define GDA_PSTMT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST (klass, GDA_TYPE _PSTMT, GdaPStmtClass))
#define GDA_IS_PSTMT(obj) (G_TYPE_CHECK_INSTANCE_TYPE(obj, GDA_TYPE _PSTMT)) #define GDA_IS_PSTMT(obj) (G_TYPE_CHECK_INSTANCE_TYPE(obj, GDA_TYPE _PSTMT))
#define GDA_IS_PSTMT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), GDA_TYP E_PSTMT)) #define GDA_IS_PSTMT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), GDA_TYP E_PSTMT))
typedef struct _GdaPStmt GdaPStmt; typedef struct _GdaPStmt GdaPStmt;
typedef struct _GdaPStmtPrivate GdaPStmtPrivate; typedef struct _GdaPStmtPrivate GdaPStmtPrivate;
typedef struct _GdaPStmtClass GdaPStmtClass; typedef struct _GdaPStmtClass GdaPStmtClass;
/**
* GdaPStmt:
* @sql: actual SQL code used for this prepared statement, mem freed by Gda
PStmt
* @param_ids: (element-type string): list of parameters' IDs (as gchar *),
mem freed by GdaPStmt
* @ncols: number of types in array
* @types: (array length=ncols) (element-type GLib.Type): array of ncols ty
pes
* @tmpl_columns: (element-type Gda.Colum): list of #GdaColumn objects whic
h data models created from this prep. statement can copy
*
*/
struct _GdaPStmt { struct _GdaPStmt {
GObject object; GObject object;
GdaPStmtPrivate *priv; GdaPStmtPrivate *priv;
gchar *sql; /* actual SQL code used for this prepared stateme nt, mem freed by GdaPStmt */ gchar *sql; /* actual SQL code used for this prepared stateme nt, mem freed by GdaPStmt */
GSList *param_ids; /* list of parameters' IDs (as gchar *), m em freed by GdaPStmt */ GSList *param_ids; /* list of parameters' IDs (as gchar *), m em freed by GdaPStmt */
/* meta data */ /* meta data */
gint ncols; gint ncols;
GType *types; /* array of ncols types */ GType *types; /* array of ncols types */
 End of changes. 1 change blocks. 
0 lines changed or deleted 13 lines changed or added


 gda-quark-list.h   gda-quark-list.h 
skipping to change at line 43 skipping to change at line 43
#define GDA_TYPE_QUARK_LIST (gda_quark_list_get_type()) #define GDA_TYPE_QUARK_LIST (gda_quark_list_get_type())
/** /**
* SECTION:gda-quark-list * SECTION:gda-quark-list
* @short_description: Manages lists of KEY=VALUE pairs * @short_description: Manages lists of KEY=VALUE pairs
* @title: Quark list * @title: Quark list
* @stability: Stable * @stability: Stable
* @see_also: * @see_also:
* *
* This object is used mainly by database provider's implementation to pars e connection * This object is used mainly by database providers' implementations to par se connection
* strings into lists of KEY=VALUE pairs. * strings into lists of KEY=VALUE pairs.
*/ */
GType gda_quark_list_get_type (void) G_GNUC_CONST; GType gda_quark_list_get_type (void) G_GNUC_CONST;
GdaQuarkList *gda_quark_list_new (void); GdaQuarkList *gda_quark_list_new (void);
GdaQuarkList *gda_quark_list_new_from_string (const gchar *string); GdaQuarkList *gda_quark_list_new_from_string (const gchar *string);
GdaQuarkList *gda_quark_list_copy (GdaQuarkList *qlist); GdaQuarkList *gda_quark_list_copy (GdaQuarkList *qlist);
void gda_quark_list_free (GdaQuarkList *qlist); void gda_quark_list_free (GdaQuarkList *qlist);
void gda_quark_list_add_from_string (GdaQuarkList *qlist, void gda_quark_list_add_from_string (GdaQuarkList *qlist,
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added


 gda-row.h   gda-row.h 
skipping to change at line 83 skipping to change at line 83
*/ */
GType gda_row_get_type (void) G_GNUC_CONST; GType gda_row_get_type (void) G_GNUC_CONST;
GdaRow *gda_row_new (gint count); GdaRow *gda_row_new (gint count);
gint gda_row_get_length (GdaRow *row); gint gda_row_get_length (GdaRow *row);
GValue *gda_row_get_value (GdaRow *row, gint num); GValue *gda_row_get_value (GdaRow *row, gint num);
/* for database providers mainly */ /* for database providers mainly */
void gda_row_invalidate_value (GdaRow *row, GValue *value); void gda_row_invalidate_value (GdaRow *row, GValue *value);
void gda_row_invalidate_value_e (GdaRow *row, GValue *value, GErro r *error);
gboolean gda_row_value_is_valid (GdaRow *row, GValue *value); gboolean gda_row_value_is_valid (GdaRow *row, GValue *value);
gboolean gda_row_value_is_valid_e (GdaRow *row, GValue *value, GError **error);
G_END_DECLS G_END_DECLS
#endif #endif
 End of changes. 2 change blocks. 
0 lines changed or deleted 2 lines changed or added


 gda-server-operation.h   gda-server-operation.h 
skipping to change at line 75 skipping to change at line 75
GDA_SERVER_OPERATION_LAST GDA_SERVER_OPERATION_LAST
} GdaServerOperationType; } GdaServerOperationType;
/* error reporting */ /* error reporting */
extern GQuark gda_server_operation_error_quark (void); extern GQuark gda_server_operation_error_quark (void);
#define GDA_SERVER_OPERATION_ERROR gda_server_operation_error_quark () #define GDA_SERVER_OPERATION_ERROR gda_server_operation_error_quark ()
typedef enum { typedef enum {
GDA_SERVER_OPERATION_OBJECT_NAME_ERROR, GDA_SERVER_OPERATION_OBJECT_NAME_ERROR,
GDA_SERVER_OPERATION_INCORRECT_VALUE_ERROR GDA_SERVER_OPERATION_INCORRECT_VALUE_ERROR,
GDA_SERVER_OPERATION_XML_ERROR
} GdaServerOperationError; } GdaServerOperationError;
typedef enum typedef enum
{ {
GDA_SERVER_OPERATION_CREATE_TABLE_NOTHING_FLAG = 1 << 0, GDA_SERVER_OPERATION_CREATE_TABLE_NOTHING_FLAG = 1 << 0,
GDA_SERVER_OPERATION_CREATE_TABLE_PKEY_FLAG = 1 << 1, GDA_SERVER_OPERATION_CREATE_TABLE_PKEY_FLAG = 1 << 1,
GDA_SERVER_OPERATION_CREATE_TABLE_NOT_NULL_FLAG = 1 << 2, GDA_SERVER_OPERATION_CREATE_TABLE_NOT_NULL_FLAG = 1 << 2,
GDA_SERVER_OPERATION_CREATE_TABLE_UNIQUE_FLAG = 1 << 3, GDA_SERVER_OPERATION_CREATE_TABLE_UNIQUE_FLAG = 1 << 3,
GDA_SERVER_OPERATION_CREATE_TABLE_AUTOINC_FLAG = 1 << 4, GDA_SERVER_OPERATION_CREATE_TABLE_AUTOINC_FLAG = 1 << 4,
GDA_SERVER_OPERATION_CREATE_TABLE_FKEY_FLAG = 1 << 5, GDA_SERVER_OPERATION_CREATE_TABLE_FKEY_FLAG = 1 << 5,
 End of changes. 1 change blocks. 
1 lines changed or deleted 2 lines changed or added


 gda-server-provider.h   gda-server-provider.h 
skipping to change at line 62 skipping to change at line 62
GDA_SERVER_PROVIDER_PREPARE_STMT_ERROR, GDA_SERVER_PROVIDER_PREPARE_STMT_ERROR,
GDA_SERVER_PROVIDER_EMPTY_STMT_ERROR, GDA_SERVER_PROVIDER_EMPTY_STMT_ERROR,
GDA_SERVER_PROVIDER_MISSING_PARAM_ERROR, GDA_SERVER_PROVIDER_MISSING_PARAM_ERROR,
GDA_SERVER_PROVIDER_STATEMENT_EXEC_ERROR, GDA_SERVER_PROVIDER_STATEMENT_EXEC_ERROR,
GDA_SERVER_PROVIDER_OPERATION_ERROR, GDA_SERVER_PROVIDER_OPERATION_ERROR,
GDA_SERVER_PROVIDER_INTERNAL_ERROR, GDA_SERVER_PROVIDER_INTERNAL_ERROR,
GDA_SERVER_PROVIDER_BUSY_ERROR, GDA_SERVER_PROVIDER_BUSY_ERROR,
GDA_SERVER_PROVIDER_NON_SUPPORTED_ERROR, GDA_SERVER_PROVIDER_NON_SUPPORTED_ERROR,
GDA_SERVER_PROVIDER_SERVER_VERSION_ERROR, GDA_SERVER_PROVIDER_SERVER_VERSION_ERROR,
GDA_SERVER_PROVIDER_DATA_ERROR, GDA_SERVER_PROVIDER_DATA_ERROR,
GDA_SERVER_PROVIDER_DEFAULT_VALUE_HANDLING_ERROR GDA_SERVER_PROVIDER_DEFAULT_VALUE_HANDLING_ERROR,
GDA_SERVER_PROVIDER_MISUSE_ERROR,
GDA_SERVER_PROVIDER_FILE_NOT_FOUND_ERROR
} GdaServerProviderError; } GdaServerProviderError;
struct _GdaServerProvider { struct _GdaServerProvider {
GObject object; GObject object;
GdaServerProviderPrivate *priv; GdaServerProviderPrivate *priv;
}; };
/** /**
* GdaServerProviderMeta: * GdaServerProviderMeta:
* @_info: * @_info:
skipping to change at line 358 skipping to change at line 360
const gchar *name, GError **error); const gchar *name, GError **error);
gboolean (* add_savepoint) (GdaServerProvider *provider, GdaConnection *cnc, gboolean (* add_savepoint) (GdaServerProvider *provider, GdaConnection *cnc,
const gchar *name, GError **error); const gchar *name, GError **error);
gboolean (* rollback_savepoint) (GdaServerProvider *provider, GdaConnection *cnc, gboolean (* rollback_savepoint) (GdaServerProvider *provider, GdaConnection *cnc,
const gchar *name, GError **error); const gchar *name, GError **error);
gboolean (* delete_savepoint) (GdaServerProvider *provider, GdaConnection *cnc, gboolean (* delete_savepoint) (GdaServerProvider *provider, GdaConnection *cnc,
const gchar *name, GError **error); const gchar *name, GError **error);
/* GdaStatement */ /* GdaStatement */
GdaSqlParser *(* create_parser) (GdaServerProvider *provider, GdaConnection *cnc); GdaSqlParser *(* create_parser) (GdaServerProvider *provider, GdaConnection *cnc);
/**
* statement_to_sql:
* @cnc: a #GdaConnection object
* @stmt: a #GdaStatement object
* @params: (allow-none): a #GdaSet object (which can be obtained us
ing gda_statement_get_parameters()), or %NULL
* @flags: SQL rendering flags, as #GdaStatementSqlFlag OR'ed values
* @params_used: (allow-none) (element-type Gda.Holder) (out) (trans
fer container): a place to store the list of individual #GdaHolder objects
within @params which have been used
* @error: a place to store errors, or %NULL
*
* Renders @stmt as an SQL statement, adapted to the SQL dialect use
d by @cnc
*
* Returns: a new string, or %NULL if an error occurred
*/
gchar *(* statement_to_sql) (GdaServerProvider *provider, GdaConnection *cnc, gchar *(* statement_to_sql) (GdaServerProvider *provider, GdaConnection *cnc,
GdaStatement *stmt , GdaSet *params, GdaStatementSqlFlag flags, GdaStatement *stmt , GdaSet *params, GdaStatementSqlFlag flags,
GSList **params_us ed, GError **error); GSList **params_us ed, GError **error);
gboolean (* statement_prepare) (GdaServerProvider *provider, GdaConnection *cnc, gboolean (* statement_prepare) (GdaServerProvider *provider, GdaConnection *cnc,
GdaStatement *stmt , GError **error); GdaStatement *stmt , GError **error);
GObject *(* statement_execute) (GdaServerProvider *provider, GdaConnection *cnc, GObject *(* statement_execute) (GdaServerProvider *provider, GdaConnection *cnc,
GdaStatement *stmt , GdaSet *params, GdaStatement *stmt , GdaSet *params,
GdaStatementModelU sage model_usage, GdaStatementModelU sage model_usage,
GType *col_types, GdaSet **last_inserted_row, GType *col_types, GdaSet **last_inserted_row,
guint *task_id, Gd aServerProviderExecCallback exec_cb, guint *task_id, Gd aServerProviderExecCallback exec_cb,
 End of changes. 2 change blocks. 
1 lines changed or deleted 21 lines changed or added


 gda-set.h   gda-set.h 
skipping to change at line 42 skipping to change at line 42
/* error reporting */ /* error reporting */
extern GQuark gda_set_error_quark (void); extern GQuark gda_set_error_quark (void);
#define GDA_SET_ERROR gda_set_error_quark () #define GDA_SET_ERROR gda_set_error_quark ()
typedef enum typedef enum
{ {
GDA_SET_XML_SPEC_ERROR, GDA_SET_XML_SPEC_ERROR,
GDA_SET_HOLDER_NOT_FOUND_ERROR, GDA_SET_HOLDER_NOT_FOUND_ERROR,
GDA_SET_INVALID_ERROR, GDA_SET_INVALID_ERROR,
GDA_SET_READ_ONLY_ERROR GDA_SET_READ_ONLY_ERROR,
GDA_SET_IMPLEMENTATION_ERROR
} GdaSetError; } GdaSetError;
struct _GdaSetNode { struct _GdaSetNode {
GdaHolder *holder; /* Can't be NULL */ GdaHolder *holder; /* Can't be NULL */
GdaDataModel *source_model; /* may be NULL */ GdaDataModel *source_model; /* may be NULL */
gint source_column; /* unused if @source_model is NULL */ gint source_column; /* unused if @source_model is NULL */
/*< private >*/ /*< private >*/
/* Padding for future expansion */ /* Padding for future expansion */
gpointer _gda_reserved1; gpointer _gda_reserved1;
gpointer _gda_reserved2; gpointer _gda_reserved2;
}; };
/**
* GdaSetGroup:
* @nodes: (element-type Gda.SetNode): list of GdaSetNode, at least one ent
ry
* @nodes_source: (allow-none): if NULL, then @nodes contains exactly one
entry
*/
struct _GdaSetGroup { struct _GdaSetGroup {
GSList *nodes; /* list of GdaSetNode, at least one entry */ GSList *nodes; /* list of GdaSetNode, at least one entry */
GdaSetSource *nodes_source; /* if NULL, then @nodes contains exactly one entry */ GdaSetSource *nodes_source; /* if NULL, then @nodes contains exactly one entry */
/*< private >*/ /*< private >*/
/* Padding for future expansion */ /* Padding for future expansion */
gpointer _gda_reserved1; gpointer _gda_reserved1;
gpointer _gda_reserved2; gpointer _gda_reserved2;
}; };
/**
* GdaSetSource:
* @data_model: Can't be NULL
* @nodes: (element-type Gda.SetNode): list of #GdaSetNode for which source
_model == @data_model
*
**/
struct _GdaSetSource { struct _GdaSetSource {
GdaDataModel *data_model; /* Can't be NULL */ GdaDataModel *data_model; /* Can't be NULL */
GSList *nodes; /* list of #GdaSetNode for which sourc e_model == @data_model */ GSList *nodes; /* list of #GdaSetNode for which sourc e_model == @data_model */
/*< private >*/ /*< private >*/
/* Padding for future expansion */ /* Padding for future expansion */
gpointer _gda_reserved1; gpointer _gda_reserved1;
gpointer _gda_reserved2; gpointer _gda_reserved2;
gpointer _gda_reserved3; gpointer _gda_reserved3;
gpointer _gda_reserved4; gpointer _gda_reserved4;
}; };
#define GDA_SET_NODE(x) ((GdaSetNode *)(x)) #define GDA_SET_NODE(x) ((GdaSetNode *)(x))
#define GDA_SET_SOURCE(x) ((GdaSetSource *)(x)) #define GDA_SET_SOURCE(x) ((GdaSetSource *)(x))
#define GDA_SET_GROUP(x) ((GdaSetGroup *)(x)) #define GDA_SET_GROUP(x) ((GdaSetGroup *)(x))
/* struct for the object's data */ /* struct for the object's data */
/**
* GdaSet:
* @holders: (element-type Gda.Holder): list of GdaHolder objects
* @nodes_list: (element-type Gda.SetNode): list of GdaSetNode
* @sources_list: (element-type Gda.SetSource): list of GdaSetSource
* @groups_list: (element-type Gda.SetGroup): list of GdaSetGroup
*
*/
struct _GdaSet struct _GdaSet
{ {
GObject object; GObject object;
GdaSetPrivate *priv; GdaSetPrivate *priv;
/*< public >*/ /*< public >*/
GSList *holders; /* list of GdaHolder objects */ GSList *holders; /* list of GdaHolder objects */
GSList *nodes_list; /* list of GdaSetNode */ GSList *nodes_list; /* list of GdaSetNode */
GSList *sources_list; /* list of GdaSetSource */ GSList *sources_list; /* list of GdaSetSource */
GSList *groups_list; /* list of GdaSetGroup */ GSList *groups_list; /* list of GdaSetGroup */
 End of changes. 4 change blocks. 
1 lines changed or deleted 25 lines changed or added


 gda-sql-builder.h   gda-sql-builder.h 
/* /*
* Copyright (C) 2009 - 2010 Murray Cumming <murrayc@murrayc.com> * Copyright (C) 2009 - 2010 Murray Cumming <murrayc@murrayc.com>
* Copyright (C) 2009 - 2011 Vivien Malerba <malerba@gnome-db.org> * Copyright (C) 2009 - 2011 Vivien Malerba <malerba@gnome-db.org>
* Copyright (C) 2010 Jonh Wendell <jwendell@gnome.org> * Copyright (C) 2010 Jonh Wendell <jwendell@gnome.org>
* Copyright (C) 2011 Daniel Espinosa <despinosa@src.gnome.org>
* *
* This library is free software; you can redistribute it and/or * This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public * modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either * License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version. * version 2 of the License, or (at your option) any later version.
* *
* This library is distributed in the hope that it will be useful, * This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details. * Lesser General Public License for more details.
skipping to change at line 113 skipping to change at line 114
* *
* For more examples, see the <link linkend="howto-sqlbuilder">Build statem ents without using a parser</link> section. * For more examples, see the <link linkend="howto-sqlbuilder">Build statem ents without using a parser</link> section.
*/ */
GType gda_sql_builder_get_type (void) G_GNUC_CONST; GType gda_sql_builder_get_type (void) G_GNUC_CONST;
GdaSqlBuilder *gda_sql_builder_new (GdaSqlStatementType stmt_ type); GdaSqlBuilder *gda_sql_builder_new (GdaSqlStatementType stmt_ type);
GdaStatement *gda_sql_builder_get_statement (GdaSqlBuilder *builder, GE rror **error); GdaStatement *gda_sql_builder_get_statement (GdaSqlBuilder *builder, GE rror **error);
GdaSqlStatement *gda_sql_builder_get_sql_statement (GdaSqlBuilder *builder ); GdaSqlStatement *gda_sql_builder_get_sql_statement (GdaSqlBuilder *builder );
/* Expression API */ /* Expression API */
GdaSqlBuilderId gda_sql_builder_add_id (GdaSqlBuilder *builder, const gchar *string); GdaSqlBuilderId gda_sql_builder_add_id (GdaSqlBuilder *builder, const gchar *str);
GdaSqlBuilderId gda_sql_builder_add_field_id (GdaSqlBuilder *builder, const gchar *field_name, const gchar *table_name); GdaSqlBuilderId gda_sql_builder_add_field_id (GdaSqlBuilder *builder, const gchar *field_name, const gchar *table_name);
GdaSqlBuilderId gda_sql_builder_add_expr (GdaSqlBuilder *builder, GdaDataHa ndler *dh, GType type, ...); GdaSqlBuilderId gda_sql_builder_add_expr (GdaSqlBuilder *builder, GdaDataHa ndler *dh, GType type, ...);
GdaSqlBuilderId gda_sql_builder_add_expr_value (GdaSqlBuilder *builder, Gda DataHandler *dh, const GValue *value); GdaSqlBuilderId gda_sql_builder_add_expr_value (GdaSqlBuilder *builder, Gda DataHandler *dh, const GValue *value);
GdaSqlBuilderId gda_sql_builder_add_param (GdaSqlBuilder *builder, const gc har *param_name, GType type, gboolean nullok); GdaSqlBuilderId gda_sql_builder_add_param (GdaSqlBuilder *builder, const gc har *param_name, GType type, gboolean nullok);
GdaSqlBuilderId gda_sql_builder_add_cond (GdaSqlBuilder *builder, GdaSqlOpe ratorType op, GdaSqlBuilderId gda_sql_builder_add_cond (GdaSqlBuilder *builder, GdaSqlOpe ratorType op,
GdaSqlBuilderId op1, GdaSqlBuild erId op2, GdaSqlBuilderId op3); GdaSqlBuilderId op1, GdaSqlBuild erId op2, GdaSqlBuilderId op3);
GdaSqlBuilderId gda_sql_builder_add_cond_v (GdaSqlBuilder *builder, GdaSqlO peratorType op, GdaSqlBuilderId gda_sql_builder_add_cond_v (GdaSqlBuilder *builder, GdaSqlO peratorType op,
const GdaSqlBuilderId *op_ids, gint op_ids_size); const GdaSqlBuilderId *op_ids, gint op_ids_size);
GdaSqlBuilderId gda_sql_builder_add_function (GdaSqlBuilder *builder, const gchar *func_name, ...); GdaSqlBuilderId gda_sql_builder_add_function (GdaSqlBuilder *builder, const gchar *func_name, ...);
skipping to change at line 163 skipping to change at line 164
gboolean distinct, Gd aSqlBuilderId expr_id); gboolean distinct, Gd aSqlBuilderId expr_id);
void gda_sql_builder_select_set_limit (GdaSqlBuilder *builder, void gda_sql_builder_select_set_limit (GdaSqlBuilder *builder,
GdaSqlBuilderId limit_co unt_expr_id, GdaSqlBuilderId limit_offset_expr_id); GdaSqlBuilderId limit_co unt_expr_id, GdaSqlBuilderId limit_offset_expr_id);
void gda_sql_builder_select_set_having (GdaSqlBuilder *builder , GdaSqlBuilderId cond_id); void gda_sql_builder_select_set_having (GdaSqlBuilder *builder , GdaSqlBuilderId cond_id);
void gda_sql_builder_select_group_by (GdaSqlBuilder *builder, GdaSqlBuilderId expr_id); void gda_sql_builder_select_group_by (GdaSqlBuilder *builder, GdaSqlBuilderId expr_id);
/* COMPOUND SELECT Statement API */ /* COMPOUND SELECT Statement API */
void gda_sql_builder_compound_set_type (GdaSqlBuilder *builder , GdaSqlStatementCompoundType compound_type); void gda_sql_builder_compound_set_type (GdaSqlBuilder *builder , GdaSqlStatementCompoundType compound_type);
void gda_sql_builder_compound_add_sub_select (GdaSqlBuilder *b uilder, GdaSqlStatement *sqlst); void gda_sql_builder_compound_add_sub_select (GdaSqlBuilder *b uilder, GdaSqlStatement *sqlst);
void gda_sql_builder_compound_add_sub_select_from_builder (Gda SqlBuilder *builder, GdaSqlBuilder *subselect);
/* import/Export API */ /* import/Export API */
GdaSqlExpr *gda_sql_builder_export_expression (GdaSqlBuilder *builder , GdaSqlBuilderId id); GdaSqlExpr *gda_sql_builder_export_expression (GdaSqlBuilder *builder , GdaSqlBuilderId id);
GdaSqlBuilderId gda_sql_builder_import_expression (GdaSqlBuilder *builder, GdaSqlExpr *expr); GdaSqlBuilderId gda_sql_builder_import_expression (GdaSqlBuilder *builder, GdaSqlExpr *expr);
GdaSqlBuilderId gda_sql_builder_import_expression_from_builder (GdaSqlBuild er *builder, GdaSqlBuilder *query, GdaSqlBuilderId expr_id);
G_END_DECLS G_END_DECLS
#endif #endif
 End of changes. 4 change blocks. 
1 lines changed or deleted 4 lines changed or added


 gda-sql-statement.h   gda-sql-statement.h 
skipping to change at line 31 skipping to change at line 31
* Boston, MA 02110-1301, USA. * Boston, MA 02110-1301, USA.
*/ */
#ifndef __GDA_SQL_STATEMENT_H__ #ifndef __GDA_SQL_STATEMENT_H__
#define __GDA_SQL_STATEMENT_H__ #define __GDA_SQL_STATEMENT_H__
G_BEGIN_DECLS G_BEGIN_DECLS
/** /**
* SECTION:gda-sql-statement * SECTION:gda-sql-statement
* @short_description: SQL parser * @short_description: SQL statement
* @title: GdaSqlParser * @title: GdaSqlStatement
* @stability: Stable * @stability: Stable
* @see_also: The #GdaSqlBuilder object which features some easy to use API to build #GdaSqlStatement structures or #GdaStatement objects without havi ng to worry about the details of #GdaSqlStatement's contents. * @see_also: The #GdaSqlBuilder object which features some easy to use API to build #GdaSqlStatement structures or #GdaStatement objects without havi ng to worry about the details of #GdaSqlStatement's contents.
* *
* Please note that it is not advised to build #GdaSqlStatement structures * Use the #GdaSqlBuilder object to build #GdaSqlStatement structures.
directly, but rather
* it is recommended to use the #GdaSqlBuilder object and its associated AP
I.
* *
* Every SQL statement can be decomposed in a #GdaSqlStatement structure. T his is not a #GObject, but rather just a C structure * Every SQL statement can be decomposed in a #GdaSqlStatement structure. T his is not a #GObject, but rather just a C structure
* which can be manipulated directly. The structure is a tree composed of s everal key structures which are show in the following diagram * which can be manipulated directly. The structure is a tree composed of s everal key structures which are show in the following diagram
* (even though it does not show, all structures "inherit" the #GdaSqlAnyPa rt structure which holds some basic information). * (even though it does not show, all structures "inherit" the #GdaSqlAnyPa rt structure which holds some basic information).
*<mediaobject> *<mediaobject>
* <imageobject role="html"> * <imageobject role="html">
* <imagedata fileref="parts.png" format="PNG"/> * <imagedata fileref="parts.png" format="PNG"/>
* </imageobject> * </imageobject>
* <caption> * <caption>
* <para> * <para>
 End of changes. 2 change blocks. 
6 lines changed or deleted 3 lines changed or added


 gda-statement-extra.h   gda-statement-extra.h 
skipping to change at line 30 skipping to change at line 30
#ifndef __GDA_STATEMENT_EXTRA__ #ifndef __GDA_STATEMENT_EXTRA__
#define __GDA_STATEMENT_EXTRA__ #define __GDA_STATEMENT_EXTRA__
#include <sql-parser/gda-sql-statement.h> #include <sql-parser/gda-sql-statement.h>
G_BEGIN_DECLS G_BEGIN_DECLS
/* private information to implement custom /* private information to implement custom
* SQL renderers for GdaStatement objects * SQL renderers for GdaStatement objects
*/ */
/**
* GdaSqlRenderingContext:
* @flags:
* @params:
* @params_used: (element-type Gda.Holder):
* @provider: (allow-none):
* @cnc: (allow-none):
*
* Specifies the context in which a #GdaSqlStatement is being converted to
SQL.
*/
typedef struct _GdaSqlRenderingContext GdaSqlRenderingContext; typedef struct _GdaSqlRenderingContext GdaSqlRenderingContext;
/** /**
* GdaSqlRenderingFunc: * GdaSqlRenderingFunc:
* @node: a #GdaSqlAnyPart pointer, to be cast to the correct type dependin g on which part the function has to render * @node: a #GdaSqlAnyPart pointer, to be cast to the correct type dependin g on which part the function has to render
* @context: the rendering context * @context: the rendering context
* @error: a place to store errors, or %NULL * @error: a place to store errors, or %NULL
* @Returns: a new string, or %NULL if an error occurred * @Returns: a new string, or %NULL if an error occurred
* *
* Function to render any #GdaSqlAnyPart. * Function to render any #GdaSqlAnyPart.
 End of changes. 1 change blocks. 
0 lines changed or deleted 11 lines changed or added


 gda-statement-struct-compound.h   gda-statement-struct-compound.h 
skipping to change at line 56 skipping to change at line 56
GDA_SQL_STATEMENT_COMPOUND_INTERSECT, GDA_SQL_STATEMENT_COMPOUND_INTERSECT,
GDA_SQL_STATEMENT_COMPOUND_INTERSECT_ALL, GDA_SQL_STATEMENT_COMPOUND_INTERSECT_ALL,
GDA_SQL_STATEMENT_COMPOUND_EXCEPT, GDA_SQL_STATEMENT_COMPOUND_EXCEPT,
GDA_SQL_STATEMENT_COMPOUND_EXCEPT_ALL GDA_SQL_STATEMENT_COMPOUND_EXCEPT_ALL
} GdaSqlStatementCompoundType; } GdaSqlStatementCompoundType;
/* /*
* Structure definition * Structure definition
*/ */
/** /**
* GdaSqlStatementCompound: * GdaSqlStatementCompound: (skip)
* @any: * @any:
* @compound_type: * @compound_type:
* @stmt_list: * @stmt_list:
*/ */
struct _GdaSqlStatementCompound { struct _GdaSqlStatementCompound {
GdaSqlAnyPart any; GdaSqlAnyPart any;
GdaSqlStatementCompoundType compound_type; GdaSqlStatementCompoundType compound_type;
GSList *stmt_list; /* list of SELECT or COMPOUN D statements */ GSList *stmt_list; /* list of SELECT or COMPOUN D statements */
/*< private >*/ /*< private >*/
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added


 gda-statement-struct-decl.h   gda-statement-struct-decl.h 
skipping to change at line 35 skipping to change at line 35
#include <glib-object.h> #include <glib-object.h>
#include <libgda/gda-decl.h> #include <libgda/gda-decl.h>
#include <libgda/gda-meta-store.h> #include <libgda/gda-meta-store.h>
#include <libgda/gda-meta-struct.h> #include <libgda/gda-meta-struct.h>
G_BEGIN_DECLS G_BEGIN_DECLS
/* error reporting */ /* error reporting */
extern GQuark gda_sql_error_quark (void); extern GQuark gda_sql_error_quark (void);
#define GDA_SQL_ERROR gda_sql_error_quark () #define GDA_SQL_ERROR gda_sql_error_quark ()
/*
* GdaSqlError: (skip)
*
**/
typedef enum { typedef enum {
GDA_SQL_STRUCTURE_CONTENTS_ERROR, GDA_SQL_STRUCTURE_CONTENTS_ERROR,
GDA_SQL_MALFORMED_IDENTIFIER_ERROR, GDA_SQL_MALFORMED_IDENTIFIER_ERROR,
GDA_SQL_MISSING_IDENTIFIER_ERROR, GDA_SQL_MISSING_IDENTIFIER_ERROR,
GDA_SQL_VALIDATION_ERROR GDA_SQL_VALIDATION_ERROR
} GdaSqlError; } GdaSqlError;
/*
* GdaSqlErrorType: (skip)
*
**/
typedef GdaSqlError GdaSqlErrorType; typedef GdaSqlError GdaSqlErrorType;
/* /*
* Struct declarations * Struct declarations
*/ */
/*
* GdaSqlAnyPart: (skip)
*
**/
typedef struct _GdaSqlAnyPart GdaSqlAnyPart; typedef struct _GdaSqlAnyPart GdaSqlAnyPart;
/*
* GdaSqlStatement: (skip)
*
**/
typedef struct _GdaSqlStatement GdaSqlStatement; typedef struct _GdaSqlStatement GdaSqlStatement;
/*
* GdaSqlStatementUnknown: (skip)
*
**/
typedef struct _GdaSqlStatementUnknown GdaSqlStatementUnknown; typedef struct _GdaSqlStatementUnknown GdaSqlStatementUnknown;
/*
* GdaSqlStatementTransaction: (skip)
*
**/
typedef struct _GdaSqlStatementTransaction GdaSqlStatementTransaction; typedef struct _GdaSqlStatementTransaction GdaSqlStatementTransaction;
/*
* GdaSqlStatementSelect: (skip)
*
**/
typedef struct _GdaSqlStatementSelect GdaSqlStatementSelect; typedef struct _GdaSqlStatementSelect GdaSqlStatementSelect;
/*
* GdaSqlStatementInsert: (skip)
*
**/
typedef struct _GdaSqlStatementInsert GdaSqlStatementInsert; typedef struct _GdaSqlStatementInsert GdaSqlStatementInsert;
/*
* GdaSqlStatementDelete: (skip)
*
**/
typedef struct _GdaSqlStatementDelete GdaSqlStatementDelete; typedef struct _GdaSqlStatementDelete GdaSqlStatementDelete;
/*
* GdaSqlStatementUpdate: (skip)
*
**/
typedef struct _GdaSqlStatementUpdate GdaSqlStatementUpdate; typedef struct _GdaSqlStatementUpdate GdaSqlStatementUpdate;
/*
* GdaSqlStatementCompound: (skip)
*
**/
typedef struct _GdaSqlStatementCompound GdaSqlStatementCompound; typedef struct _GdaSqlStatementCompound GdaSqlStatementCompound;
/* /*
* Statement type * Statement type
*/ */
/** /**
* GdaSqlStatementType: * GdaSqlStatementType:
* @GDA_SQL_STATEMENT_SELECT: a SELECT statement * @GDA_SQL_STATEMENT_SELECT: a SELECT statement
* @GDA_SQL_STATEMENT_INSERT: an INSERT statement * @GDA_SQL_STATEMENT_INSERT: an INSERT statement
* @GDA_SQL_STATEMENT_UPDATE: an UPDATE statement * @GDA_SQL_STATEMENT_UPDATE: an UPDATE statement
skipping to change at line 101 skipping to change at line 144
GDA_SQL_STATEMENT_DELETE_SAVEPOINT, GDA_SQL_STATEMENT_DELETE_SAVEPOINT,
GDA_SQL_STATEMENT_UNKNOWN, GDA_SQL_STATEMENT_UNKNOWN,
GDA_SQL_STATEMENT_NONE GDA_SQL_STATEMENT_NONE
} GdaSqlStatementType; } GdaSqlStatementType;
/* /*
* Structures identification * Structures identification
*/ */
/** /**
* GdaSqlAnyPartType: * GdaSqlAnyPartType: (skip)
* @GDA_SQL_ANY_STMT_SELECT: structure is a #GdaSqlStatementSelect * @GDA_SQL_ANY_STMT_SELECT: structure is a #GdaSqlStatementSelect
* @GDA_SQL_ANY_STMT_INSERT: structure is a #GdaSqlStatementInsert * @GDA_SQL_ANY_STMT_INSERT: structure is a #GdaSqlStatementInsert
* @GDA_SQL_ANY_STMT_UPDATE: structure is a #GdaSqlStatementUpdate * @GDA_SQL_ANY_STMT_UPDATE: structure is a #GdaSqlStatementUpdate
* @GDA_SQL_ANY_STMT_DELETE: structure is a #GdaSqlStatementDelete * @GDA_SQL_ANY_STMT_DELETE: structure is a #GdaSqlStatementDelete
* @GDA_SQL_ANY_STMT_COMPOUND: structure is a #GdaSqlStatementCompound * @GDA_SQL_ANY_STMT_COMPOUND: structure is a #GdaSqlStatementCompound
* @GDA_SQL_ANY_STMT_BEGIN: structure is a #GdaSqlStatementTransaction * @GDA_SQL_ANY_STMT_BEGIN: structure is a #GdaSqlStatementTransaction
* @GDA_SQL_ANY_STMT_ROLLBACK: structure is a #GdaSqlStatementTransaction * @GDA_SQL_ANY_STMT_ROLLBACK: structure is a #GdaSqlStatementTransaction
* @GDA_SQL_ANY_STMT_COMMIT: structure is a #GdaSqlStatementTransaction * @GDA_SQL_ANY_STMT_COMMIT: structure is a #GdaSqlStatementTransaction
* @GDA_SQL_ANY_STMT_SAVEPOINT: structure is a #GdaSqlStatementTransaction * @GDA_SQL_ANY_STMT_SAVEPOINT: structure is a #GdaSqlStatementTransaction
* @GDA_SQL_ANY_STMT_ROLLBACK_SAVEPOINT: structure is a #GdaSqlStatementTra nsaction * @GDA_SQL_ANY_STMT_ROLLBACK_SAVEPOINT: structure is a #GdaSqlStatementTra nsaction
skipping to change at line 158 skipping to change at line 201
GDA_SQL_ANY_SQL_OPERATION, GDA_SQL_ANY_SQL_OPERATION,
GDA_SQL_ANY_SQL_CASE, GDA_SQL_ANY_SQL_CASE,
GDA_SQL_ANY_SQL_SELECT_FIELD, GDA_SQL_ANY_SQL_SELECT_FIELD,
GDA_SQL_ANY_SQL_SELECT_TARGET, GDA_SQL_ANY_SQL_SELECT_TARGET,
GDA_SQL_ANY_SQL_SELECT_JOIN, GDA_SQL_ANY_SQL_SELECT_JOIN,
GDA_SQL_ANY_SQL_SELECT_FROM, GDA_SQL_ANY_SQL_SELECT_FROM,
GDA_SQL_ANY_SQL_SELECT_ORDER GDA_SQL_ANY_SQL_SELECT_ORDER
} GdaSqlAnyPartType; } GdaSqlAnyPartType;
/** /**
* GdaSqlAnyPart: * GdaSqlAnyPart: (skip)
* @type: type of structure, as a #GdaSqlAnyPartType enum. * @type: type of structure, as a #GdaSqlAnyPartType enum.
* @parent: pointer to the parent #GdaSqlAnyPart structure * @parent: pointer to the parent #GdaSqlAnyPart structure
* *
* Base structure of which all structures (except #GdaSqlStatement) "inheri t". It identifies, for each structure, * Base structure of which all structures (except #GdaSqlStatement) "inheri t". It identifies, for each structure,
* its type and its parent in the structure hierarchy. * its type and its parent in the structure hierarchy.
*/ */
struct _GdaSqlAnyPart { struct _GdaSqlAnyPart {
GdaSqlAnyPartType type; GdaSqlAnyPartType type;
GdaSqlAnyPart *parent; GdaSqlAnyPart *parent;
}; };
skipping to change at line 180 skipping to change at line 223
#define GDA_SQL_ANY_PART(x) ((GdaSqlAnyPart*)(x)) #define GDA_SQL_ANY_PART(x) ((GdaSqlAnyPart*)(x))
#define gda_sql_any_part_set_parent(a,p) \ #define gda_sql_any_part_set_parent(a,p) \
if (a) GDA_SQL_ANY_PART(a)->parent = GDA_SQL_ANY_PART(p) if (a) GDA_SQL_ANY_PART(a)->parent = GDA_SQL_ANY_PART(p)
/* /*
* Iteration * Iteration
*/ */
/* returns FALSE if a recursive walking should be stopped (mandatory is @er ror is set) */ /* returns FALSE if a recursive walking should be stopped (mandatory is @er ror is set) */
/** /**
* GdaSqlForeachFunc: * GdaSqlForeachFunc: (skip)
* @Param1: the current #GdaSqlAnyPart node * @part: the current #GdaSqlAnyPart node
* @Param2: user data passed to gda_sql_any_part_foreach(). * @data: user data passed to gda_sql_any_part_foreach().
* @Param3: pointer to a place to store errors * @error: pointer to a place to store errors
* @Returns: FALSE if the gda_sql_any_part_foreach() should stop at this po int and fail * @Returns: FALSE if the gda_sql_any_part_foreach() should stop at this po int and fail
* *
* Specifies the type of functions passed to gda_sql_any_part_foreach(). * Specifies the type of functions passed to gda_sql_any_part_foreach().
*/ */
typedef gboolean (*GdaSqlForeachFunc) (GdaSqlAnyPart *, gpointer, GError ** ); typedef gboolean (*GdaSqlForeachFunc) (GdaSqlAnyPart *part, gpointer data, GError **error);
gboolean gda_sql_any_part_foreach (GdaSqlAnyPart *node, GdaSqlForeachFunc f unc, gpointer data, GError **error); gboolean gda_sql_any_part_foreach (GdaSqlAnyPart *node, GdaSqlForeachFunc f unc, gpointer data, GError **error);
/* /*
* Structure validation * Structure validation
*/ */
gboolean gda_sql_any_part_check_structure (GdaSqlAnyPart *node, GError **er ror); gboolean gda_sql_any_part_check_structure (GdaSqlAnyPart *node, GError **er ror);
/* /**
* GdaSqlStatementContentsInfo: (skip)
*
* Contents' infos * Contents' infos
*/ */
typedef struct { typedef struct {
GdaSqlStatementType type; GdaSqlStatementType type;
gchar *name; gchar *name;
gpointer (*construct) (void); gpointer (*construct) (void);
void (*free) (gpointer); void (*free) (gpointer);
gpointer (*copy) (gpointer); gpointer (*copy) (gpointer);
gchar *(*serialize) (gpointer); gchar *(*serialize) (gpointer);
skipping to change at line 220 skipping to change at line 265
GdaSqlForeachFunc check_validity_func; GdaSqlForeachFunc check_validity_func;
/*< private >*/ /*< private >*/
/* Padding for future expansion */ /* Padding for future expansion */
gpointer _gda_reserved1; gpointer _gda_reserved1;
gpointer _gda_reserved2; gpointer _gda_reserved2;
gpointer _gda_reserved3; gpointer _gda_reserved3;
gpointer _gda_reserved4; gpointer _gda_reserved4;
} GdaSqlStatementContentsInfo; } GdaSqlStatementContentsInfo;
/* /**
* GdaSqlStatementCheckValidityData: (skip)
*
* Validation against a dictionary * Validation against a dictionary
*/ */
typedef struct { typedef struct {
GdaConnection *cnc; GdaConnection *cnc;
GdaMetaStore *store; GdaMetaStore *store;
GdaMetaStruct *mstruct; GdaMetaStruct *mstruct;
/*< private >*/ /*< private >*/
/* Padding for future expansion */ /* Padding for future expansion */
gpointer _gda_reserved1; gpointer _gda_reserved1;
 End of changes. 17 change blocks. 
10 lines changed or deleted 57 lines changed or added


 gda-statement-struct-parts.h   gda-statement-struct-parts.h 
skipping to change at line 33 skipping to change at line 33
#define _GDA_STATEMENT_STRUCT_PARTS_H #define _GDA_STATEMENT_STRUCT_PARTS_H
#include <glib.h> #include <glib.h>
#include <glib-object.h> #include <glib-object.h>
#include <sql-parser/gda-statement-struct.h> #include <sql-parser/gda-statement-struct.h>
#include <sql-parser/gda-statement-struct-pspec.h> #include <sql-parser/gda-statement-struct-pspec.h>
#include <sql-parser/gda-statement-struct-decl.h> #include <sql-parser/gda-statement-struct-decl.h>
#include <libgda/gda-meta-struct.h> #include <libgda/gda-meta-struct.h>
G_BEGIN_DECLS G_BEGIN_DECLS
/*
* GdaSqlExpr: (skip)
*
**/
typedef struct _GdaSqlExpr GdaSqlExpr; typedef struct _GdaSqlExpr GdaSqlExpr;
/*
* GdaSqlField: (skip)
*
**/
typedef struct _GdaSqlField GdaSqlField; typedef struct _GdaSqlField GdaSqlField;
/*
* GdaSqlTable: (skip)
*
**/
typedef struct _GdaSqlTable GdaSqlTable; typedef struct _GdaSqlTable GdaSqlTable;
/*
* GdaSqlFunction: (skip)
*
**/
typedef struct _GdaSqlFunction GdaSqlFunction; typedef struct _GdaSqlFunction GdaSqlFunction;
/*
* GdaSqlOperation: (skip)
*
**/
typedef struct _GdaSqlOperation GdaSqlOperation; typedef struct _GdaSqlOperation GdaSqlOperation;
/*
* GdaSqlCase: (skip)
*
**/
typedef struct _GdaSqlCase GdaSqlCase; typedef struct _GdaSqlCase GdaSqlCase;
/*
* GdaSqlSelectField: (skip)
*
**/
typedef struct _GdaSqlSelectField GdaSqlSelectField; typedef struct _GdaSqlSelectField GdaSqlSelectField;
/*
* GdaSqlSelectTarget: (skip)
*
**/
typedef struct _GdaSqlSelectTarget GdaSqlSelectTarget; typedef struct _GdaSqlSelectTarget GdaSqlSelectTarget;
/*
* GdaSqlSelectJoin: (skip)
*
**/
typedef struct _GdaSqlSelectJoin GdaSqlSelectJoin; typedef struct _GdaSqlSelectJoin GdaSqlSelectJoin;
/*
* GdaSqlSelectFrom: (skip)
*
**/
typedef struct _GdaSqlSelectFrom GdaSqlSelectFrom; typedef struct _GdaSqlSelectFrom GdaSqlSelectFrom;
/*
* GdaSqlSelectOrder: (skip)
*
**/
typedef struct _GdaSqlSelectOrder GdaSqlSelectOrder; typedef struct _GdaSqlSelectOrder GdaSqlSelectOrder;
/* /*
* Any Expression * Any Expression
*/ */
/** /**
* GdaSqlExpr: * GdaSqlExpr: (skip)
* @any: inheritance structure * @any: inheritance structure
* @value: (allow-none): a #GValue, or %NULL. Please see specific note abou t this field. * @value: (allow-none): a #GValue, or %NULL. Please see specific note abou t this field.
* @param_spec: (allow-none): a #GdaSqlParamSpec, or %NULL if this is not a variable * @param_spec: (allow-none): a #GdaSqlParamSpec, or %NULL if this is not a variable
* @func: (allow-none): not %NULL if expression is a function or aggregate * @func: (allow-none): not %NULL if expression is a function or aggregate
* @cond: (allow-none): not %NULL if expression is a condition or an operat ion * @cond: (allow-none): not %NULL if expression is a condition or an operat ion
* @select: (allow-none): not %NULL if expression is a sub select statement (#GdaSqlStatementSelect or #GdaSqlStatementCompound) * @select: (allow-none): not %NULL if expression is a sub select statement (#GdaSqlStatementSelect or #GdaSqlStatementCompound)
* @case_s: (allow-none): not %NULL if expression is a CASE WHEN ... expres sion * @case_s: (allow-none): not %NULL if expression is a CASE WHEN ... expres sion
* @cast_as: (allow-none): not %NULL if expression must be cast to another data type * @cast_as: (allow-none): not %NULL if expression must be cast to another data type
* @value_is_ident: Please see specific note about the @value field * @value_is_ident: Please see specific note about the @value field
* *
skipping to change at line 97 skipping to change at line 140
/*< private >*/ /*< private >*/
/* Padding for future expansion */ /* Padding for future expansion */
gpointer _gda_reserved1; gpointer _gda_reserved1;
gpointer _gda_reserved2; gpointer _gda_reserved2;
gpointer _gda_reserved3; gpointer _gda_reserved3;
gpointer _gda_reserved4; gpointer _gda_reserved4;
}; };
#define GDA_TYPE_SQL_EXPR (gda_sql_expr_get_type()) #define GDA_TYPE_SQL_EXPR (gda_sql_expr_get_type())
GType gda_sql_expr_get_type (void) G_GNUC_CONST; GType gda_sql_expr_get_type (void) G_GNUC_CONST;
GdaSqlExpr *gda_sql_expr_new (GdaSqlAnyPart *parent); GdaSqlExpr *gda_sql_expr_new (GdaSqlAnyPart *parent);
void gda_sql_expr_free (GdaSqlExpr *expr); void gda_sql_expr_free (GdaSqlExpr *expr);
GdaSqlExpr *gda_sql_expr_copy (GdaSqlExpr *expr); GdaSqlExpr *gda_sql_expr_copy (GdaSqlExpr *expr);
gchar *gda_sql_expr_serialize (GdaSqlExpr *expr); gchar *gda_sql_expr_serialize (GdaSqlExpr *expr);
void _gda_sql_expr_check_clean (GdaSqlExpr *expr); void _gda_sql_expr_check_clean (GdaSqlExpr *expr);
void gda_sql_expr_take_select (GdaSqlExpr *expr, GdaSqlState ment *stmt); void gda_sql_expr_take_select (GdaSqlExpr *expr, GdaSqlState ment *stmt);
/* /*
* Any Table's field * Any Table's field
*/ */
/** /**
* GdaSqlField: * GdaSqlField: (skip)
* any: * any:
* @field_name: * @field_name:
* @validity_meta_table_column: * @validity_meta_table_column:
* *
* This structure represents the name of a table's field. * This structure represents the name of a table's field.
*/ */
struct _GdaSqlField { struct _GdaSqlField {
GdaSqlAnyPart any; GdaSqlAnyPart any;
gchar *field_name; gchar *field_name;
skipping to change at line 143 skipping to change at line 184
GdaSqlField *gda_sql_field_copy (GdaSqlField *field); GdaSqlField *gda_sql_field_copy (GdaSqlField *field);
gchar *gda_sql_field_serialize (GdaSqlField *field); gchar *gda_sql_field_serialize (GdaSqlField *field);
void _gda_sql_field_check_clean (GdaSqlField *field); void _gda_sql_field_check_clean (GdaSqlField *field);
void gda_sql_field_take_name (GdaSqlField *field, GValue * value); void gda_sql_field_take_name (GdaSqlField *field, GValue * value);
/* /*
* Any table * Any table
*/ */
/** /**
* GdaSqlTable: * GdaSqlTable: (skip)
* @any: * @any:
* @table_name: * @table_name:
* @validity_meta_object: * @validity_meta_object:
* *
* This structure represents the name of a table. * This structure represents the name of a table.
*/ */
struct _GdaSqlTable struct _GdaSqlTable
{ {
GdaSqlAnyPart any; GdaSqlAnyPart any;
gchar *table_name; gchar *table_name;
skipping to change at line 176 skipping to change at line 217
GdaSqlTable *gda_sql_table_copy (GdaSqlTable *table); GdaSqlTable *gda_sql_table_copy (GdaSqlTable *table);
gchar *gda_sql_table_serialize (GdaSqlTable *table); gchar *gda_sql_table_serialize (GdaSqlTable *table);
void _gda_sql_table_check_clean (GdaSqlTable *table); void _gda_sql_table_check_clean (GdaSqlTable *table);
void gda_sql_table_take_name (GdaSqlTable *table, GValue * value); void gda_sql_table_take_name (GdaSqlTable *table, GValue * value);
/* /*
* A function with any number of arguments * A function with any number of arguments
*/ */
/** /**
* GdaSqlFunction: * GdaSqlFunction: (skip)
* @any: inheritance structure * @any: inheritance structure
* @function_name: name of the function , in the form [[catalog.]schema.]fu nction_name * @function_name: name of the function , in the form [[catalog.]schema.]fu nction_name
* @args_list: list of #GdaSqlExpr expressions, one for each argument * @args_list: list of #GdaSqlExpr expressions, one for each argument
* *
* This structure represents a function or an aggregate with zero or more a rguments. * This structure represents a function or an aggregate with zero or more a rguments.
*/ */
struct _GdaSqlFunction { struct _GdaSqlFunction {
GdaSqlAnyPart any; GdaSqlAnyPart any;
gchar *function_name; gchar *function_name;
GSList *args_list; GSList *args_list;
skipping to change at line 277 skipping to change at line 318
GDA_SQL_OPERATOR_TYPE_STAR, GDA_SQL_OPERATOR_TYPE_STAR,
GDA_SQL_OPERATOR_TYPE_DIV, GDA_SQL_OPERATOR_TYPE_DIV,
GDA_SQL_OPERATOR_TYPE_REM, GDA_SQL_OPERATOR_TYPE_REM,
GDA_SQL_OPERATOR_TYPE_BITAND, GDA_SQL_OPERATOR_TYPE_BITAND,
GDA_SQL_OPERATOR_TYPE_BITOR, GDA_SQL_OPERATOR_TYPE_BITOR,
GDA_SQL_OPERATOR_TYPE_BITNOT, GDA_SQL_OPERATOR_TYPE_BITNOT,
GDA_SQL_OPERATOR_TYPE_ILIKE GDA_SQL_OPERATOR_TYPE_ILIKE
} GdaSqlOperatorType; } GdaSqlOperatorType;
/** /**
* GdaSqlOperation: * GdaSqlOperation: (skip)
* @any: inheritance structure * @any: inheritance structure
* @operator_type: * @operator_type:
* @operands: list of #GdaSqlExpr operands * @operands: list of #GdaSqlExpr operands
* *
* This structure represents an operation between one or more operands. * This structure represents an operation between one or more operands.
*/ */
struct _GdaSqlOperation { struct _GdaSqlOperation {
GdaSqlAnyPart any; GdaSqlAnyPart any;
GdaSqlOperatorType operator_type; GdaSqlOperatorType operator_type;
GSList *operands; GSList *operands;
skipping to change at line 306 skipping to change at line 347
void gda_sql_operation_free (GdaSqlOperation *operat ion); void gda_sql_operation_free (GdaSqlOperation *operat ion);
GdaSqlOperation *gda_sql_operation_copy (GdaSqlOperation *operat ion); GdaSqlOperation *gda_sql_operation_copy (GdaSqlOperation *operat ion);
gchar *gda_sql_operation_serialize (GdaSqlOperation *operat ion); gchar *gda_sql_operation_serialize (GdaSqlOperation *operat ion);
const gchar *gda_sql_operation_operator_to_string (GdaSqlOperatorType op); const gchar *gda_sql_operation_operator_to_string (GdaSqlOperatorType op);
GdaSqlOperatorType gda_sql_operation_operator_from_string (const gchar * op); GdaSqlOperatorType gda_sql_operation_operator_from_string (const gchar * op);
/* /*
* A CASE expression * A CASE expression
*/ */
/** /**
* GdaSqlCase: * GdaSqlCase: (skip)
* @any: inheritance structure * @any: inheritance structure
* @base_expr: expression to test * @base_expr: expression to test
* @when_expr_list: list of #GdaSqlExpr, one for each WHEN clause * @when_expr_list: list of #GdaSqlExpr, one for each WHEN clause
* @then_expr_list: list of #GdaSqlExpr, one for each THEN clause * @then_expr_list: list of #GdaSqlExpr, one for each THEN clause
* @else_expr: default expression for the CASE * @else_expr: default expression for the CASE
* *
* This structure represents a CASE WHEN... construct * This structure represents a CASE WHEN... construct
*/ */
struct _GdaSqlCase struct _GdaSqlCase
{ {
skipping to change at line 338 skipping to change at line 379
GdaSqlCase *gda_sql_case_new (GdaSqlAnyPart *parent); GdaSqlCase *gda_sql_case_new (GdaSqlAnyPart *parent);
void gda_sql_case_free (GdaSqlCase *sc); void gda_sql_case_free (GdaSqlCase *sc);
GdaSqlCase *gda_sql_case_copy (GdaSqlCase *sc); GdaSqlCase *gda_sql_case_copy (GdaSqlCase *sc);
gchar *gda_sql_case_serialize (GdaSqlCase *sc); gchar *gda_sql_case_serialize (GdaSqlCase *sc);
/* /*
* Any expression in a SELECT ... before the FROM clause * Any expression in a SELECT ... before the FROM clause
*/ */
/** /**
* GdaSqlSelectField: * GdaSqlSelectField: (skip)
* @any: inheritance structure * @any: inheritance structure
* @expr: expression * @expr: expression
* @field_name: field name part of @expr if @expr represents a field * @field_name: field name part of @expr if @expr represents a field
* @table_name: table name part of @expr if @expr represents a field * @table_name: table name part of @expr if @expr represents a field
* @as: alias * @as: alias
* @validity_meta_object: * @validity_meta_object:
* @validity_meta_table_column: * @validity_meta_table_column:
* *
* This structure represents a selected item in a SELECT statement (when ex ecuted, the returned data set * This structure represents a selected item in a SELECT statement (when ex ecuted, the returned data set
* will have one column per selected item). Note that the @table_name and * will have one column per selected item). Note that the @table_name and
skipping to change at line 384 skipping to change at line 425
void _gda_sql_select_field_check_clean (GdaSqlSelectField * field); void _gda_sql_select_field_check_clean (GdaSqlSelectField * field);
void gda_sql_select_field_take_star_value(GdaSqlSelectField * field, GValue *value); void gda_sql_select_field_take_star_value(GdaSqlSelectField * field, GValue *value);
void gda_sql_select_field_take_expr (GdaSqlSelectField * field, GdaSqlExpr *expr); void gda_sql_select_field_take_expr (GdaSqlSelectField * field, GdaSqlExpr *expr);
void gda_sql_select_field_take_alias (GdaSqlSelectField * field, GValue *alias); void gda_sql_select_field_take_alias (GdaSqlSelectField * field, GValue *alias);
/* /*
* Any TARGET ... in a SELECT statement * Any TARGET ... in a SELECT statement
*/ */
/** /**
* GdaSqlSelectTarget: * GdaSqlSelectTarget: (skip)
* @any: inheritance structure * @any: inheritance structure
* @expr: expression * @expr: expression
* @table_name: table name part of @expr if @expr represents a table * @table_name: table name part of @expr if @expr represents a table
* @as: alias * @as: alias
* @validity_meta_object: * @validity_meta_object:
* *
* This structure represents a target used to fetch data from in a SELECT s tatement; it can represent a table or * This structure represents a target used to fetch data from in a SELECT s tatement; it can represent a table or
* a sub select. Note that the @table_name * a sub select. Note that the @table_name
* part <emphasis>will be</emphasis> overwritten by &LIBGDA;, * part <emphasis>will be</emphasis> overwritten by &LIBGDA;,
* set the value of @expr->value instead. * set the value of @expr->value instead.
skipping to change at line 444 skipping to change at line 485
typedef enum { typedef enum {
GDA_SQL_SELECT_JOIN_CROSS, GDA_SQL_SELECT_JOIN_CROSS,
GDA_SQL_SELECT_JOIN_NATURAL, GDA_SQL_SELECT_JOIN_NATURAL,
GDA_SQL_SELECT_JOIN_INNER, GDA_SQL_SELECT_JOIN_INNER,
GDA_SQL_SELECT_JOIN_LEFT, GDA_SQL_SELECT_JOIN_LEFT,
GDA_SQL_SELECT_JOIN_RIGHT, GDA_SQL_SELECT_JOIN_RIGHT,
GDA_SQL_SELECT_JOIN_FULL GDA_SQL_SELECT_JOIN_FULL
} GdaSqlSelectJoinType; } GdaSqlSelectJoinType;
/** /**
* GdaSqlSelectJoin: * GdaSqlSelectJoin: (skip)
* @any: inheritance structure * @any: inheritance structure
* @type: type of join * @type: type of join
* @position: represents a join between a target at (pos &lt; @position) an d the one at @position * @position: represents a join between a target at (pos &lt; @position) an d the one at @position
* @expr: (allow-none): joining expression, or %NULL * @expr: (allow-none): joining expression, or %NULL
* @use: (allow-none): list of #GdaSqlField pointers to use when joining, o r %NULL * @use: (allow-none): list of #GdaSqlField pointers to use when joining, o r %NULL
* *
* This structure represents a join between two targets in a SELECT stateme nt. * This structure represents a join between two targets in a SELECT stateme nt.
*/ */
struct _GdaSqlSelectJoin struct _GdaSqlSelectJoin
{ {
skipping to change at line 478 skipping to change at line 519
void gda_sql_select_join_free (GdaSqlSelectJoin *jo in); void gda_sql_select_join_free (GdaSqlSelectJoin *jo in);
GdaSqlSelectJoin *gda_sql_select_join_copy (GdaSqlSelectJoin *jo in); GdaSqlSelectJoin *gda_sql_select_join_copy (GdaSqlSelectJoin *jo in);
gchar *gda_sql_select_join_serialize (GdaSqlSelectJoin *jo in); gchar *gda_sql_select_join_serialize (GdaSqlSelectJoin *jo in);
const gchar *gda_sql_select_join_type_to_string (GdaSqlSelectJoinType type); const gchar *gda_sql_select_join_type_to_string (GdaSqlSelectJoinType type);
/* /*
* Any FROM ... in a SELECT statement * Any FROM ... in a SELECT statement
*/ */
/** /**
* GdaSqlSelectFrom: * GdaSqlSelectFrom: (skip)
* @any: inheritance structure * @any: inheritance structure
* @targets: (element-type Gda.SqlSelectTarget): list of #GdaSqlSelectTarge t * @targets: (element-type Gda.SqlSelectTarget): list of #GdaSqlSelectTarge t
* @joins: (element-type Gda.SqlSelectJoin): list of #GdaSqlSelectJoin * @joins: (element-type Gda.SqlSelectJoin): list of #GdaSqlSelectJoin
* *
* This structure represents the FROM clause of a SELECT statement, it list s targets and joins * This structure represents the FROM clause of a SELECT statement, it list s targets and joins
*/ */
struct _GdaSqlSelectFrom struct _GdaSqlSelectFrom
{ {
GdaSqlAnyPart any; GdaSqlAnyPart any;
GSList *targets; GSList *targets;
skipping to change at line 509 skipping to change at line 550
GdaSqlSelectFrom *gda_sql_select_from_copy (GdaSqlSelectFrom *fr om); GdaSqlSelectFrom *gda_sql_select_from_copy (GdaSqlSelectFrom *fr om);
gchar *gda_sql_select_from_serialize (GdaSqlSelectFrom *fr om); gchar *gda_sql_select_from_serialize (GdaSqlSelectFrom *fr om);
void gda_sql_select_from_take_new_target(GdaSqlSelectFrom *fr om, GdaSqlSelectTarget *target); void gda_sql_select_from_take_new_target(GdaSqlSelectFrom *fr om, GdaSqlSelectTarget *target);
void gda_sql_select_from_take_new_join (GdaSqlSelectFrom *fr om, GdaSqlSelectJoin *join); void gda_sql_select_from_take_new_join (GdaSqlSelectFrom *fr om, GdaSqlSelectJoin *join);
/* /*
* Any expression in a SELECT ... after the ORDER BY * Any expression in a SELECT ... after the ORDER BY
*/ */
/** /**
* GdaSqlSelectOrder: * GdaSqlSelectOrder: (skip)
* @any: inheritance structure * @any: inheritance structure
* @expr: expression to order on * @expr: expression to order on
* @asc: TRUE is ordering is ascending * @asc: TRUE is ordering is ascending
* @collation_name: name of the collation to use for ordering * @collation_name: name of the collation to use for ordering
* *
* This structure represents the ordering of a SELECT statement. * This structure represents the ordering of a SELECT statement.
*/ */
struct _GdaSqlSelectOrder struct _GdaSqlSelectOrder
{ {
GdaSqlAnyPart any; GdaSqlAnyPart any;
 End of changes. 24 change blocks. 
14 lines changed or deleted 55 lines changed or added


 gda-transaction-status.h   gda-transaction-status.h 
skipping to change at line 84 skipping to change at line 84
gchar *sql; /* SQL to store SQL queries in transactions */ gchar *sql; /* SQL to store SQL queries in transactions */
GdaTransactionStatus *sub_trans;/* sub transaction event */ GdaTransactionStatus *sub_trans;/* sub transaction event */
} pl; } pl;
GdaConnectionEvent *conn_event; GdaConnectionEvent *conn_event;
/*< private >*/ /*< private >*/
gpointer _gda_reserved1; gpointer _gda_reserved1;
gpointer _gda_reserved2; gpointer _gda_reserved2;
}; };
/**
* GdaTransactionStatus:
* @name:
* @isolation_level:
* @state:
* @events: (element-type Gda.TransactionStatusEvent):
*
*/
struct _GdaTransactionStatus { struct _GdaTransactionStatus {
GObject object; GObject object;
gchar *name; gchar *name;
GdaTransactionIsolation isolation_level; GdaTransactionIsolation isolation_level;
GdaTransactionStatusState state; GdaTransactionStatusState state;
GList *events; GList *events;
/*< private >*/ /*< private >*/
gpointer _gda_reserved1; gpointer _gda_reserved1;
 End of changes. 1 change blocks. 
0 lines changed or deleted 8 lines changed or added


 gda-xa-transaction.h   gda-xa-transaction.h 
skipping to change at line 98 skipping to change at line 98
* The #GdaXaTransaction object acts as a distributed transaction manager: to make sure local transactions on several * The #GdaXaTransaction object acts as a distributed transaction manager: to make sure local transactions on several
* connections (to possibly different databases and database types) either all succeed or all fail. For more information, * connections (to possibly different databases and database types) either all succeed or all fail. For more information,
* see the X/Open CAE document Distributed Transaction Processing: The XA S pecification. * see the X/Open CAE document Distributed Transaction Processing: The XA S pecification.
* This document is published by The Open Group and available at * This document is published by The Open Group and available at
* <ulink url="http://www.opengroup.org/public/pubs/catalog/c193.htm">http: //www.opengroup.org/public/pubs/catalog/c193.htm</ulink>. * <ulink url="http://www.opengroup.org/public/pubs/catalog/c193.htm">http: //www.opengroup.org/public/pubs/catalog/c193.htm</ulink>.
* *
* The two phases commit protocol is implemented during the execution of a distributed transaction: modifications * The two phases commit protocol is implemented during the execution of a distributed transaction: modifications
* made on any connection are first <emphasis>prepared</emphasis> (which me ans that they are store in the database), and * made on any connection are first <emphasis>prepared</emphasis> (which me ans that they are store in the database), and
* if that phase succeeded for all the involved connections, then the <emph asis>commit</emphasis> phase is executed * if that phase succeeded for all the involved connections, then the <emph asis>commit</emphasis> phase is executed
* (where all the data previously stored during the <emphasis>prepare</emph asis> phase are actually committed). * (where all the data previously stored during the <emphasis>prepare</emph asis> phase are actually committed).
* That second phase may actually fail, but the distributed transaction wil l still be considered as sucessfull * That second phase may actually fail, but the distributed transaction wil l still be considered as successfull
* as the data stored during the <emphasis>prepare</emphasis> phase can be committed afterwards. * as the data stored during the <emphasis>prepare</emphasis> phase can be committed afterwards.
* *
* A distributed transaction involves the following steps: * A distributed transaction involves the following steps:
* <orderedlist> * <orderedlist>
* <listitem><para>Create a #GdaXaTransaction object</para></listitem> * <listitem><para>Create a #GdaXaTransaction object</para></listitem>
* <listitem><para>Register the connections which will be part of the dis tributed transaction with that object * <listitem><para>Register the connections which will be part of the dis tributed transaction with that object
* using gda_xa_transaction_register_connection()</para></listitem> * using gda_xa_transaction_register_connection()</para></listitem>
* <listitem><para>Beging the distributed transaction using gda_xa_transa ction_begin()</para></listitem> * <listitem><para>Beging the distributed transaction using gda_xa_transa ction_begin()</para></listitem>
* <listitem><para>Work individually on each connection as normally (make modifications)</para></listitem> * <listitem><para>Work individually on each connection as normally (make modifications)</para></listitem>
* <listitem><para>Commit the distributed transaction using gda_xa_transa ction_commit()</para></listitem> * <listitem><para>Commit the distributed transaction using gda_xa_transa ction_commit()</para></listitem>
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added


 libgda.h   libgda.h 
skipping to change at line 50 skipping to change at line 50
#include <libgda/gda-data-model-bdb.h> #include <libgda/gda-data-model-bdb.h>
#include <libgda/gda-data-model-ldap.h> #include <libgda/gda-data-model-ldap.h>
#include <libgda/gda-tree-mgr-ldap.h> #include <libgda/gda-tree-mgr-ldap.h>
#include <libgda/gda-data-model.h> #include <libgda/gda-data-model.h>
#include <libgda/gda-data-model-iter.h> #include <libgda/gda-data-model-iter.h>
#include <libgda/gda-data-model-import.h> #include <libgda/gda-data-model-import.h>
#include <libgda/gda-data-model-dir.h> #include <libgda/gda-data-model-dir.h>
#include <libgda/gda-data-access-wrapper.h> #include <libgda/gda-data-access-wrapper.h>
#include <libgda/gda-data-proxy.h> #include <libgda/gda-data-proxy.h>
#include <libgda/gda-data-select.h> #include <libgda/gda-data-select.h>
#include <libgda/gda-data-pivot.h>
#include <libgda/gda-lockable.h> #include <libgda/gda-lockable.h>
#include <libgda/gda-log.h> #include <libgda/gda-log.h>
#include <libgda/gda-quark-list.h> #include <libgda/gda-quark-list.h>
#include <libgda/gda-row.h> #include <libgda/gda-row.h>
#include <libgda/gda-server-operation.h> #include <libgda/gda-server-operation.h>
#include <libgda/gda-server-provider.h> #include <libgda/gda-server-provider.h>
#include <libgda/gda-xa-transaction.h> #include <libgda/gda-xa-transaction.h>
#include <libgda/gda-transaction-status.h> #include <libgda/gda-transaction-status.h>
#include <libgda/gda-transaction-status-private.h> #include <libgda/gda-transaction-status-private.h>
#include <libgda/gda-util.h> #include <libgda/gda-util.h>
 End of changes. 1 change blocks. 
0 lines changed or deleted 1 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/