| gda-connection.h | | gda-connection.h | |
| | | | |
| skipping to change at line 56 | | skipping to change at line 56 | |
| extern GQuark gda_connection_error_quark (void); | | extern GQuark gda_connection_error_quark (void); | |
| #define GDA_CONNECTION_ERROR gda_connection_error_quark () | | #define GDA_CONNECTION_ERROR gda_connection_error_quark () | |
| | | | |
| typedef enum { | | typedef enum { | |
| 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_TASK_NOT_FOUND_ERROR, | |
| | | GDA_CONNECTION_UNSUPPORTED_THREADS_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 | |
| | | | |
| struct _GdaConnection { | | struct _GdaConnection { | |
| GObject object; | | GObject object; | |
| GdaConnectionPrivate *priv; | | GdaConnectionPrivate *priv; | |
| }; | | }; | |
| | | | |
| struct _GdaConnectionClass { | | struct _GdaConnectionClass { | |
| GObjectClass object_class; | | GObjectClass object_class; | |
| | | | |
| skipping to change at line 83 | | skipping to change at line 86 | |
| void (*dsn_changed) (GdaConnection *obj); | | void (*dsn_changed) (GdaConnection *obj); | |
| void (*transaction_status_changed)(GdaConnection *obj); | | void (*transaction_status_changed)(GdaConnection *obj); | |
| | | | |
| /* Padding for future expansion */ | | /* Padding for future expansion */ | |
| void (*_gda_reserved1) (void); | | void (*_gda_reserved1) (void); | |
| void (*_gda_reserved2) (void); | | void (*_gda_reserved2) (void); | |
| void (*_gda_reserved3) (void); | | void (*_gda_reserved3) (void); | |
| void (*_gda_reserved4) (void); | | void (*_gda_reserved4) (void); | |
| }; | | }; | |
| | | | |
|
| /** | | | |
| * GdaConnectionOptions: | | | |
| * @GDA_CONNECTION_OPTIONS_NONE: no specific aspect | | | |
| * @GDA_CONNECTION_OPTIONS_READ_ONLY: this flag specifies that the connecti | | | |
| on to open should be in a read-only mode | | | |
| * (this policy is not correctly enforce | | | |
| d at the moment) | | | |
| * @GDA_CONNECTION_OPTIONS_THREAD_SAFE: this flag specifies that the connec | | | |
| tion to open will be used | | | |
| * by several threads at once so it has | | | |
| to be thread safe | | | |
| * @GDA_CONNECTION_OPTIONS_SQL_IDENTIFIERS_CASE_SENSITIVE: this flag specif | | | |
| ies that SQL identifiers submitted as input | | | |
| * to Libgda have to keep their case sen | | | |
| sitivity. | | | |
| * | | | |
| * | | | |
| * Specifies some aspects of a connection when opening it. | | | |
| * | | | |
| * Additionnal information about the GDA_CONNECTION_OPTIONS_SQL_IDENTIFIERS | | | |
| _CASE_SENSITIVE flag: | | | |
| * <itemizedlist> | | | |
| * <listitem><para>For example without this flag, if the table | | | |
| * name specified in a #GdaServerOperation to create a table is | | | |
| * <emphasis>MyTable</emphasis>, then usually the database will creat | | | |
| e a table named | | | |
| * <emphasis>mytable</emphasis>, whereas with this flag, the table wi | | | |
| ll be created | | | |
| * as <emphasis>MyTable</emphasis> (note that in the end the database | | | |
| may still decide | | | |
| * to name the table <emphasis>mytable</emphasis> or differently if i | | | |
| t can't do | | | |
| * otherwise).</para></listitem> | | | |
| * <listitem><para>Libgda will not apply this rule when parsing SQL code, | | | |
| the SQL code being parsed | | | |
| * has to be conform to the database it will be used with</para></lis | | | |
| titem> | | | |
| * </itemizedlist> | | | |
| */ | | | |
| typedef enum { | | typedef enum { | |
| GDA_CONNECTION_OPTIONS_NONE = 0, | | GDA_CONNECTION_OPTIONS_NONE = 0, | |
| GDA_CONNECTION_OPTIONS_READ_ONLY = 1 << 0, | | GDA_CONNECTION_OPTIONS_READ_ONLY = 1 << 0, | |
|
| GDA_CONNECTION_OPTIONS_SQL_IDENTIFIERS_CASE_SENSITIVE = 1 << 1 | | GDA_CONNECTION_OPTIONS_THREAD_SAFE = 1 << 1 | |
| } GdaConnectionOptions; | | } GdaConnectionOptions; | |
| | | | |
| typedef enum { | | typedef enum { | |
| GDA_CONNECTION_FEATURE_AGGREGATES, | | GDA_CONNECTION_FEATURE_AGGREGATES, | |
| GDA_CONNECTION_FEATURE_BLOBS, | | GDA_CONNECTION_FEATURE_BLOBS, | |
| GDA_CONNECTION_FEATURE_INDEXES, | | GDA_CONNECTION_FEATURE_INDEXES, | |
| GDA_CONNECTION_FEATURE_INHERITANCE, | | GDA_CONNECTION_FEATURE_INHERITANCE, | |
| GDA_CONNECTION_FEATURE_NAMESPACES, | | GDA_CONNECTION_FEATURE_NAMESPACES, | |
| GDA_CONNECTION_FEATURE_PROCEDURES, | | GDA_CONNECTION_FEATURE_PROCEDURES, | |
| GDA_CONNECTION_FEATURE_SEQUENCES, | | GDA_CONNECTION_FEATURE_SEQUENCES, | |
| | | | |
| skipping to change at line 155 | | skipping to change at line 132 | |
| GDA_CONNECTION_SCHEMA_SEQUENCES, | | GDA_CONNECTION_SCHEMA_SEQUENCES, | |
| GDA_CONNECTION_SCHEMA_TABLES, | | GDA_CONNECTION_SCHEMA_TABLES, | |
| GDA_CONNECTION_SCHEMA_TRIGGERS, | | GDA_CONNECTION_SCHEMA_TRIGGERS, | |
| GDA_CONNECTION_SCHEMA_TYPES, | | GDA_CONNECTION_SCHEMA_TYPES, | |
| GDA_CONNECTION_SCHEMA_USERS, | | GDA_CONNECTION_SCHEMA_USERS, | |
| GDA_CONNECTION_SCHEMA_VIEWS, | | GDA_CONNECTION_SCHEMA_VIEWS, | |
| GDA_CONNECTION_SCHEMA_CONSTRAINTS, | | GDA_CONNECTION_SCHEMA_CONSTRAINTS, | |
| GDA_CONNECTION_SCHEMA_TABLE_CONTENTS | | GDA_CONNECTION_SCHEMA_TABLE_CONTENTS | |
| } GdaConnectionSchema; | | } GdaConnectionSchema; | |
| | | | |
|
| /** | | | |
| * GdaConnectionMetaType: | | | |
| * @GDA_CONNECTION_META_NAMESPACES: lists the <link linkend="GdaConnectionM | | | |
| etaTypeGDA_CONNECTION_META_NAMESPACES">namespaces</link> (or schemas for Po | | | |
| stgreSQL) | | | |
| * @GDA_CONNECTION_META_TYPES: lists the <link linkend="GdaConnectionMetaTy | | | |
| peGDA_CONNECTION_META_TYPES">database types</link> | | | |
| * @GDA_CONNECTION_META_TABLES: lists the <link linkend="GdaConnectionMetaT | | | |
| ypeGDA_CONNECTION_META_TABLES">tables</link> | | | |
| * @GDA_CONNECTION_META_VIEWS: lists the <link linkend="GdaConnectionMetaTy | | | |
| peGDA_CONNECTION_META_VIEWS">views</link> | | | |
| * @GDA_CONNECTION_META_FIELDS: lists the <link linkend="GdaConnectionMetaT | | | |
| ypeGDA_CONNECTION_META_FIELDS">table's or view's fields</link> | | | |
| * @GDA_CONNECTION_META_INDEXES: lists the <link linkend="GdaConnectionMeta | | | |
| TypeGDA_CONNECTION_META_INDEXES">table's indexes</link> | | | |
| * | | | |
| * Used with gda_connection_get_meta_store_data() to describe what meta dat | | | |
| a to extract from | | | |
| * a connection's associated #GdaMetaStore. | | | |
| */ | | | |
| typedef enum { | | typedef enum { | |
| GDA_CONNECTION_META_NAMESPACES, | | GDA_CONNECTION_META_NAMESPACES, | |
| GDA_CONNECTION_META_TYPES, | | GDA_CONNECTION_META_TYPES, | |
| GDA_CONNECTION_META_TABLES, | | GDA_CONNECTION_META_TABLES, | |
| GDA_CONNECTION_META_VIEWS, | | GDA_CONNECTION_META_VIEWS, | |
|
| GDA_CONNECTION_META_FIELDS, | | GDA_CONNECTION_META_FIELDS | |
| GDA_CONNECTION_META_INDEXES | | | |
| } GdaConnectionMetaType; | | } GdaConnectionMetaType; | |
| | | | |
| GType gda_connection_get_type (void) G_GNUC_CONS
T; | | GType gda_connection_get_type (void) G_GNUC_CONS
T; | |
| GdaConnection *gda_connection_open_from_dsn (const gchar *dsn,
const gchar *auth_string, | | GdaConnection *gda_connection_open_from_dsn (const gchar *dsn,
const gchar *auth_string, | |
| GdaConnectionOptio
ns options, GError **error); | | GdaConnectionOptio
ns options, GError **error); | |
| GdaConnection *gda_connection_open_from_string (const gchar *prov
ider_name, | | GdaConnection *gda_connection_open_from_string (const gchar *prov
ider_name, | |
| const gchar *cnc_s
tring, const gchar *auth_string, | | const gchar *cnc_s
tring, const gchar *auth_string, | |
| GdaConnectionOptio
ns options, GError **error); | | GdaConnectionOptio
ns options, GError **error); | |
| gboolean gda_connection_open (GdaConnection *cn
c, GError **error); | | gboolean gda_connection_open (GdaConnection *cn
c, GError **error); | |
| void gda_connection_close (GdaConnection *cn
c); | | void gda_connection_close (GdaConnection *cn
c); | |
| | | | |
| skipping to change at line 207 | | skipping to change at line 171 | |
| const gchar *gda_connection_get_cnc_string (GdaConnection *cn
c); | | const gchar *gda_connection_get_cnc_string (GdaConnection *cn
c); | |
| const gchar *gda_connection_get_authentication (GdaConnection *cn
c); | | const gchar *gda_connection_get_authentication (GdaConnection *cn
c); | |
| | | | |
| const GList *gda_connection_get_events (GdaConnection *cn
c); | | const GList *gda_connection_get_events (GdaConnection *cn
c); | |
| | | | |
| GdaSqlParser *gda_connection_create_parser (GdaConnection *cn
c); | | GdaSqlParser *gda_connection_create_parser (GdaConnection *cn
c); | |
| GSList *gda_connection_batch_execute (GdaConnection *cn
c, | | GSList *gda_connection_batch_execute (GdaConnection *cn
c, | |
| GdaBatch *batch, G
daSet *params, | | GdaBatch *batch, G
daSet *params, | |
| GdaStatementModelU
sage model_usage, GError **error); | | GdaStatementModelU
sage model_usage, GError **error); | |
| | | | |
|
| gchar *gda_connection_quote_sql_identifier (GdaConnection *cn
c, const gchar *id); | | | |
| gchar *gda_connection_statement_to_sql (GdaConnection *cn
c, | | gchar *gda_connection_statement_to_sql (GdaConnection *cn
c, | |
| GdaStatement *stmt
, GdaSet *params, GdaStatementSqlFlag flags, | | GdaStatement *stmt
, GdaSet *params, GdaStatementSqlFlag flags, | |
| GSList **params_us
ed, GError **error); | | GSList **params_us
ed, GError **error); | |
|
| | | /* synchronous exec */ | |
| gboolean gda_connection_statement_prepare (GdaConnection *cn
c, | | gboolean gda_connection_statement_prepare (GdaConnection *cn
c, | |
| GdaStatement *stmt
, GError **error); | | GdaStatement *stmt
, GError **error); | |
| GObject *gda_connection_statement_execute (GdaConnection *cn
c, GdaStatement *stmt, GdaSet *params, | | GObject *gda_connection_statement_execute (GdaConnection *cn
c, GdaStatement *stmt, GdaSet *params, | |
| GdaStatementModelU
sage model_usage, GdaSet **last_insert_row, | | GdaStatementModelU
sage model_usage, GdaSet **last_insert_row, | |
| GError **error); | | GError **error); | |
| GdaDataModel *gda_connection_statement_execute_select (GdaConnection
*cnc, GdaStatement *stmt, | | GdaDataModel *gda_connection_statement_execute_select (GdaConnection
*cnc, GdaStatement *stmt, | |
| GdaSet *params
, GError **error); | | GdaSet *params
, GError **error); | |
| GdaDataModel *gda_connection_statement_execute_select_fullv (GdaConn
ection *cnc, GdaStatement *stmt, | | GdaDataModel *gda_connection_statement_execute_select_fullv (GdaConn
ection *cnc, GdaStatement *stmt, | |
| GdaSet *
params, GdaStatementModelUsage model_usage, | | GdaSet *
params, GdaStatementModelUsage model_usage, | |
| GError *
*error, ...); | | GError *
*error, ...); | |
| GdaDataModel *gda_connection_statement_execute_select_full (GdaConne
ction *cnc, GdaStatement *stmt, | | GdaDataModel *gda_connection_statement_execute_select_full (GdaConne
ction *cnc, GdaStatement *stmt, | |
| GdaSet *p
arams, GdaStatementModelUsage model_usage, | | GdaSet *p
arams, GdaStatementModelUsage model_usage, | |
| GType *co
l_types, GError **error); | | GType *co
l_types, GError **error); | |
| gint gda_connection_statement_execute_non_select (GdaConnec
tion *cnc, GdaStatement *stmt, | | gint gda_connection_statement_execute_non_select (GdaConnec
tion *cnc, GdaStatement *stmt, | |
| GdaSet *pa
rams, GdaSet **last_insert_row, GError **error); | | GdaSet *pa
rams, GdaSet **last_insert_row, GError **error); | |
| | | | |
|
| | | /* Async. execution */ | |
| | | guint gda_connection_async_statement_execute (GdaConnection | |
| | | *cnc, GdaStatement *stmt, GdaSet *params, | |
| | | GdaStatementMod | |
| | | elUsage model_usage, GType *col_types, | |
| | | gboolean need_l | |
| | | ast_insert_row, | |
| | | GError **error) | |
| | | ; | |
| | | GObject *gda_connection_async_fetch_result (GdaConnection | |
| | | *cnc, guint task_id, GdaSet **last_insert_row, GError **error); | |
| | | gboolean gda_connection_async_cancel (GdaConnection | |
| | | *cnc, guint task_id, GError **error); | |
| | | | |
| | | /* repetitive statement */ | |
| | | GSList *gda_connection_repetitive_statement_execute (GdaConnect | |
| | | ion *cnc, GdaRepetitiveStatement *rstmt, | |
| | | GdaStatemen | |
| | | tModelUsage model_usage, GType *col_types, | |
| | | gboolean st | |
| | | op_on_error, GError **error); | |
| | | | |
| | | /* transactions */ | |
| gboolean gda_connection_begin_transaction (GdaConnection *cn
c, const gchar *name, | | gboolean gda_connection_begin_transaction (GdaConnection *cn
c, const gchar *name, | |
| GdaTransactionIsol
ation level, GError **error); | | GdaTransactionIsol
ation level, GError **error); | |
| gboolean gda_connection_commit_transaction (GdaConnection *cn
c, const gchar *name, GError **error); | | gboolean gda_connection_commit_transaction (GdaConnection *cn
c, const gchar *name, GError **error); | |
| gboolean gda_connection_rollback_transaction (GdaConnection *cn
c, const gchar *name, GError **error); | | gboolean gda_connection_rollback_transaction (GdaConnection *cn
c, const gchar *name, GError **error); | |
| | | | |
| gboolean gda_connection_add_savepoint (GdaConnection *cn
c, const gchar *name, GError **error); | | gboolean gda_connection_add_savepoint (GdaConnection *cn
c, const gchar *name, GError **error); | |
| gboolean gda_connection_rollback_savepoint (GdaConnection *cn
c, const gchar *name, GError **error); | | gboolean gda_connection_rollback_savepoint (GdaConnection *cn
c, const gchar *name, GError **error); | |
| gboolean gda_connection_delete_savepoint (GdaConnection *cn
c, const gchar *name, GError **error); | | gboolean gda_connection_delete_savepoint (GdaConnection *cn
c, const gchar *name, GError **error); | |
| | | | |
| GdaTransactionStatus *gda_connection_get_transaction_status (GdaConnection
*cnc); | | GdaTransactionStatus *gda_connection_get_transaction_status (GdaConnection
*cnc); | |
| | | | |
End of changes. 8 change blocks. |
| 64 lines changed or deleted | | 30 lines changed or added | |
|
| gda-enum-types.h | | gda-enum-types.h | |
| | | | |
|
| | | /* Generated data (by glib-mkenums) */ | |
| | | | |
| #ifndef __LIBGDA_ENUM_TYPES_H__ | | #ifndef __LIBGDA_ENUM_TYPES_H__ | |
| #define __LIBGDA_ENUM_TYPES_H__ | | #define __LIBGDA_ENUM_TYPES_H__ | |
| | | | |
| #include <glib-object.h> | | #include <glib-object.h> | |
| | | | |
| G_BEGIN_DECLS | | G_BEGIN_DECLS | |
| /* enumerations from "gda-config.h" */ | | /* enumerations from "gda-config.h" */ | |
| GType gda_config_error_get_type (void); | | GType gda_config_error_get_type (void); | |
| #define GDA_TYPE_CONFIG_ERROR (gda_config_error_get_type()) | | #define GDA_TYPE_CONFIG_ERROR (gda_config_error_get_type()) | |
| /* enumerations from "gda-connection-event.h" */ | | /* enumerations from "gda-connection-event.h" */ | |
| | | | |
| skipping to change at line 57 | | skipping to change at line 59 | |
| /* enumerations from "gda-easy.h" */ | | /* enumerations from "gda-easy.h" */ | |
| GType gda_easy_error_get_type (void); | | GType gda_easy_error_get_type (void); | |
| #define GDA_TYPE_EASY_ERROR (gda_easy_error_get_type()) | | #define GDA_TYPE_EASY_ERROR (gda_easy_error_get_type()) | |
| GType gda_easy_create_table_flag_get_type (void); | | GType gda_easy_create_table_flag_get_type (void); | |
| #define GDA_TYPE_EASY_CREATE_TABLE_FLAG (gda_easy_create_table_flag_get_typ
e()) | | #define GDA_TYPE_EASY_CREATE_TABLE_FLAG (gda_easy_create_table_flag_get_typ
e()) | |
| /* enumerations from "gda-enums.h" */ | | /* enumerations from "gda-enums.h" */ | |
| GType gda_transaction_isolation_get_type (void); | | GType gda_transaction_isolation_get_type (void); | |
| #define GDA_TYPE_TRANSACTION_ISOLATION (gda_transaction_isolation_get_type(
)) | | #define GDA_TYPE_TRANSACTION_ISOLATION (gda_transaction_isolation_get_type(
)) | |
| GType gda_value_attribute_get_type (void); | | GType gda_value_attribute_get_type (void); | |
| #define GDA_TYPE_VALUE_ATTRIBUTE (gda_value_attribute_get_type()) | | #define GDA_TYPE_VALUE_ATTRIBUTE (gda_value_attribute_get_type()) | |
|
| GType gda_sql_identifier_style_get_type (void); | | | |
| #define GDA_TYPE_SQL_IDENTIFIER_STYLE (gda_sql_identifier_style_get_type()) | | | |
| /* enumerations from "gda-holder.h" */ | | /* enumerations from "gda-holder.h" */ | |
| GType gda_holder_error_get_type (void); | | GType gda_holder_error_get_type (void); | |
| #define GDA_TYPE_HOLDER_ERROR (gda_holder_error_get_type()) | | #define GDA_TYPE_HOLDER_ERROR (gda_holder_error_get_type()) | |
| /* enumerations from "gda-meta-store.h" */ | | /* enumerations from "gda-meta-store.h" */ | |
| GType gda_meta_store_error_get_type (void); | | GType gda_meta_store_error_get_type (void); | |
| #define GDA_TYPE_META_STORE_ERROR (gda_meta_store_error_get_type()) | | #define GDA_TYPE_META_STORE_ERROR (gda_meta_store_error_get_type()) | |
| GType gda_meta_store_change_type_get_type (void); | | GType gda_meta_store_change_type_get_type (void); | |
| #define GDA_TYPE_META_STORE_CHANGE_TYPE (gda_meta_store_change_type_get_typ
e()) | | #define GDA_TYPE_META_STORE_CHANGE_TYPE (gda_meta_store_change_type_get_typ
e()) | |
| /* enumerations from "gda-meta-struct.h" */ | | /* enumerations from "gda-meta-struct.h" */ | |
| GType gda_meta_struct_error_get_type (void); | | GType gda_meta_struct_error_get_type (void); | |
| | | | |
| skipping to change at line 98 | | skipping to change at line 98 | |
| /* enumerations from "gda-server-provider.h" */ | | /* enumerations from "gda-server-provider.h" */ | |
| GType gda_server_provider_error_get_type (void); | | GType gda_server_provider_error_get_type (void); | |
| #define GDA_TYPE_SERVER_PROVIDER_ERROR (gda_server_provider_error_get_type(
)) | | #define GDA_TYPE_SERVER_PROVIDER_ERROR (gda_server_provider_error_get_type(
)) | |
| /* enumerations from "gda-statement.h" */ | | /* enumerations from "gda-statement.h" */ | |
| GType gda_statement_error_get_type (void); | | GType gda_statement_error_get_type (void); | |
| #define GDA_TYPE_STATEMENT_ERROR (gda_statement_error_get_type()) | | #define GDA_TYPE_STATEMENT_ERROR (gda_statement_error_get_type()) | |
| GType gda_statement_model_usage_get_type (void); | | GType gda_statement_model_usage_get_type (void); | |
| #define GDA_TYPE_STATEMENT_MODEL_USAGE (gda_statement_model_usage_get_type(
)) | | #define GDA_TYPE_STATEMENT_MODEL_USAGE (gda_statement_model_usage_get_type(
)) | |
| GType gda_statement_sql_flag_get_type (void); | | GType gda_statement_sql_flag_get_type (void); | |
| #define GDA_TYPE_STATEMENT_SQL_FLAG (gda_statement_sql_flag_get_type()) | | #define GDA_TYPE_STATEMENT_SQL_FLAG (gda_statement_sql_flag_get_type()) | |
|
| | | /* enumerations from "gda-sql-builder.h" */ | |
| | | GType gda_sql_builder_error_get_type (void); | |
| | | #define GDA_TYPE_SQL_BUILDER_ERROR (gda_sql_builder_error_get_type()) | |
| /* enumerations from "gda-transaction-status.h" */ | | /* enumerations from "gda-transaction-status.h" */ | |
| GType gda_transaction_status_event_type_get_type (void); | | GType gda_transaction_status_event_type_get_type (void); | |
| #define GDA_TYPE_TRANSACTION_STATUS_EVENT_TYPE (gda_transaction_status_even
t_type_get_type()) | | #define GDA_TYPE_TRANSACTION_STATUS_EVENT_TYPE (gda_transaction_status_even
t_type_get_type()) | |
| 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()) | |
|
| | | /* enumerations from "gda-tree.h" */ | |
| | | GType gda_tree_error_get_type (void); | |
| | | #define GDA_TYPE_TREE_ERROR (gda_tree_error_get_type()) | |
| | | /* enumerations from "gda-tree-node.h" */ | |
| | | GType gda_tree_node_error_get_type (void); | |
| | | #define GDA_TYPE_TREE_NODE_ERROR (gda_tree_node_error_get_type()) | |
| | | /* enumerations from "gda-tree-manager.h" */ | |
| | | GType gda_tree_manager_error_get_type (void); | |
| | | #define GDA_TYPE_TREE_MANAGER_ERROR (gda_tree_manager_error_get_type()) | |
| /* enumerations from "gda-xa-transaction.h" */ | | /* enumerations from "gda-xa-transaction.h" */ | |
| 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()) | |
| G_END_DECLS | | G_END_DECLS | |
| | | | |
| #endif /* __LIBGDA_ENUM_TYPES_H__ */ | | #endif /* __LIBGDA_ENUM_TYPES_H__ */ | |
|
| | | | |
| | | /* Generated data ends here */ | |
| | | | |
End of changes. 5 change blocks. |
| 2 lines changed or deleted | | 14 lines changed or added | |
|
| gda-meta-store.h | | gda-meta-store.h | |
| | | | |
| skipping to change at line 111 | | skipping to change at line 111 | |
| void (*_gda_reserved3) (void); | | void (*_gda_reserved3) (void); | |
| void (*_gda_reserved4) (void); | | void (*_gda_reserved4) (void); | |
| }; | | }; | |
| | | | |
| GType gda_meta_store_get_type (void) G_GNUC_CON
ST; | | GType gda_meta_store_get_type (void) G_GNUC_CON
ST; | |
| GdaMetaStore *gda_meta_store_new_with_file (const gchar *fil
e_name); | | GdaMetaStore *gda_meta_store_new_with_file (const gchar *fil
e_name); | |
| GdaMetaStore *gda_meta_store_new (const gchar *cnc
_string); | | GdaMetaStore *gda_meta_store_new (const gchar *cnc
_string); | |
| gint gda_meta_store_get_version (GdaMetaStore *st
ore); | | gint gda_meta_store_get_version (GdaMetaStore *st
ore); | |
| | | | |
| GdaConnection *gda_meta_store_get_internal_connection (GdaMetaStore *st
ore); | | GdaConnection *gda_meta_store_get_internal_connection (GdaMetaStore *st
ore); | |
|
| gchar *gda_meta_store_sql_identifier_quote (const gchar *id,
GdaConnection *cnc); | | | |
| GdaDataModel *gda_meta_store_extract (GdaMetaStore *st
ore, const gchar *select_sql, GError **error, ...); | | GdaDataModel *gda_meta_store_extract (GdaMetaStore *st
ore, const gchar *select_sql, GError **error, ...); | |
| gboolean gda_meta_store_modify (GdaMetaStore *st
ore, const gchar *table_name, | | gboolean gda_meta_store_modify (GdaMetaStore *st
ore, const gchar *table_name, | |
| GdaDataModel *new
_data, const gchar *condition, GError **error, ...); | | GdaDataModel *new
_data, const gchar *condition, GError **error, ...); | |
| gboolean gda_meta_store_modify_with_context (GdaMetaStore *st
ore, GdaMetaContext *context, | | gboolean gda_meta_store_modify_with_context (GdaMetaStore *st
ore, GdaMetaContext *context, | |
| GdaDataModel *new
_data, GError **error); | | GdaDataModel *new
_data, GError **error); | |
| GdaDataModel *gda_meta_store_create_modify_data_model (GdaMetaStore *st
ore, const gchar *table_name); | | GdaDataModel *gda_meta_store_create_modify_data_model (GdaMetaStore *st
ore, const gchar *table_name); | |
| | | | |
|
| void gda_meta_store_set_reserved_keywords_func(GdaMetaStore *s | | | |
| tore, GdaSqlReservedKeywordsFunc func); | | | |
| | | | |
| gboolean gda_meta_store_get_attribute_value (GdaMetaStore *st
ore, const gchar *att_name, | | gboolean gda_meta_store_get_attribute_value (GdaMetaStore *st
ore, const gchar *att_name, | |
| gchar **att_value
, GError **error); | | gchar **att_value
, GError **error); | |
| gboolean gda_meta_store_set_attribute_value (GdaMetaStore *st
ore, const gchar *att_name, | | gboolean gda_meta_store_set_attribute_value (GdaMetaStore *st
ore, const gchar *att_name, | |
| const gchar *att_
value, GError **error); | | const gchar *att_
value, GError **error); | |
| | | | |
| gboolean gda_meta_store_schema_add_custom_object (GdaMetaStore
*store, const gchar *xml_description, | | gboolean gda_meta_store_schema_add_custom_object (GdaMetaStore
*store, const gchar *xml_description, | |
| GError **error
); | | GError **error
); | |
| gboolean gda_meta_store_schema_remove_custom_object (GdaMetaStore
*store, const gchar *obj_name, GError **error); | | gboolean gda_meta_store_schema_remove_custom_object (GdaMetaStore
*store, const gchar *obj_name, GError **error); | |
| | | | |
| GSList *gda_meta_store_schema_get_all_tables (GdaMetaStore *st
ore); | | GSList *gda_meta_store_schema_get_all_tables (GdaMetaStore *st
ore); | |
| | | | |
End of changes. 2 change blocks. |
| 4 lines changed or deleted | | 0 lines changed or added | |
|
| gda-meta-struct.h | | gda-meta-struct.h | |
| | | | |
| skipping to change at line 95 | | skipping to change at line 95 | |
| } GdaMetaStructFeature; | | } GdaMetaStructFeature; | |
| | | | |
| /* | | /* | |
| * 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: | | * Complements the GdaMetaDbObject structure, for tables only | |
| * @columns: list of #GdaMetaTableColumn structures, one for each column in | | * contains predefined statements for data selection and modifications | |
| the table | | | |
| * @pk_cols_array: index of the columns part of the primary key for the tab | | | |
| le (WARNING: columns numbering | | | |
| * here start at 0) | | | |
| * @pk_cols_nb: size of the @pk_cols_array array | | | |
| * @reverse_fk_list: list of #GdaMetaTableForeignKey where the referenced t | | | |
| able is this table | | | |
| * @fk_list: list of #GdaMetaTableForeignKey for this table | | | |
| * | | | |
| * This structure specifies a #GdaMetaDbObject to represent a table's speci | | | |
| fic attributes, | | | |
| * its contents must not be modified. | | | |
| */ | | */ | |
| typedef struct { | | typedef struct { | |
|
| /*< public >*/ | | GSList *columns; /* list of GdaMetaTableColumn */ | |
| 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 */ | |
| GSList *reverse_fk_list; /* list of GdaMetaTableForeignKey whe
re @depend_on == this GdaMetaDbObject */ | | GSList *reverse_fk_list; /* list of GdaMetaTableForeignKey whe
re @depend_on == this GdaMetaDbObject */ | |
| GSList *fk_list; /* list of GdaMetaTableForeignKey where @meta
_table == this GdaMetaDbObject */ | | GSList *fk_list; /* list of GdaMetaTableForeignKey where @meta
_table == this GdaMetaDbObject */ | |
| | | | |
|
| /*< 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; | |
| } GdaMetaTable; | | } GdaMetaTable; | |
| | | | |
| /** | | /** | |
|
| * GdaMetaView: | | * Complements the GdaMetaDbObject structure, for views only | |
| * @table: a view is also a table as it has columns | | * contains more information than for tables | |
| * @view_def: views' definition | | | |
| * @is_updatable: tells if the view's contents can be updated | | | |
| * | | | |
| * This structure specifies a #GdaMetaDbObject to represent a view's specif | | | |
| ic attributes, | | | |
| * its contents must not be modified. | | | |
| */ | | */ | |
| typedef struct { | | typedef struct { | |
|
| /*< public >*/ | | | |
| GdaMetaTable table; | | GdaMetaTable table; | |
| gchar *view_def; | | gchar *view_def; | |
| gboolean is_updatable; | | gboolean is_updatable; | |
| | | | |
|
| /*< 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; | |
| } GdaMetaView; | | } GdaMetaView; | |
| | | | |
|
| /** | | /* | |
| * GdaMetaDbObject: | | * Struture to hold information about each database object (tables, views, | |
| * @extra: union for the actual object's contents, to be able to cast it us | | triggers, ...) | |
| ing GDA_META_TABLE(), GDA_META_VIEW() | | | |
| * @obj_type: the type of object (table, view) | | | |
| * @outdated: | | | |
| * @obj_catalog: the catalog the object is in | | | |
| * @obj_schema: the schema the object is in | | | |
| * @obj_name: the object's name | | | |
| * @obj_short_name: the shortest way to name the object | | | |
| * @obj_full_name: the full name of the object (in the <schema>.<n | | | |
| ameagt; notation | | | |
| * @obj_owner: object's owner | | | |
| * @depend_list: list of #GdaMetaDbObject pointers on which this object dep | | | |
| ends (through foreign keys | | | |
| * or tables used for views) | | | |
| * | | | |
| * Struture to hold information about each database object (tables, views, | | | |
| ...), | | | |
| * its contents must not be modified. | | | |
| * | | * | |
| * Note: @obj_catalog, @obj_schema, @obj_name, @obj_short_name and @obj_ful
l_name are case sensitive: | | * Note: @obj_catalog, @obj_schema, @obj_name, @obj_short_name and @obj_ful
l_name are case sensitive: | |
|
| * one must use gda_sql_identifier_quote() to know if is it is necess
ary to surround by double quotes | | * one must call gda_sql_identifier_needs_quotes() to know if is it i
s necessary to surround by double quotes | |
| * before using in an SQL statement | | * before using in an SQL statement | |
| */ | | */ | |
| typedef struct { | | typedef struct { | |
|
| /*< public >*/ | | | |
| union { | | union { | |
| GdaMetaTable meta_table; | | GdaMetaTable meta_table; | |
| GdaMetaView meta_view; | | GdaMetaView meta_view; | |
| } extra; | | } extra; | |
| GdaMetaDbObjectType obj_type; | | GdaMetaDbObjectType obj_type; | |
| gboolean outdated; | | gboolean outdated; | |
| gchar *obj_catalog; | | gchar *obj_catalog; | |
| gchar *obj_schema; | | gchar *obj_schema; | |
| gchar *obj_name; | | gchar *obj_name; | |
| gchar *obj_short_name; | | gchar *obj_short_name; | |
| gchar *obj_full_name; | | gchar *obj_full_name; | |
| gchar *obj_owner; | | gchar *obj_owner; | |
| | | | |
| GSList *depend_list; /* list of GdaMetaDbObject poin
ters on which this object depends */ | | GSList *depend_list; /* list of GdaMetaDbObject poin
ters on which this object depends */ | |
| | | | |
|
| /*< 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; | |
| } GdaMetaDbObject; | | } GdaMetaDbObject; | |
| #define GDA_META_DB_OBJECT(x) ((GdaMetaDbObject*)(x)) | | #define GDA_META_DB_OBJECT(x) ((GdaMetaDbObject*)(x)) | |
| #define GDA_META_TABLE(dbobj) (&((dbobj)->extra.meta_table)) | | #define GDA_META_TABLE(dbobj) (&((dbobj)->extra.meta_table)) | |
| #define GDA_META_VIEW(dbobj) (&((dbobj)->extra.meta_view)) | | #define GDA_META_VIEW(dbobj) (&((dbobj)->extra.meta_view)) | |
| | | | |
|
| /** | | | |
| * GdaMetaTableColumn: | | | |
| * @column_name: the column's name | | | |
| * @column_type: the column's DBMS's type | | | |
| * @gtype: the detected column's #GType | | | |
| * @pkey: tells if the column is part of a primary key | | | |
| * @nullok: tells if the column can be %NULL | | | |
| * @default_value: the column's default value | | | |
| * | | | |
| * This structure represents a table of view's column, its contents must no | | | |
| t be modified. | | | |
| */ | | | |
| typedef struct { | | typedef struct { | |
|
| /*< public >*/ | | | |
| gchar *column_name; | | gchar *column_name; | |
| gchar *column_type; | | gchar *column_type; | |
| GType gtype; | | GType gtype; | |
| gboolean pkey; | | gboolean pkey; | |
| gboolean nullok; | | gboolean nullok; | |
| gchar *default_value; | | gchar *default_value; | |
| | | | |
|
| /*< 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; | |
| } GdaMetaTableColumn; | | } GdaMetaTableColumn; | |
| #define GDA_META_TABLE_COLUMN(x) ((GdaMetaTableColumn*)(x)) | | #define GDA_META_TABLE_COLUMN(x) ((GdaMetaTableColumn*)(x)) | |
| const GValue *gda_meta_table_column_get_attribute (GdaMetaTableColumn *tcol
, const gchar *attribute); | | const GValue *gda_meta_table_column_get_attribute (GdaMetaTableColumn *tcol
, const gchar *attribute); | |
| void gda_meta_table_column_set_attribute (GdaMetaTableColumn *tcol
, const gchar *attribute, const GValue *value, | | void gda_meta_table_column_set_attribute (GdaMetaTableColumn *tcol
, const gchar *attribute, const GValue *value, | |
| GDestroyNotify destroy); | | GDestroyNotify destroy); | |
| | | | |
| skipping to change at line 242 | | skipping to change at line 196 | |
| * @column: a #GdaMetaTableColumn | | * @column: a #GdaMetaTableColumn | |
| * @attribute: attribute's name | | * @attribute: attribute's name | |
| * @value: a #GValue, or %NULL | | * @value: a #GValue, or %NULL | |
| * | | * | |
| * This function is similar to gda_meta_table_column_set_attribute() but fo
r static strings | | * This function is similar to gda_meta_table_column_set_attribute() but fo
r static strings | |
| */ | | */ | |
| #define gda_meta_table_column_set_attribute_static(column,attribute,value)
gda_meta_table_column_set_attribute((column),(attribute),(value),NULL) | | #define gda_meta_table_column_set_attribute_static(column,attribute,value)
gda_meta_table_column_set_attribute((column),(attribute),(value),NULL) | |
| | | | |
| void gda_meta_table_column_foreach_attribute (GdaMetaTableColumn *
tcol, GdaAttributesManagerFunc func, gpointer data); | | void gda_meta_table_column_foreach_attribute (GdaMetaTableColumn *
tcol, GdaAttributesManagerFunc func, gpointer data); | |
| | | | |
|
| /** | | | |
| * GdaMetaTableForeignKey: | | | |
| * @meta_table: the #GdaMetaDbObject for which this structure represents a | | | |
| foreign key | | | |
| * @depend_on: the #GdaMetaDbObject which is referenced by the foreign key | | | |
| * @cols_nb: the size of the @fk_cols_array, @fk_names_array, @ref_pk_cols_ | | | |
| array and @ref_pk_names_array arrays | | | |
| * @fk_cols_array: the columns' indexes in @meta_table which participate in | | | |
| the constraint (WARNING: columns numbering | | | |
| * here start at 1) | | | |
| * @fk_names_array: the columns' names in @meta_table which participate in | | | |
| the constraint | | | |
| * @ref_pk_cols_array: the columns' indexes in @depend_on which participate | | | |
| in the constraint (WARNING: columns numbering | | | |
| * here start at 1) | | | |
| * @ref_pk_names_array: the columns' names in @depend_on which participate | | | |
| in the constraint | | | |
| * | | | |
| * This structure represents a foreign key constraint, its contents must no | | | |
| t be modified. | | | |
| */ | | | |
| typedef struct { | | typedef struct { | |
|
| /*< public >*/ | | | |
| GdaMetaDbObject *meta_table; | | GdaMetaDbObject *meta_table; | |
| GdaMetaDbObject *depend_on; | | GdaMetaDbObject *depend_on; | |
| | | | |
| gint cols_nb; | | gint cols_nb; | |
| gint *fk_cols_array; /* FK fields index */ | | gint *fk_cols_array; /* FK fields index */ | |
| gchar **fk_names_array; /* FK fields names */ | | gchar **fk_names_array; /* FK fields names */ | |
| gint *ref_pk_cols_array; /* Ref PK fields index */ | | gint *ref_pk_cols_array; /* Ref PK fields index */ | |
| gchar **ref_pk_names_array; /* Ref PK fields names */ | | gchar **ref_pk_names_array; /* Ref PK fields names */ | |
| | | | |
|
| /*< 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; | |
| } GdaMetaTableForeignKey; | | } GdaMetaTableForeignKey; | |
| #define GDA_META_TABLE_FOREIGN_KEY(x) ((GdaMetaTableForeignKey*)(x)) | | #define GDA_META_TABLE_FOREIGN_KEY(x) ((GdaMetaTableForeignKey*)(x)) | |
| | | | |
| GType gda_meta_struct_get_type (void) G_GNUC_CONST; | | GType gda_meta_struct_get_type (void) G_GNUC_CONST; | |
| GdaMetaStruct *gda_meta_struct_new (GdaMetaStore *store
, GdaMetaStructFeature features); | | GdaMetaStruct *gda_meta_struct_new (GdaMetaStore *store
, GdaMetaStructFeature features); | |
| | | | |
End of changes. 16 change blocks. |
| 88 lines changed or deleted | | 10 lines changed or added | |
|
| gda-server-provider.h | | gda-server-provider.h | |
| | | | |
| skipping to change at line 180 | | skipping to change at line 180 | |
| | | | |
| /* _routine_columns */ | | /* _routine_columns */ | |
| gboolean (*_routine_col) (GdaServerProvider *, GdaConnection *,
GdaMetaStore *, GdaMetaContext *, GError **); | | gboolean (*_routine_col) (GdaServerProvider *, GdaConnection *,
GdaMetaStore *, GdaMetaContext *, GError **); | |
| gboolean (*routine_col) (GdaServerProvider *, GdaConnection *,
GdaMetaStore *, GdaMetaContext *, GError **, | | gboolean (*routine_col) (GdaServerProvider *, GdaConnection *,
GdaMetaStore *, GdaMetaContext *, GError **, | |
| const GValue *rout_catalog, const GVal
ue *rout_schema, const GValue *rout_name); | | const GValue *rout_catalog, const GVal
ue *rout_schema, const GValue *rout_name); | |
| | | | |
| /* _parameters */ | | /* _parameters */ | |
| gboolean (*_routine_par) (GdaServerProvider *, GdaConnection *,
GdaMetaStore *, GdaMetaContext *, GError **); | | gboolean (*_routine_par) (GdaServerProvider *, GdaConnection *,
GdaMetaStore *, GdaMetaContext *, GError **); | |
| gboolean (*routine_par) (GdaServerProvider *, GdaConnection *,
GdaMetaStore *, GdaMetaContext *, GError **, | | gboolean (*routine_par) (GdaServerProvider *, GdaConnection *,
GdaMetaStore *, GdaMetaContext *, GError **, | |
| const GValue *rout_catalog, const GVal
ue *rout_schema, const GValue *rout_name); | | const GValue *rout_catalog, const GVal
ue *rout_schema, const GValue *rout_name); | |
|
| /* _table_indexes */ | | | |
| gboolean (*_indexes_tab) (GdaServerProvider *, GdaConnection *, | | | |
| GdaMetaStore *, GdaMetaContext *, GError **); | | | |
| gboolean (*indexes_tab) (GdaServerProvider *, GdaConnection *, | | | |
| GdaMetaStore *, GdaMetaContext *, GError **, | | | |
| const GValue *table_catalog, const GVa | | | |
| lue *table_schema, const GValue *table_name, | | | |
| const GValue *index_name_n); | | | |
| | | | |
| /* _index_column_usage */ | | | |
| gboolean (*_index_cols) (GdaServerProvider *, GdaConnection *, | | | |
| GdaMetaStore *, GdaMetaContext *, GError **); | | | |
| gboolean (*index_cols) (GdaServerProvider *, GdaConnection *, | | | |
| GdaMetaStore *, GdaMetaContext *, GError **, | | | |
| const GValue *table_catalog, const GVa | | | |
| lue *table_schema, const GValue *table_name, const GValue *index_name); | | | |
| | | | |
| /* Padding for future expansion */ | | /* Padding for future expansion */ | |
|
| | | void (*_gda_reserved1) (void); | |
| | | void (*_gda_reserved2) (void); | |
| | | void (*_gda_reserved3) (void); | |
| | | void (*_gda_reserved4) (void); | |
| void (*_gda_reserved5) (void); | | void (*_gda_reserved5) (void); | |
| void (*_gda_reserved6) (void); | | void (*_gda_reserved6) (void); | |
| void (*_gda_reserved7) (void); | | void (*_gda_reserved7) (void); | |
| void (*_gda_reserved8) (void); | | void (*_gda_reserved8) (void); | |
| void (*_gda_reserved9) (void); | | void (*_gda_reserved9) (void); | |
| void (*_gda_reserved10) (void); | | void (*_gda_reserved10) (void); | |
| void (*_gda_reserved11) (void); | | void (*_gda_reserved11) (void); | |
| void (*_gda_reserved12) (void); | | void (*_gda_reserved12) (void); | |
| void (*_gda_reserved13) (void); | | void (*_gda_reserved13) (void); | |
| void (*_gda_reserved14) (void); | | void (*_gda_reserved14) (void); | |
| | | | |
| skipping to change at line 303 | | skipping to change at line 297 | |
| gboolean (* cancel) (GdaServerProvider
*provider, GdaConnection *cnc, | | gboolean (* cancel) (GdaServerProvider
*provider, GdaConnection *cnc, | |
| guint task_id, GEr
ror **error); | | guint task_id, GEr
ror **error); | |
| GdaConnection *(* create_connection) (GdaServerProvider
*provider); | | GdaConnection *(* create_connection) (GdaServerProvider
*provider); | |
| | | | |
| /* meta data reporting */ | | /* meta data reporting */ | |
| GdaServerProviderMeta meta_funcs; | | GdaServerProviderMeta meta_funcs; | |
| | | | |
| /* distributed transaction */ | | /* distributed transaction */ | |
| GdaServerProviderXa *xa_funcs; /* it is a pointer! => set to %
NULL if unsupported by provider */ | | GdaServerProviderXa *xa_funcs; /* it is a pointer! => set to %
NULL if unsupported by provider */ | |
| | | | |
|
| /* SQL identifiers quoting */ | | gboolean (*handle_async) (GdaServerProvider | |
| gchar *(* identifier_quote) (GdaServerProvider * | | *provider, GdaConnection *cnc, GError **error); | |
| provider, GdaConnection *cnc, | | | |
| const gchar *id, | | | |
| gboolean for_meta_s | | | |
| tore, gboolean force_quotes); | | | |
| | | | |
| /* Padding for future expansion */ | | /* Padding for future expansion */ | |
| void (*_gda_reserved2) (void); | | void (*_gda_reserved2) (void); | |
| void (*_gda_reserved3) (void); | | void (*_gda_reserved3) (void); | |
| void (*_gda_reserved4) (void); | | void (*_gda_reserved4) (void); | |
| void (*_gda_reserved5) (void); | | void (*_gda_reserved5) (void); | |
| void (*_gda_reserved6) (void); | | void (*_gda_reserved6) (void); | |
| }; | | }; | |
| | | | |
| GType gda_server_provider_get_type (void) G_GNUC_CONST; | | GType gda_server_provider_get_type (void) G_GNUC_CONST; | |
| | | | |
End of changes. 3 change blocks. |
| 22 lines changed or deleted | | 6 lines changed or added | |
|
| gda-set.h | | gda-set.h | |
| | | | |
| skipping to change at line 50 | | skipping to change at line 50 | |
| 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 | |
| } 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 >*/ | | | |
| /* Padding for future expansion */ | | /* Padding for future expansion */ | |
| gpointer _gda_reserved1; | | gpointer _gda_reserved1; | |
| gpointer _gda_reserved2; | | gpointer _gda_reserved2; | |
| }; | | }; | |
| | | | |
| 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 >*/ | | | |
| /* Padding for future expansion */ | | /* Padding for future expansion */ | |
| gpointer _gda_reserved1; | | gpointer _gda_reserved1; | |
| gpointer _gda_reserved2; | | gpointer _gda_reserved2; | |
| }; | | }; | |
| | | | |
| 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 >*/ | | | |
| /* 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 */ | |
| struct _GdaSet | | struct _GdaSet | |
| { | | { | |
| GObject object; | | GObject object; | |
| GdaSetPrivate *priv; | | GdaSetPrivate *priv; | |
| | | | |
|
| /* public READ ONLY data */ | | /*< 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 */ | |
| }; | | }; | |
| | | | |
| /* struct for the object's class */ | | /* struct for the object's class */ | |
| struct _GdaSetClass | | struct _GdaSetClass | |
| { | | { | |
| GObjectClass parent_class; | | GObjectClass parent_class; | |
| | | | |
| skipping to change at line 136 | | skipping to change at line 133 | |
| void gda_set_remove_holder (GdaSet *set, GdaHolder *hol
der); | | void gda_set_remove_holder (GdaSet *set, GdaHolder *hol
der); | |
| void gda_set_merge_with_set (GdaSet *set, GdaSet *set_to
_merge); | | void gda_set_merge_with_set (GdaSet *set, GdaSet *set_to
_merge); | |
| gboolean gda_set_is_valid (GdaSet *set, GError **error
); | | gboolean gda_set_is_valid (GdaSet *set, GError **error
); | |
| | | | |
| /* public data lookup functions */ | | /* public data lookup functions */ | |
| GdaSetNode *gda_set_get_node (GdaSet *set, GdaHolder *hol
der); | | GdaSetNode *gda_set_get_node (GdaSet *set, GdaHolder *hol
der); | |
| GdaSetSource *gda_set_get_source_for_model (GdaSet *set, GdaDataModel *
model); | | GdaSetSource *gda_set_get_source_for_model (GdaSet *set, GdaDataModel *
model); | |
| GdaSetSource *gda_set_get_source (GdaSet *set, GdaHolder *hol
der); | | GdaSetSource *gda_set_get_source (GdaSet *set, GdaHolder *hol
der); | |
| GdaSetGroup *gda_set_get_group (GdaSet *set, GdaHolder *hol
der); | | GdaSetGroup *gda_set_get_group (GdaSet *set, GdaHolder *hol
der); | |
| | | | |
|
| /* private */ | | | |
| gboolean _gda_set_validate (GdaSet *set, GError **error | | | |
| ); | | | |
| | | | |
| G_END_DECLS | | G_END_DECLS | |
| | | | |
| #endif | | #endif | |
| | | | |
End of changes. 5 change blocks. |
| 8 lines changed or deleted | | 1 lines changed or added | |
|
| gda-sql-parser-enum-types.h | | gda-sql-parser-enum-types.h | |
| | | | |
|
| | | /* Generated data (by glib-mkenums) */ | |
| | | | |
| #ifndef __LIBGDA_SQL_PARSER_ENUM_TYPES_H__ | | #ifndef __LIBGDA_SQL_PARSER_ENUM_TYPES_H__ | |
| #define __LIBGDA_SQL_PARSER_ENUM_TYPES_H__ | | #define __LIBGDA_SQL_PARSER_ENUM_TYPES_H__ | |
| | | | |
| #include <glib-object.h> | | #include <glib-object.h> | |
| | | | |
| G_BEGIN_DECLS | | G_BEGIN_DECLS | |
| /* enumerations from "gda-sql-parser.h" */ | | /* enumerations from "gda-sql-parser.h" */ | |
| GType gda_sql_parser_error_get_type (void); | | GType gda_sql_parser_error_get_type (void); | |
|
| #define GDA_TYPE_SQL_PARSER_ERROR (gda_sql_parser_error_get_type()) | | #define GDA_SQL_PARSER_TYPE_SQL_PARSER_ERROR (gda_sql_parser_error_get_type
()) | |
| GType gda_sql_parser_mode_get_type (void); | | GType gda_sql_parser_mode_get_type (void); | |
|
| #define GDA_TYPE_SQL_PARSER_MODE (gda_sql_parser_mode_get_type()) | | #define GDA_SQL_PARSER_TYPE_SQL_PARSER_MODE (gda_sql_parser_mode_get_type()
) | |
| GType gda_sql_parser_flavour_get_type (void); | | GType gda_sql_parser_flavour_get_type (void); | |
|
| #define GDA_TYPE_SQL_PARSER_FLAVOUR (gda_sql_parser_flavour_get_type()) | | #define GDA_SQL_PARSER_TYPE_SQL_PARSER_FLAVOUR (gda_sql_parser_flavour_get_
type()) | |
| /* enumerations from "gda-statement-struct-decl.h" */ | | /* enumerations from "gda-statement-struct-decl.h" */ | |
|
| GType gda_sql_error_get_type (void); | | GType gda_sql_error_type_get_type (void); | |
| #define GDA_TYPE_SQL_ERROR (gda_sql_error_get_type()) | | #define GDA_SQL_PARSER_TYPE_SQL_ERROR_TYPE (gda_sql_error_type_get_type()) | |
| GType gda_sql_statement_type_get_type (void); | | GType gda_sql_statement_type_get_type (void); | |
|
| #define GDA_TYPE_SQL_STATEMENT_TYPE (gda_sql_statement_type_get_type()) | | #define GDA_SQL_PARSER_TYPE_SQL_STATEMENT_TYPE (gda_sql_statement_type_get_
type()) | |
| GType gda_sql_any_part_type_get_type (void); | | GType gda_sql_any_part_type_get_type (void); | |
|
| #define GDA_TYPE_SQL_ANY_PART_TYPE (gda_sql_any_part_type_get_type()) | | #define GDA_SQL_PARSER_TYPE_SQL_ANY_PART_TYPE (gda_sql_any_part_type_get_ty
pe()) | |
| /* enumerations from "gda-statement-struct-compound.h" */ | | /* enumerations from "gda-statement-struct-compound.h" */ | |
| GType gda_sql_statement_compound_type_get_type (void); | | GType gda_sql_statement_compound_type_get_type (void); | |
|
| #define GDA_TYPE_SQL_STATEMENT_COMPOUND_TYPE (gda_sql_statement_compound_ty
pe_get_type()) | | #define GDA_SQL_PARSER_TYPE_SQL_STATEMENT_COMPOUND_TYPE (gda_sql_statement_
compound_type_get_type()) | |
| /* enumerations from "gda-statement-struct-parts.h" */ | | /* enumerations from "gda-statement-struct-parts.h" */ | |
| GType gda_sql_operator_type_get_type (void); | | GType gda_sql_operator_type_get_type (void); | |
|
| #define GDA_TYPE_SQL_OPERATOR_TYPE (gda_sql_operator_type_get_type()) | | #define GDA_SQL_PARSER_TYPE_SQL_OPERATOR_TYPE (gda_sql_operator_type_get_ty
pe()) | |
| GType gda_sql_select_join_type_get_type (void); | | GType gda_sql_select_join_type_get_type (void); | |
|
| #define GDA_TYPE_SQL_SELECT_JOIN_TYPE (gda_sql_select_join_type_get_type()) | | #define GDA_SQL_PARSER_TYPE_SQL_SELECT_JOIN_TYPE (gda_sql_select_join_type_
get_type()) | |
| G_END_DECLS | | G_END_DECLS | |
| | | | |
| #endif /* __LIBGDA_ENUM_TYPES_H__ */ | | #endif /* __LIBGDA_ENUM_TYPES_H__ */ | |
| | | | |
|
| /* Content designed to maitain API/ABI */ | | /* Generated data ends here */ | |
| | | | |
| #ifndef __LIBGDA_SQL_PARSER_ENUM_TYPES_KEEPAPI_H__ | | | |
| #define __LIBGDA_SQL_PARSER_ENUM_TYPES_KEEPAPI_H__ | | | |
| | | | |
| GType gda_sql_error_type_get_type (void); | | | |
| #define GDA_SQL_PARSER_TYPE_SQL_ERROR_TYPE (gda_sql_error_type_get_type()) | | | |
| | | | |
| #define GDA_SQL_PARSER_TYPE_SQL_PARSER_ERROR (gda_sql_parser_error_get_type | | | |
| ()) | | | |
| #define GDA_SQL_PARSER_TYPE_SQL_PARSER_MODE (gda_sql_parser_mode_get_type() | | | |
| ) | | | |
| #define GDA_SQL_PARSER_TYPE_SQL_PARSER_FLAVOUR (gda_sql_parser_flavour_get_ | | | |
| type()) | | | |
| #define GDA_SQL_PARSER_TYPE_SQL_ERROR (gda_sql_error_get_type()) | | | |
| #define GDA_SQL_PARSER_TYPE_SQL_STATEMENT_TYPE (gda_sql_statement_type_get_ | | | |
| type()) | | | |
| #define GDA_SQL_PARSER_TYPE_SQL_ANY_PART_TYPE (gda_sql_any_part_type_get_ty | | | |
| pe()) | | | |
| #define GDA_SQL_PARSER_TYPE_SQL_STATEMENT_COMPOUND_TYPE (gda_sql_statement_ | | | |
| compound_type_get_type()) | | | |
| #define GDA_SQL_PARSER_TYPE_SQL_OPERATOR_TYPE (gda_sql_operator_type_get_ty | | | |
| pe()) | | | |
| #define GDA_SQL_PARSER_TYPE_SQL_SELECT_JOIN_TYPE (gda_sql_select_join_type_ | | | |
| get_type()) | | | |
| | | | |
| #endif | | | |
| | | | |
End of changes. 11 change blocks. |
| 10 lines changed or deleted | | 12 lines changed or added | |
|
| gda-statement-struct-parts.h | | gda-statement-struct-parts.h | |
| | | | |
| skipping to change at line 30 | | skipping to change at line 30 | |
| #ifndef _GDA_STATEMENT_STRUCT_PARTS_H | | #ifndef _GDA_STATEMENT_STRUCT_PARTS_H | |
| #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 | | | |
| | | | |
| typedef struct _GdaSqlExpr GdaSqlExpr; | | typedef struct _GdaSqlExpr GdaSqlExpr; | |
| typedef struct _GdaSqlField GdaSqlField; | | typedef struct _GdaSqlField GdaSqlField; | |
| typedef struct _GdaSqlTable GdaSqlTable; | | typedef struct _GdaSqlTable GdaSqlTable; | |
| typedef struct _GdaSqlFunction GdaSqlFunction; | | typedef struct _GdaSqlFunction GdaSqlFunction; | |
| typedef struct _GdaSqlOperation GdaSqlOperation; | | typedef struct _GdaSqlOperation GdaSqlOperation; | |
| typedef struct _GdaSqlCase GdaSqlCase; | | typedef struct _GdaSqlCase GdaSqlCase; | |
| typedef struct _GdaSqlSelectField GdaSqlSelectField; | | typedef struct _GdaSqlSelectField GdaSqlSelectField; | |
| typedef struct _GdaSqlSelectTarget GdaSqlSelectTarget; | | typedef struct _GdaSqlSelectTarget GdaSqlSelectTarget; | |
| typedef struct _GdaSqlSelectJoin GdaSqlSelectJoin; | | typedef struct _GdaSqlSelectJoin GdaSqlSelectJoin; | |
| typedef struct _GdaSqlSelectFrom GdaSqlSelectFrom; | | typedef struct _GdaSqlSelectFrom GdaSqlSelectFrom; | |
| | | | |
| skipping to change at line 58 | | skipping to change at line 56 | |
| GdaSqlAnyPart any; | | GdaSqlAnyPart any; | |
| GValue *value; | | GValue *value; | |
| GdaSqlParamSpec *param_spec; | | GdaSqlParamSpec *param_spec; | |
| GdaSqlFunction *func; | | GdaSqlFunction *func; | |
| GdaSqlOperation *cond; | | GdaSqlOperation *cond; | |
| GdaSqlAnyPart *select; /* SELECT OR COMPOUND statements: GdaSqlSta
tementSelect or GdaSqlStatementCompound */ | | GdaSqlAnyPart *select; /* SELECT OR COMPOUND statements: GdaSqlSta
tementSelect or GdaSqlStatementCompound */ | |
| GdaSqlCase *case_s; | | GdaSqlCase *case_s; | |
| | | | |
| gchar *cast_as; | | gchar *cast_as; | |
| | | | |
|
| gpointer value_is_ident; /* pointer to a boolean to keep ABI | | | |
| from 4.0. | | | |
| * Non NULL if @value represents an | | | |
| SQL identifier | | | |
| * Mem in _NOT_ allocated! | | | |
| */ | | | |
| | | | |
| /*< private >*/ | | | |
| /* Padding for future expansion */ | | /* Padding for future expansion */ | |
|
| | | gpointer _gda_reserved1; | |
| gpointer _gda_reserved2; | | gpointer _gda_reserved2; | |
| }; | | }; | |
| | | | |
| 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); | |
| | | | |
| skipping to change at line 86 | | skipping to change at line 79 | |
| /* | | /* | |
| * Any Table's field | | * Any Table's field | |
| */ | | */ | |
| struct _GdaSqlField { | | struct _GdaSqlField { | |
| GdaSqlAnyPart any; | | GdaSqlAnyPart any; | |
| gchar *field_name; | | gchar *field_name; | |
| | | | |
| /* validity check with a connection */ | | /* validity check with a connection */ | |
| GdaMetaTableColumn *validity_meta_table_column; | | GdaMetaTableColumn *validity_meta_table_column; | |
| | | | |
|
| /*< private >*/ | | | |
| /* Padding for future expansion */ | | /* Padding for future expansion */ | |
| gpointer _gda_reserved1; | | gpointer _gda_reserved1; | |
| gpointer _gda_reserved2; | | gpointer _gda_reserved2; | |
| }; | | }; | |
| | | | |
| GdaSqlField *gda_sql_field_new (GdaSqlAnyPart *parent); | | GdaSqlField *gda_sql_field_new (GdaSqlAnyPart *parent); | |
| void gda_sql_field_free (GdaSqlField *field); | | void gda_sql_field_free (GdaSqlField *field); | |
| 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); | |
| | | | |
| skipping to change at line 111 | | skipping to change at line 103 | |
| * Any table | | * Any table | |
| */ | | */ | |
| struct _GdaSqlTable | | struct _GdaSqlTable | |
| { | | { | |
| GdaSqlAnyPart any; | | GdaSqlAnyPart any; | |
| gchar *table_name; | | gchar *table_name; | |
| | | | |
| /* validity check with a connection */ | | /* validity check with a connection */ | |
| GdaMetaDbObject *validity_meta_object; | | GdaMetaDbObject *validity_meta_object; | |
| | | | |
|
| /*< private >*/ | | | |
| /* Padding for future expansion */ | | /* Padding for future expansion */ | |
| gpointer _gda_reserved1; | | gpointer _gda_reserved1; | |
| gpointer _gda_reserved2; | | gpointer _gda_reserved2; | |
| }; | | }; | |
| | | | |
| GdaSqlTable *gda_sql_table_new (GdaSqlAnyPart *parent); | | GdaSqlTable *gda_sql_table_new (GdaSqlAnyPart *parent); | |
| void gda_sql_table_free (GdaSqlTable *table); | | void gda_sql_table_free (GdaSqlTable *table); | |
| 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); | |
| | | | |
| skipping to change at line 133 | | skipping to change at line 124 | |
| 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 | |
| */ | | */ | |
| struct _GdaSqlFunction { | | struct _GdaSqlFunction { | |
| GdaSqlAnyPart any; | | GdaSqlAnyPart any; | |
| gchar *function_name; | | gchar *function_name; | |
| GSList *args_list; | | GSList *args_list; | |
| | | | |
|
| /*< private >*/ | | | |
| /* Padding for future expansion */ | | /* Padding for future expansion */ | |
| gpointer _gda_reserved1; | | gpointer _gda_reserved1; | |
| gpointer _gda_reserved2; | | gpointer _gda_reserved2; | |
| }; | | }; | |
| | | | |
| GdaSqlFunction *gda_sql_function_new (GdaSqlAnyPart *parent); | | GdaSqlFunction *gda_sql_function_new (GdaSqlAnyPart *parent); | |
| void gda_sql_function_free (GdaSqlFunction *function)
; | | void gda_sql_function_free (GdaSqlFunction *function)
; | |
| GdaSqlFunction *gda_sql_function_copy (GdaSqlFunction *function)
; | | GdaSqlFunction *gda_sql_function_copy (GdaSqlFunction *function)
; | |
| gchar *gda_sql_function_serialize (GdaSqlFunction *function)
; | | gchar *gda_sql_function_serialize (GdaSqlFunction *function)
; | |
| void gda_sql_function_check_clean (GdaSqlFunction *function)
; | | void gda_sql_function_check_clean (GdaSqlFunction *function)
; | |
| | | | |
| skipping to change at line 191 | | skipping to change at line 181 | |
| 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 | |
| } GdaSqlOperatorType; | | } GdaSqlOperatorType; | |
| | | | |
| struct _GdaSqlOperation { | | struct _GdaSqlOperation { | |
| GdaSqlAnyPart any; | | GdaSqlAnyPart any; | |
| GdaSqlOperatorType operator_type; | | GdaSqlOperatorType operator_type; | |
| GSList *operands; | | GSList *operands; | |
| | | | |
|
| /*< private >*/ | | | |
| /* Padding for future expansion */ | | /* Padding for future expansion */ | |
| gpointer _gda_reserved1; | | gpointer _gda_reserved1; | |
| gpointer _gda_reserved2; | | gpointer _gda_reserved2; | |
| }; | | }; | |
| | | | |
| GdaSqlOperation *gda_sql_operation_new (GdaSqlAnyPart *parent); | | GdaSqlOperation *gda_sql_operation_new (GdaSqlAnyPart *parent); | |
| 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); | |
| | | | |
| skipping to change at line 215 | | skipping to change at line 204 | |
| * A CASE expression | | * A CASE expression | |
| */ | | */ | |
| struct _GdaSqlCase | | struct _GdaSqlCase | |
| { | | { | |
| GdaSqlAnyPart any; | | GdaSqlAnyPart any; | |
| GdaSqlExpr *base_expr; | | GdaSqlExpr *base_expr; | |
| GSList *when_expr_list; | | GSList *when_expr_list; | |
| GSList *then_expr_list; | | GSList *then_expr_list; | |
| GdaSqlExpr *else_expr; | | GdaSqlExpr *else_expr; | |
| | | | |
|
| /*< private >*/ | | | |
| /* Padding for future expansion */ | | /* Padding for future expansion */ | |
| gpointer _gda_reserved1; | | gpointer _gda_reserved1; | |
| gpointer _gda_reserved2; | | gpointer _gda_reserved2; | |
| }; | | }; | |
| | | | |
| 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); | |
| | | | |
| | | | |
| skipping to change at line 241 | | skipping to change at line 229 | |
| GdaSqlAnyPart any; | | GdaSqlAnyPart any; | |
| GdaSqlExpr *expr; | | GdaSqlExpr *expr; | |
| gchar *field_name; /* may be NULL if expr does not refe
r to a table.field, can also be "*" */ | | gchar *field_name; /* may be NULL if expr does not refe
r to a table.field, can also be "*" */ | |
| gchar *table_name; /* may be NULL if expr does not refe
r to a table.field */ | | gchar *table_name; /* may be NULL if expr does not refe
r to a table.field */ | |
| gchar *as; | | gchar *as; | |
| | | | |
| /* validity check with a connection */ | | /* validity check with a connection */ | |
| GdaMetaDbObject *validity_meta_object; | | GdaMetaDbObject *validity_meta_object; | |
| GdaMetaTableColumn *validity_meta_table_column; | | GdaMetaTableColumn *validity_meta_table_column; | |
| | | | |
|
| /*< private >*/ | | | |
| /* Padding for future expansion */ | | /* Padding for future expansion */ | |
| gpointer _gda_reserved1; | | gpointer _gda_reserved1; | |
| gpointer _gda_reserved2; | | gpointer _gda_reserved2; | |
| }; | | }; | |
| | | | |
| GdaSqlSelectField *gda_sql_select_field_new (GdaSqlAnyPart *pare
nt); | | GdaSqlSelectField *gda_sql_select_field_new (GdaSqlAnyPart *pare
nt); | |
| void gda_sql_select_field_free (GdaSqlSelectField *
field); | | void gda_sql_select_field_free (GdaSqlSelectField *
field); | |
| GdaSqlSelectField *gda_sql_select_field_copy (GdaSqlSelectField *
field); | | GdaSqlSelectField *gda_sql_select_field_copy (GdaSqlSelectField *
field); | |
| gchar *gda_sql_select_field_serialize (GdaSqlSelectField *
field); | | gchar *gda_sql_select_field_serialize (GdaSqlSelectField *
field); | |
| void _gda_sql_select_field_check_clean (GdaSqlSelectField *
field); | | void _gda_sql_select_field_check_clean (GdaSqlSelectField *
field); | |
| | | | |
| skipping to change at line 270 | | skipping to change at line 257 | |
| struct _GdaSqlSelectTarget | | struct _GdaSqlSelectTarget | |
| { | | { | |
| GdaSqlAnyPart any; | | GdaSqlAnyPart any; | |
| GdaSqlExpr *expr; | | GdaSqlExpr *expr; | |
| gchar *table_name; /* may be NULL if expr does not refe
r to a table */ | | gchar *table_name; /* may be NULL if expr does not refe
r to a table */ | |
| gchar *as; | | gchar *as; | |
| | | | |
| /* validity check with a connection */ | | /* validity check with a connection */ | |
| GdaMetaDbObject *validity_meta_object; | | GdaMetaDbObject *validity_meta_object; | |
| | | | |
|
| /*< private >*/ | | | |
| /* Padding for future expansion */ | | /* Padding for future expansion */ | |
| gpointer _gda_reserved1; | | gpointer _gda_reserved1; | |
| gpointer _gda_reserved2; | | gpointer _gda_reserved2; | |
| }; | | }; | |
| | | | |
| GdaSqlSelectTarget *gda_sql_select_target_new (GdaSqlAnyPart *pa
rent); | | GdaSqlSelectTarget *gda_sql_select_target_new (GdaSqlAnyPart *pa
rent); | |
| void gda_sql_select_target_free (GdaSqlSelectTarge
t *target); | | void gda_sql_select_target_free (GdaSqlSelectTarge
t *target); | |
| GdaSqlSelectTarget *gda_sql_select_target_copy (GdaSqlSelectTarge
t *target); | | GdaSqlSelectTarget *gda_sql_select_target_copy (GdaSqlSelectTarge
t *target); | |
| gchar *gda_sql_select_target_serialize (GdaSqlSelectTarge
t *target); | | gchar *gda_sql_select_target_serialize (GdaSqlSelectTarge
t *target); | |
| void _gda_sql_select_target_check_clean (GdaSqlSelectTarge
t *target); | | void _gda_sql_select_target_check_clean (GdaSqlSelectTarge
t *target); | |
| | | | |
| skipping to change at line 303 | | skipping to change at line 289 | |
| 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; | |
| struct _GdaSqlSelectJoin | | struct _GdaSqlSelectJoin | |
| { | | { | |
| GdaSqlAnyPart any; | | GdaSqlAnyPart any; | |
| GdaSqlSelectJoinType type; | | GdaSqlSelectJoinType type; | |
| gint position; /* between a target at (pos < @posit
ion) and the one @position */ | | gint position; /* between a target at (pos < @posit
ion) and the one @position */ | |
| GdaSqlExpr *expr; | | GdaSqlExpr *expr; | |
|
| GSList *use; | | GSList *use; /* list of GdaSqlField pointers */ | |
| | | | |
|
| /*< private >*/ | | | |
| /* Padding for future expansion */ | | /* Padding for future expansion */ | |
| gpointer _gda_reserved1; | | gpointer _gda_reserved1; | |
| gpointer _gda_reserved2; | | gpointer _gda_reserved2; | |
| }; | | }; | |
| | | | |
| GdaSqlSelectJoin *gda_sql_select_join_new (GdaSqlAnyPart *paren
t); | | GdaSqlSelectJoin *gda_sql_select_join_new (GdaSqlAnyPart *paren
t); | |
| 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); | |
| | | | |
| | | | |
| skipping to change at line 327 | | skipping to change at line 312 | |
| | | | |
| /* | | /* | |
| * Any FROM ... in a SELECT statement | | * Any FROM ... in a SELECT statement | |
| */ | | */ | |
| struct _GdaSqlSelectFrom | | struct _GdaSqlSelectFrom | |
| { | | { | |
| GdaSqlAnyPart any; | | GdaSqlAnyPart any; | |
| GSList *targets; | | GSList *targets; | |
| GSList *joins; | | GSList *joins; | |
| | | | |
|
| /*< private >*/ | | | |
| /* Padding for future expansion */ | | /* Padding for future expansion */ | |
| gpointer _gda_reserved1; | | gpointer _gda_reserved1; | |
| gpointer _gda_reserved2; | | gpointer _gda_reserved2; | |
| }; | | }; | |
| | | | |
| GdaSqlSelectFrom *gda_sql_select_from_new (GdaSqlAnyPart *paren
t); | | GdaSqlSelectFrom *gda_sql_select_from_new (GdaSqlAnyPart *paren
t); | |
| void gda_sql_select_from_free (GdaSqlSelectFrom *fr
om); | | void gda_sql_select_from_free (GdaSqlSelectFrom *fr
om); | |
| 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); | |
| | | | |
| | | | |
| skipping to change at line 351 | | skipping to change at line 335 | |
| /* | | /* | |
| * Any expression in a SELECT ... after the ORDER BY | | * Any expression in a SELECT ... after the ORDER BY | |
| */ | | */ | |
| struct _GdaSqlSelectOrder | | struct _GdaSqlSelectOrder | |
| { | | { | |
| GdaSqlAnyPart any; | | GdaSqlAnyPart any; | |
| GdaSqlExpr *expr; | | GdaSqlExpr *expr; | |
| gboolean asc; | | gboolean asc; | |
| gchar *collation_name; | | gchar *collation_name; | |
| | | | |
|
| /*< private >*/ | | | |
| /* Padding for future expansion */ | | /* Padding for future expansion */ | |
| gpointer _gda_reserved1; | | gpointer _gda_reserved1; | |
| gpointer _gda_reserved2; | | gpointer _gda_reserved2; | |
| }; | | }; | |
| | | | |
| GdaSqlSelectOrder *gda_sql_select_order_new (GdaSqlAnyPart *pare
nt); | | GdaSqlSelectOrder *gda_sql_select_order_new (GdaSqlAnyPart *pare
nt); | |
| void gda_sql_select_order_free (GdaSqlSelectOrder *
order); | | void gda_sql_select_order_free (GdaSqlSelectOrder *
order); | |
| GdaSqlSelectOrder *gda_sql_select_order_copy (GdaSqlSelectOrder *
order); | | GdaSqlSelectOrder *gda_sql_select_order_copy (GdaSqlSelectOrder *
order); | |
| gchar *gda_sql_select_order_serialize (GdaSqlSelectOrder *
order); | | gchar *gda_sql_select_order_serialize (GdaSqlSelectOrder *
order); | |
| | | | |
|
| G_END_DECLS | | | |
| | | | |
| #endif | | #endif | |
| | | | |
End of changes. 15 change blocks. |
| 23 lines changed or deleted | | 2 lines changed or added | |
|
| gda-value.h | | gda-value.h | |
| | | | |
| skipping to change at line 98 | | skipping to change at line 98 | |
| gushort second; | | gushort second; | |
| gulong fraction; | | gulong fraction; | |
| glong timezone; /* # of seconds to the east UTC */ | | glong timezone; /* # of seconds to the east UTC */ | |
| } GdaTimestamp; | | } GdaTimestamp; | |
| | | | |
| typedef struct { | | typedef struct { | |
| guchar *data; | | guchar *data; | |
| glong binary_length; | | glong binary_length; | |
| } GdaBinary; | | } GdaBinary; | |
| | | | |
|
| /** | | | |
| * GdaBlob | | | |
| * @data: data buffer, as a #GdaBinary | | | |
| * @op: a pointer to a #GdaBlopOp, or %NULL | | | |
| * | | | |
| * Represents some binary data, accessed through a #GdaBlobOp object. | | | |
| * @op is generally set up by database providers when giving access to an e | | | |
| xisting BLOB in | | | |
| * a database, but can be modified if needed using gda_blob_set_op(). | | | |
| */ | | | |
| typedef struct { | | typedef struct { | |
| GdaBinary data; | | GdaBinary data; | |
|
| GdaBlobOp *op; | | GdaBlobOp *op; /* set up by providers if the GdaBlob is linked to so | |
| | | mething actually existing in the database, | |
| | | useable by anyone */ | |
| } GdaBlob; | | } GdaBlob; | |
| | | | |
| typedef GList GdaValueList; | | typedef GList GdaValueList; | |
| | | | |
| #define gda_value_isa(value, type) (G_VALUE_HOLDS(value, type)) | | #define gda_value_isa(value, type) (G_VALUE_HOLDS(value, type)) | |
| | | | |
| GValue *gda_value_new (GType type); | | GValue *gda_value_new (GType type); | |
| | | | |
| GValue *gda_value_new_binary (const guchar *val,
glong size); | | GValue *gda_value_new_binary (const guchar *val,
glong size); | |
| GValue *gda_value_new_blob (const guchar *val, gl
ong size); | | GValue *gda_value_new_blob (const guchar *val, gl
ong size); | |
| | | | |
| skipping to change at line 176 | | skipping to change at line 168 | |
| | | | |
| gchar *gda_binary_to_string (const GdaBinary *bi
n, guint maxlen); | | gchar *gda_binary_to_string (const GdaBinary *bi
n, guint maxlen); | |
| GdaBinary *gda_string_to_binary (const gchar *str); | | GdaBinary *gda_string_to_binary (const gchar *str); | |
| | | | |
| gchar *gda_blob_to_string (GdaBlob *blob, guint
maxlen); | | gchar *gda_blob_to_string (GdaBlob *blob, guint
maxlen); | |
| GdaBlob *gda_string_to_blob (const gchar *str); | | GdaBlob *gda_string_to_blob (const gchar *str); | |
| | | | |
| /* Custom data types */ | | /* Custom data types */ | |
| | | | |
| GType gda_numeric_get_type (void) G_GNUC_CONST; | | GType gda_numeric_get_type (void) G_GNUC_CONST; | |
|
| gpointer gda_numeric_copy (gpointer boxed); | | gpointer gda_numeric_copy (gpointer boxed) G_GNUC_ | |
| void gda_numeric_free (gpointer boxed); | | CONST; | |
| | | void gda_numeric_free (gpointer boxed) G_GNUC_ | |
| | | CONST; | |
| | | | |
| GType gda_time_get_type (void) G_GNUC_CONST; | | GType gda_time_get_type (void) G_GNUC_CONST; | |
|
| gpointer gda_time_copy (gpointer boxed); | | gpointer gda_time_copy (gpointer boxed) G_GNUC_CON | |
| void gda_time_free (gpointer boxed); | | ST; | |
| | | void gda_time_free (gpointer boxed) G_GNUC_CON | |
| | | ST; | |
| | | | |
| GType gda_timestamp_get_type (void) G_GNUC_CONS
T; | | GType gda_timestamp_get_type (void) G_GNUC_CONS
T; | |
|
| gpointer gda_timestamp_copy (gpointer boxed); | | gpointer gda_timestamp_copy (gpointer boxed) G_GNU | |
| void gda_timestamp_free (gpointer boxed); | | C_CONST; | |
| | | void gda_timestamp_free (gpointer boxed) G_GNU | |
| | | C_CONST; | |
| | | | |
| GType gda_geometricpoint_get_type (void) G_GNUC
_CONST; | | GType gda_geometricpoint_get_type (void) G_GNUC
_CONST; | |
|
| gpointer gda_geometricpoint_copy (gpointer boxed); | | gpointer gda_geometricpoint_copy (gpointer boxed) | |
| void gda_geometricpoint_free (gpointer boxed); | | G_GNUC_CONST; | |
| | | void gda_geometricpoint_free (gpointer boxed) | |
| | | G_GNUC_CONST; | |
| | | | |
| GType gda_binary_get_type (void) G_GNUC_CONST; | | GType gda_binary_get_type (void) G_GNUC_CONST; | |
|
| gpointer gda_binary_copy (gpointer boxed); | | gpointer gda_binary_copy (gpointer boxed) G_GNUC_C | |
| void gda_binary_free (gpointer boxed); | | ONST; | |
| | | void gda_binary_free (gpointer boxed) G_GNUC_C | |
| | | ONST; | |
| | | | |
| GType gda_blob_get_type (void) G_GNUC_CONST; | | GType gda_blob_get_type (void) G_GNUC_CONST; | |
|
| gpointer gda_blob_copy (gpointer boxed); | | gpointer gda_blob_copy (gpointer boxed) G_GNUC_CON | |
| void gda_blob_free (gpointer boxed); | | ST; | |
| | | void gda_blob_free (gpointer boxed) G_GNUC_CON | |
| | | ST; | |
| void gda_blob_set_op (GdaBlob *blob, GdaBlobOp
*op); | | void gda_blob_set_op (GdaBlob *blob, GdaBlobOp
*op); | |
| | | | |
| GType gda_value_list_get_type (void) G_GNUC_CON
ST; | | GType gda_value_list_get_type (void) G_GNUC_CON
ST; | |
| GType gda_short_get_type (void) G_GNUC_CONST; | | GType gda_short_get_type (void) G_GNUC_CONST; | |
| GType gda_ushort_get_type (void) G_GNUC_CONST; | | GType gda_ushort_get_type (void) G_GNUC_CONST; | |
| | | | |
| /* Helper macros */ | | /* Helper macros */ | |
| #define gda_value_new_null() (g_new0 (GValue, 1)) | | #define gda_value_new_null() (g_new0 (GValue, 1)) | |
| | | | |
| G_END_DECLS | | G_END_DECLS | |
| | | | |
End of changes. 8 change blocks. |
| 23 lines changed or deleted | | 27 lines changed or added | |
|