| gda-data-model-import.h | | gda-data-model-import.h | |
| | | | |
| skipping to change at line 71 | | skipping to change at line 71 | |
| * | | * | |
| * The #GdaDataModelImport data model imports data from a string or a file.
The data can either be | | * The #GdaDataModelImport data model imports data from a string or a file.
The data can either be | |
| * in a CSV (comma separated values) format or in an XML format as describe
d by the libgda-array.dtd DTD (as a side | | * in a CSV (comma separated values) format or in an XML format as describe
d by the libgda-array.dtd DTD (as a side | |
| * way it is also possible to import data from an already-build XML tree va
lidated against that DTD). | | * way it is also possible to import data from an already-build XML tree va
lidated against that DTD). | |
| * | | * | |
| * The caller must decide, upon construction, if the new #GdaDataModelImpor
t must support random access or simply | | * The caller must decide, upon construction, if the new #GdaDataModelImpor
t must support random access or simply | |
| * a cursor based access. Random access makes it easier to use the resultin
g data model but consumes more memory as | | * a cursor based access. Random access makes it easier to use the resultin
g data model but consumes more memory as | |
| * all the data is copied in memory, and is thus not suitable for large dat
a sets. Note that importing from an | | * all the data is copied in memory, and is thus not suitable for large dat
a sets. Note that importing from an | |
| * already-build XML tree will always result in a random access data model. | | * already-build XML tree will always result in a random access data model. | |
| * | | * | |
|
| * Various import options can be specified using parameters in a #GdaParame
terList object. The available options | | * Various import options can be specified using parameters in a #GdaSet ob
ject. The available options | |
| * depend on the format of the imported data listed here: | | * depend on the format of the imported data listed here: | |
| * <itemizedlist> | | * <itemizedlist> | |
| * <listitem><para>"SEPARATOR" (string, CVS import only): specifies the s
eparator to consider</para></listitem> | | * <listitem><para>"SEPARATOR" (string, CVS import only): specifies the s
eparator to consider</para></listitem> | |
| * <listitem><para>"ESCAPE_CHAR" (string, CVS import only): specifies the
character used to "escape" the strings | | * <listitem><para>"ESCAPE_CHAR" (string, CVS import only): specifies the
character used to "escape" the strings | |
| * contained between two separators</para></listitem> | | * contained between two separators</para></listitem> | |
| * <listitem><para>"ENCODING" (string, CVS import only): specifies the ch
aracter set used in the imported data</para></listitem> | | * <listitem><para>"ENCODING" (string, CVS import only): specifies the ch
aracter set used in the imported data</para></listitem> | |
| * <listitem><para>"TITLE_AS_FIRST_LINE" (boolean, CVS import only): TRUE
to specify that the first line of the | | * <listitem><para>"TITLE_AS_FIRST_LINE" (boolean, CVS import only): TRUE
to specify that the first line of the | |
| * imported data contains the column names</para></listitem> | | * imported data contains the column names</para></listitem> | |
| * <listitem><para>"G_TYPE_<col number>" (GType, CVS import only):
specifies the requested GType type for the column | | * <listitem><para>"G_TYPE_<col number>" (GType, CVS import only):
specifies the requested GType type for the column | |
| * numbered "col number"</para></listitem> | | * numbered "col number"</para></listitem> | |
| | | | |
End of changes. 1 change blocks. |
| 1 lines changed or deleted | | 1 lines changed or added | |
|
| gda-data-select.h | | gda-data-select.h | |
| | | | |
| skipping to change at line 53 | | skipping to change at line 53 | |
| | | | |
| typedef enum { | | typedef enum { | |
| GDA_DATA_SELECT_MODIFICATION_STATEMENT_ERROR, | | GDA_DATA_SELECT_MODIFICATION_STATEMENT_ERROR, | |
| GDA_DATA_SELECT_MISSING_MODIFICATION_STATEMENT_ERROR, | | GDA_DATA_SELECT_MISSING_MODIFICATION_STATEMENT_ERROR, | |
| GDA_DATA_SELECT_CONNECTION_ERROR, | | GDA_DATA_SELECT_CONNECTION_ERROR, | |
| GDA_DATA_SELECT_ACCESS_ERROR, | | GDA_DATA_SELECT_ACCESS_ERROR, | |
| GDA_DATA_SELECT_SQL_ERROR, | | GDA_DATA_SELECT_SQL_ERROR, | |
| GDA_DATA_SELECT_SAFETY_LOCKED_ERROR | | GDA_DATA_SELECT_SAFETY_LOCKED_ERROR | |
| } GdaDataSelectError; | | } GdaDataSelectError; | |
| | | | |
|
| | | /** | |
| | | * GdaDataSelectConditionType: | |
| | | * @GDA_DATA_SELECT_COND_PK: only primary key fields are used | |
| | | * @GDA_DATA_SELECT_COND_ALL_COLUMNS: all the columns of the tables are use | |
| | | d | |
| | | * | |
| | | * Defines what criteria gda_data_select_compute_modification_statements_ex | |
| | | t() uses | |
| | | * to uniquely identify a single row in a table when creating modification | |
| | | statements. | |
| | | */ | |
| | | typedef enum { | |
| | | GDA_DATA_SELECT_COND_PK, | |
| | | GDA_DATA_SELECT_COND_ALL_COLUMNS | |
| | | } GdaDataSelectConditionType; | |
| | | | |
| struct _GdaDataSelect { | | struct _GdaDataSelect { | |
| GObject object; | | GObject object; | |
| GdaDataSelectPrivate *priv; | | GdaDataSelectPrivate *priv; | |
| | | | |
| /* read only information */ | | /* read only information */ | |
| GdaPStmt *prep_stmt; /* use the "prepared-stmt" property to
set this */ | | GdaPStmt *prep_stmt; /* use the "prepared-stmt" property to
set this */ | |
| gint nb_stored_rows; /* number of GdaRow objects curren
tly stored */ | | gint nb_stored_rows; /* number of GdaRow objects curren
tly stored */ | |
| gint advertized_nrows; /* set when the number of rows b
ecomes known, -1 untill then */ | | gint advertized_nrows; /* set when the number of rows b
ecomes known, -1 untill then */ | |
| | | | |
| /*< private >*/ | | /*< private >*/ | |
| | | | |
| skipping to change at line 145 | | skipping to change at line 158 | |
| | | | |
| GType gda_data_select_get_type (void) G_GNUC_C
ONST; | | GType gda_data_select_get_type (void) G_GNUC_C
ONST; | |
| | | | |
| gboolean gda_data_select_set_row_selection_condition (GdaDataSele
ct *model, GdaSqlExpr *expr, GError **error); | | gboolean gda_data_select_set_row_selection_condition (GdaDataSele
ct *model, GdaSqlExpr *expr, GError **error); | |
| gboolean gda_data_select_set_row_selection_condition_sql (GdaDataSele
ct *model, const gchar *sql_where, GError **error); | | gboolean gda_data_select_set_row_selection_condition_sql (GdaDataSele
ct *model, const gchar *sql_where, GError **error); | |
| gboolean gda_data_select_compute_row_selection_condition (GdaDataSele
ct *model, GError **error); | | gboolean gda_data_select_compute_row_selection_condition (GdaDataSele
ct *model, GError **error); | |
| | | | |
| gboolean gda_data_select_set_modification_statement (GdaDataSele
ct *model, GdaStatement *mod_stmt, GError **error); | | gboolean gda_data_select_set_modification_statement (GdaDataSele
ct *model, GdaStatement *mod_stmt, GError **error); | |
| gboolean gda_data_select_set_modification_statement_sql (GdaDataSele
ct *model, const gchar *sql, GError **error); | | gboolean gda_data_select_set_modification_statement_sql (GdaDataSele
ct *model, const gchar *sql, GError **error); | |
| gboolean gda_data_select_compute_modification_statements (GdaDataSele
ct *model, GError **error); | | gboolean gda_data_select_compute_modification_statements (GdaDataSele
ct *model, GError **error); | |
|
| | | gboolean gda_data_select_compute_modification_statements_ext (GdaData | |
| | | Select *model, | |
| | | GdaDataS | |
| | | electConditionType cond_type, | |
| | | GError * | |
| | | *error); | |
| | | | |
| gboolean gda_data_select_compute_columns_attributes (GdaDataSele
ct *model, GError **error); | | gboolean gda_data_select_compute_columns_attributes (GdaDataSele
ct *model, GError **error); | |
| GdaConnection *gda_data_select_get_connection (GdaDataSele
ct *model); | | GdaConnection *gda_data_select_get_connection (GdaDataSele
ct *model); | |
| | | | |
| gboolean gda_data_select_rerun (GdaDataSele
ct *model, GError **error); | | gboolean gda_data_select_rerun (GdaDataSele
ct *model, GError **error); | |
| | | | |
| G_END_DECLS | | G_END_DECLS | |
| | | | |
| #endif | | #endif | |
| | | | |
End of changes. 2 change blocks. |
| 0 lines changed or deleted | | 22 lines changed or added | |
|
| gda-enum-types.h | | gda-enum-types.h | |
| | | | |
| #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-batch.h" */ | | | |
| GType gda_batch_error_get_type (void); | | GType gda_batch_error_get_type (void); | |
| #define GDA_TYPE_BATCH_ERROR (gda_batch_error_get_type()) | | #define GDA_TYPE_BATCH_ERROR (gda_batch_error_get_type()) | |
|
| /* 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" */ | | | |
| GType gda_connection_event_type_get_type (void); | | GType gda_connection_event_type_get_type (void); | |
| #define GDA_TYPE_CONNECTION_EVENT_TYPE (gda_connection_event_type_get_type(
)) | | #define GDA_TYPE_CONNECTION_EVENT_TYPE (gda_connection_event_type_get_type(
)) | |
| GType gda_connection_event_code_get_type (void); | | GType gda_connection_event_code_get_type (void); | |
| #define GDA_TYPE_CONNECTION_EVENT_CODE (gda_connection_event_code_get_type(
)) | | #define GDA_TYPE_CONNECTION_EVENT_CODE (gda_connection_event_code_get_type(
)) | |
|
| /* enumerations from "gda-connection.h" */ | | | |
| GType gda_connection_error_get_type (void); | | GType gda_connection_error_get_type (void); | |
| #define GDA_TYPE_CONNECTION_ERROR (gda_connection_error_get_type()) | | #define GDA_TYPE_CONNECTION_ERROR (gda_connection_error_get_type()) | |
| GType gda_connection_options_get_type (void); | | GType gda_connection_options_get_type (void); | |
| #define GDA_TYPE_CONNECTION_OPTIONS (gda_connection_options_get_type()) | | #define GDA_TYPE_CONNECTION_OPTIONS (gda_connection_options_get_type()) | |
| GType gda_connection_feature_get_type (void); | | GType gda_connection_feature_get_type (void); | |
| #define GDA_TYPE_CONNECTION_FEATURE (gda_connection_feature_get_type()) | | #define GDA_TYPE_CONNECTION_FEATURE (gda_connection_feature_get_type()) | |
| GType gda_connection_meta_type_get_type (void); | | GType gda_connection_meta_type_get_type (void); | |
| #define GDA_TYPE_CONNECTION_META_TYPE (gda_connection_meta_type_get_type()) | | #define GDA_TYPE_CONNECTION_META_TYPE (gda_connection_meta_type_get_type()) | |
|
| /* enumerations from "gda-data-comparator.h" */ | | | |
| GType gda_data_comparator_error_get_type (void); | | GType gda_data_comparator_error_get_type (void); | |
| #define GDA_TYPE_DATA_COMPARATOR_ERROR (gda_data_comparator_error_get_type(
)) | | #define GDA_TYPE_DATA_COMPARATOR_ERROR (gda_data_comparator_error_get_type(
)) | |
| GType gda_diff_type_get_type (void); | | GType gda_diff_type_get_type (void); | |
| #define GDA_TYPE_DIFF_TYPE (gda_diff_type_get_type()) | | #define GDA_TYPE_DIFF_TYPE (gda_diff_type_get_type()) | |
|
| /* enumerations from "gda-data-model.h" */ | | | |
| GType gda_data_model_access_flags_get_type (void); | | GType gda_data_model_access_flags_get_type (void); | |
| #define GDA_TYPE_DATA_MODEL_ACCESS_FLAGS (gda_data_model_access_flags_get_t
ype()) | | #define GDA_TYPE_DATA_MODEL_ACCESS_FLAGS (gda_data_model_access_flags_get_t
ype()) | |
| GType gda_data_model_hint_get_type (void); | | GType gda_data_model_hint_get_type (void); | |
| #define GDA_TYPE_DATA_MODEL_HINT (gda_data_model_hint_get_type()) | | #define GDA_TYPE_DATA_MODEL_HINT (gda_data_model_hint_get_type()) | |
| GType gda_data_model_io_format_get_type (void); | | GType gda_data_model_io_format_get_type (void); | |
| #define GDA_TYPE_DATA_MODEL_IO_FORMAT (gda_data_model_io_format_get_type()) | | #define GDA_TYPE_DATA_MODEL_IO_FORMAT (gda_data_model_io_format_get_type()) | |
| GType gda_data_model_error_get_type (void); | | GType gda_data_model_error_get_type (void); | |
| #define GDA_TYPE_DATA_MODEL_ERROR (gda_data_model_error_get_type()) | | #define GDA_TYPE_DATA_MODEL_ERROR (gda_data_model_error_get_type()) | |
|
| /* enumerations from "gda-data-model-ldap.h" */ | | | |
| GType gda_ldap_search_scope_get_type (void); | | GType gda_ldap_search_scope_get_type (void); | |
| #define GDA_TYPE_LDAP_SEARCH_SCOPE (gda_ldap_search_scope_get_type()) | | #define GDA_TYPE_LDAP_SEARCH_SCOPE (gda_ldap_search_scope_get_type()) | |
|
| /* enumerations from "gda-data-model-iter.h" */ | | | |
| GType gda_data_model_iter_error_get_type (void); | | GType gda_data_model_iter_error_get_type (void); | |
| #define GDA_TYPE_DATA_MODEL_ITER_ERROR (gda_data_model_iter_error_get_type(
)) | | #define GDA_TYPE_DATA_MODEL_ITER_ERROR (gda_data_model_iter_error_get_type(
)) | |
|
| /* enumerations from "gda-data-proxy.h" */ | | | |
| GType gda_data_proxy_error_get_type (void); | | GType gda_data_proxy_error_get_type (void); | |
| #define GDA_TYPE_DATA_PROXY_ERROR (gda_data_proxy_error_get_type()) | | #define GDA_TYPE_DATA_PROXY_ERROR (gda_data_proxy_error_get_type()) | |
|
| /* enumerations from "gda-data-select.h" */ | | | |
| GType gda_data_select_error_get_type (void); | | GType gda_data_select_error_get_type (void); | |
| #define GDA_TYPE_DATA_SELECT_ERROR (gda_data_select_error_get_type()) | | #define GDA_TYPE_DATA_SELECT_ERROR (gda_data_select_error_get_type()) | |
|
| /* enumerations from "gda-enums.h" */ | | GType gda_data_select_condition_type_get_type (void); | |
| | | #define GDA_TYPE_DATA_SELECT_CONDITION_TYPE (gda_data_select_condition_type | |
| | | _get_type()) | |
| 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); | | GType gda_sql_identifier_style_get_type (void); | |
| #define GDA_TYPE_SQL_IDENTIFIER_STYLE (gda_sql_identifier_style_get_type()) | | #define GDA_TYPE_SQL_IDENTIFIER_STYLE (gda_sql_identifier_style_get_type()) | |
|
| /* 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" */ | | | |
| 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" */ | | | |
| GType gda_meta_struct_error_get_type (void); | | GType gda_meta_struct_error_get_type (void); | |
| #define GDA_TYPE_META_STRUCT_ERROR (gda_meta_struct_error_get_type()) | | #define GDA_TYPE_META_STRUCT_ERROR (gda_meta_struct_error_get_type()) | |
| GType gda_meta_db_object_type_get_type (void); | | GType gda_meta_db_object_type_get_type (void); | |
| #define GDA_TYPE_META_DB_OBJECT_TYPE (gda_meta_db_object_type_get_type()) | | #define GDA_TYPE_META_DB_OBJECT_TYPE (gda_meta_db_object_type_get_type()) | |
| GType gda_meta_struct_feature_get_type (void); | | GType gda_meta_struct_feature_get_type (void); | |
| #define GDA_TYPE_META_STRUCT_FEATURE (gda_meta_struct_feature_get_type()) | | #define GDA_TYPE_META_STRUCT_FEATURE (gda_meta_struct_feature_get_type()) | |
| GType gda_meta_sort_type_get_type (void); | | GType gda_meta_sort_type_get_type (void); | |
| #define GDA_TYPE_META_SORT_TYPE (gda_meta_sort_type_get_type()) | | #define GDA_TYPE_META_SORT_TYPE (gda_meta_sort_type_get_type()) | |
| GType gda_meta_foreign_key_policy_get_type (void); | | GType gda_meta_foreign_key_policy_get_type (void); | |
| #define GDA_TYPE_META_FOREIGN_KEY_POLICY (gda_meta_foreign_key_policy_get_t
ype()) | | #define GDA_TYPE_META_FOREIGN_KEY_POLICY (gda_meta_foreign_key_policy_get_t
ype()) | |
| GType gda_meta_graph_info_get_type (void); | | GType gda_meta_graph_info_get_type (void); | |
| #define GDA_TYPE_META_GRAPH_INFO (gda_meta_graph_info_get_type()) | | #define GDA_TYPE_META_GRAPH_INFO (gda_meta_graph_info_get_type()) | |
|
| /* enumerations from "gda-set.h" */ | | | |
| GType gda_set_error_get_type (void); | | GType gda_set_error_get_type (void); | |
| #define GDA_TYPE_SET_ERROR (gda_set_error_get_type()) | | #define GDA_TYPE_SET_ERROR (gda_set_error_get_type()) | |
|
| /* enumerations from "gda-server-operation.h" */ | | | |
| GType gda_server_operation_type_get_type (void); | | GType gda_server_operation_type_get_type (void); | |
| #define GDA_TYPE_SERVER_OPERATION_TYPE (gda_server_operation_type_get_type(
)) | | #define GDA_TYPE_SERVER_OPERATION_TYPE (gda_server_operation_type_get_type(
)) | |
| GType gda_server_operation_error_get_type (void); | | GType gda_server_operation_error_get_type (void); | |
| #define GDA_TYPE_SERVER_OPERATION_ERROR (gda_server_operation_error_get_typ
e()) | | #define GDA_TYPE_SERVER_OPERATION_ERROR (gda_server_operation_error_get_typ
e()) | |
| GType gda_server_operation_create_table_flag_get_type (void); | | GType gda_server_operation_create_table_flag_get_type (void); | |
| #define GDA_TYPE_SERVER_OPERATION_CREATE_TABLE_FLAG (gda_server_operation_c
reate_table_flag_get_type()) | | #define GDA_TYPE_SERVER_OPERATION_CREATE_TABLE_FLAG (gda_server_operation_c
reate_table_flag_get_type()) | |
| GType gda_server_operation_node_type_get_type (void); | | GType gda_server_operation_node_type_get_type (void); | |
| #define GDA_TYPE_SERVER_OPERATION_NODE_TYPE (gda_server_operation_node_type
_get_type()) | | #define GDA_TYPE_SERVER_OPERATION_NODE_TYPE (gda_server_operation_node_type
_get_type()) | |
| GType gda_server_operation_node_status_get_type (void); | | GType gda_server_operation_node_status_get_type (void); | |
| #define GDA_TYPE_SERVER_OPERATION_NODE_STATUS (gda_server_operation_node_st
atus_get_type()) | | #define GDA_TYPE_SERVER_OPERATION_NODE_STATUS (gda_server_operation_node_st
atus_get_type()) | |
|
| /* 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" */ | | | |
| 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); | | GType gda_sql_builder_error_get_type (void); | |
| #define GDA_TYPE_SQL_BUILDER_ERROR (gda_sql_builder_error_get_type()) | | #define GDA_TYPE_SQL_BUILDER_ERROR (gda_sql_builder_error_get_type()) | |
|
| /* 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); | | 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()) | |
|
| /* enumerations from "gda-tree-node.h" */ | | | |
| 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()) | |
|
| /* enumerations from "gda-tree-manager.h" */ | | | |
| 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()) | |
|
| /* 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__ */ | |
| | | | |
End of changes. 24 change blocks. |
| 24 lines changed or deleted | | 3 lines changed or added | |
|
| gda-meta-struct.h | | gda-meta-struct.h | |
| | | | |
| skipping to change at line 253 | | skipping to change at line 253 | |
| */ | | */ | |
| #define GDA_META_VIEW(dbobj) (&((dbobj)->extra.meta_view)) | | #define GDA_META_VIEW(dbobj) (&((dbobj)->extra.meta_view)) | |
| | | | |
| /** | | /** | |
| * GdaMetaTableColumn: | | * GdaMetaTableColumn: | |
| * @column_name: the column's name | | * @column_name: the column's name | |
| * @column_type: the column's DBMS's type | | * @column_type: the column's DBMS's type | |
| * @gtype: the detected column's #GType | | * @gtype: the detected column's #GType | |
| * @pkey: tells if the column is part of a primary key | | * @pkey: tells if the column is part of a primary key | |
| * @nullok: tells if the column can be %NULL | | * @nullok: tells if the column can be %NULL | |
|
| * @default_value: the column's default value | | * @default_value: (allow-none): the column's default value, represented as
a valid SQL value (surrounded by simple quotes for strings, ...), or %NULL
if column has no default value | |
| * | | * | |
| * This structure represents a table of view's column, its contents must no
t be modified. | | * This structure represents a table of view's column, its contents must no
t be modified. | |
| */ | | */ | |
| typedef struct { | | typedef struct { | |
| /*< public >*/ | | /*< 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; | |
| | | | |
| skipping to change at line 291 | | skipping to change at line 291 | |
| */ | | */ | |
| #define GDA_META_TABLE_COLUMN(col) ((GdaMetaTableColumn*)(col)) | | #define GDA_META_TABLE_COLUMN(col) ((GdaMetaTableColumn*)(col)) | |
| | | | |
| 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); | |
| /** | | /** | |
| * gda_meta_table_column_set_attribute_static | | * gda_meta_table_column_set_attribute_static | |
| * @column: a #GdaMetaTableColumn | | * @column: a #GdaMetaTableColumn | |
| * @attribute: attribute's name | | * @attribute: attribute's name | |
|
| * @value: a #GValue, or %NULL | | * @value: (allow-none): 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); | |
| | | | |
| /** | | /** | |
| * GdaMetaForeignKeyPolicy: | | * GdaMetaForeignKeyPolicy: | |
| * @GDA_META_FOREIGN_KEY_UNKNOWN: unspecified policy | | * @GDA_META_FOREIGN_KEY_UNKNOWN: unspecified policy | |
| | | | |
End of changes. 2 change blocks. |
| 2 lines changed or deleted | | 2 lines changed or added | |
|
| gda-sql-parser-enum-types.h | | gda-sql-parser-enum-types.h | |
| | | | |
| #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" */ | | | |
| 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_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_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_TYPE_SQL_PARSER_FLAVOUR (gda_sql_parser_flavour_get_type()) | |
|
| /* enumerations from "gda-statement-struct-decl.h" */ | | | |
| GType gda_sql_error_get_type (void); | | GType gda_sql_error_get_type (void); | |
| #define GDA_TYPE_SQL_ERROR (gda_sql_error_get_type()) | | #define GDA_TYPE_SQL_ERROR (gda_sql_error_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_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_TYPE_SQL_ANY_PART_TYPE (gda_sql_any_part_type_get_type()) | |
|
| /* 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_TYPE_SQL_STATEMENT_COMPOUND_TYPE (gda_sql_statement_compound_ty
pe_get_type()) | |
|
| /* 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_TYPE_SQL_OPERATOR_TYPE (gda_sql_operator_type_get_type()) | |
| 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_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__ */ | |
| | | | |
End of changes. 4 change blocks. |
| 4 lines changed or deleted | | 0 lines changed or added | |
|
| gda-statement-struct-parts.h | | gda-statement-struct-parts.h | |
| | | | |
| skipping to change at line 52 | | skipping to change at line 52 | |
| typedef struct _GdaSqlSelectJoin GdaSqlSelectJoin; | | typedef struct _GdaSqlSelectJoin GdaSqlSelectJoin; | |
| typedef struct _GdaSqlSelectFrom GdaSqlSelectFrom; | | typedef struct _GdaSqlSelectFrom GdaSqlSelectFrom; | |
| typedef struct _GdaSqlSelectOrder GdaSqlSelectOrder; | | typedef struct _GdaSqlSelectOrder GdaSqlSelectOrder; | |
| | | | |
| /* | | /* | |
| * Any Expression | | * Any Expression | |
| */ | | */ | |
| /** | | /** | |
| * GdaSqlExpr: | | * GdaSqlExpr: | |
| * @any: inheritance structure | | * @any: inheritance structure | |
|
| * @value: a #GValue, or %NULL. Please see specific note about this field. | | * @value: (allow-none): a #GValue, or %NULL. Please see specific note abou | |
| * @param_spec: a #GdaSqlParamSpec, or %NULL if this is not a variable | | t this field. | |
| * @func: not %NULL if expression is a function or aggregate | | * @param_spec: (allow-none): a #GdaSqlParamSpec, or %NULL if this is not a | |
| * @cond: not %NULL if expression is a condition or an operation | | variable | |
| * @select: not %NULL if expression is a sub select statement (#GdaSqlState | | * @func: (allow-none): not %NULL if expression is a function or aggregate | |
| mentSelect or #GdaSqlStatementCompound) | | * @cond: (allow-none): not %NULL if expression is a condition or an operat | |
| * @case_s: not %NULL if expression is a CASE WHEN ... expression | | ion | |
| * @cast_as: not %NULL if expression must be cast to another data type | | * @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 | |
| | | * @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 | |
| * | | * | |
| * This structure contains any expression, either as a value (the @value pa
rt is set), | | * This structure contains any expression, either as a value (the @value pa
rt is set), | |
| * a variable (the @param_spec is set), or as other types of expressions. | | * a variable (the @param_spec is set), or as other types of expressions. | |
| * | | * | |
| * Note 1 about the @value field: if the expression represents a string val
ue in the SQL statement, | | * Note 1 about the @value field: if the expression represents a string val
ue in the SQL statement, | |
| * the string itself must be represented as it would be in the actual SQL,
ie. it should be | | * the string itself must be represented as it would be in the actual SQL,
ie. it should be | |
| * escaped (accordingly to the escaping rules of the database which will us
e the SQL). For | | * escaped (accordingly to the escaping rules of the database which will us
e the SQL). For | |
| * example a string representing the <userinput>'joe'</userinput> value sho
uld be | | * example a string representing the <userinput>'joe'</userinput> value sho
uld be | |
| * <userinput>"'joe'"</userinput> and not <userinput>"joe"</userinput>. | | * <userinput>"'joe'"</userinput> and not <userinput>"joe"</userinput>. | |
| | | | |
| skipping to change at line 448 | | skipping to change at line 448 | |
| 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: | |
| * @any: inheritance structure | | * @any: inheritance structure | |
| * @type: type of join | | * @type: type of join | |
| * @position: represents a join between a target at (pos < @position) an
d the one at @position | | * @position: represents a join between a target at (pos < @position) an
d the one at @position | |
|
| * @expr: joining expression, or %NULL | | * @expr: (allow-none): joining expression, or %NULL | |
| * @use: list of #GdaSqlField pointers to use when joining, or %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 | |
| { | | { | |
| 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; /* list of GdaSqlField pointers */ | | GSList *use; /* list of GdaSqlField pointers */ | |
| | | | |
| skipping to change at line 480 | | skipping to change at line 480 | |
| 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: | |
| * @any: inheritance structure | | * @any: inheritance structure | |
|
| * @targets: list of #GdaSqlSelectTarget | | * @targets: (element-type Gda.SqlSelectTarget): list of #GdaSqlSelectTarge | |
| * @joins: list of #GdaSqlSelectJoin | | t | |
| | | * @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; | |
| GSList *joins; | | GSList *joins; | |
| | | | |
| /*< private >*/ | | /*< private >*/ | |
| | | | |
End of changes. 3 change blocks. |
| 12 lines changed or deleted | | 19 lines changed or added | |
|
| gda-util.h | | gda-util.h | |
| | | | |
| skipping to change at line 88 | | skipping to change at line 88 | |
| GdaSqlStatement *gda_statement_rewrite_for_default_values (GdaStatement *st
mt, GdaSet *params, | | GdaSqlStatement *gda_statement_rewrite_for_default_values (GdaStatement *st
mt, GdaSet *params, | |
| gboolean remove,
GError **error); | | gboolean remove,
GError **error); | |
| | | | |
| /* | | /* | |
| * translate any text to an alphanumerical text | | * translate any text to an alphanumerical text | |
| */ | | */ | |
| gchar *gda_text_to_alphanum (const gchar *text); | | gchar *gda_text_to_alphanum (const gchar *text); | |
| gchar *gda_alphanum_to_text (gchar *text); | | gchar *gda_alphanum_to_text (gchar *text); | |
| | | | |
| /* | | /* | |
|
| * Statement computation from meta store | | * Statement computation (using data from meta store) | |
| */ | | */ | |
| GdaSqlExpr *gda_compute_unique_table_row_condition (GdaSqlStatementSel
ect *stsel, GdaMetaTable *mtable, | | GdaSqlExpr *gda_compute_unique_table_row_condition (GdaSqlStatementSel
ect *stsel, GdaMetaTable *mtable, | |
| gboolean require_pk
, GError **error); | | gboolean require_pk
, GError **error); | |
|
| GdaSqlExpr *gda_compute_unique_table_row_condition_with_cnc (GdaConne
ction *cnc, | | GdaSqlExpr *gda_compute_unique_table_row_condition_with_cnc (GdaConnec
tion *cnc, | |
| GdaSqlSta
tementSelect *stsel, | | GdaSqlSta
tementSelect *stsel, | |
| GdaMetaTa
ble *mtable, gboolean require_pk, | | GdaMetaTa
ble *mtable, gboolean require_pk, | |
| GError **
error); | | GError **
error); | |
| | | | |
| gboolean gda_compute_dml_statements (GdaConnection *cnc, GdaStateme
nt *select_stmt, gboolean require_pk, | | gboolean gda_compute_dml_statements (GdaConnection *cnc, GdaStateme
nt *select_stmt, gboolean require_pk, | |
| GdaStatement **insert_stmt, Gda
Statement **update_stmt, GdaStatement **delete_stmt, | | GdaStatement **insert_stmt, Gda
Statement **update_stmt, GdaStatement **delete_stmt, | |
| GError **error); | | GError **error); | |
| GdaSqlStatement *gda_compute_select_statement_from_update (GdaStatement *up
date_stmt, GError **error); | | GdaSqlStatement *gda_compute_select_statement_from_update (GdaStatement *up
date_stmt, GError **error); | |
|
| | | GdaSqlStatement *gda_rewrite_sql_statement_for_null_parameters (GdaSqlState | |
| | | ment *sqlst, GdaSet *params, | |
| | | gboolean *ou | |
| | | t_modified, GError **error); | |
| | | gboolean gda_rewrite_statement_for_null_parameters (GdaStatement *s | |
| | | tmt, GdaSet *params, | |
| | | GdaStatement **o | |
| | | ut_stmt, GError **error); | |
| | | | |
| /* | | /* | |
| * DSN and connection string manipulations | | * DSN and connection string manipulations | |
| */ | | */ | |
| gchar *gda_rfc1738_encode (const gchar *string); | | gchar *gda_rfc1738_encode (const gchar *string); | |
| gboolean gda_rfc1738_decode (gchar *string); | | gboolean gda_rfc1738_decode (gchar *string); | |
| void gda_dsn_split (const gchar *string, gchar **out_
dsn, | | void gda_dsn_split (const gchar *string, gchar **out_
dsn, | |
| gchar **out_username, gchar **out_
password); | | gchar **out_username, gchar **out_
password); | |
| void gda_connection_string_split (const gchar *string, gchar **out_
cnc_params, gchar **out_provider, | | void gda_connection_string_split (const gchar *string, gchar **out_
cnc_params, gchar **out_provider, | |
| gchar **out_username, gchar **out_
password); | | gchar **out_username, gchar **out_
password); | |
| | | | |
End of changes. 3 change blocks. |
| 2 lines changed or deleted | | 10 lines changed or added | |
|
| gda-value.h | | gda-value.h | |
| | | | |
| skipping to change at line 44 | | skipping to change at line 44 | |
| #include <glib-object.h> | | #include <glib-object.h> | |
| #include <libxml/tree.h> | | #include <libxml/tree.h> | |
| #include <libgda/gda-decl.h> | | #include <libgda/gda-decl.h> | |
| | | | |
| G_BEGIN_DECLS | | G_BEGIN_DECLS | |
| | | | |
| #define GDA_TIMEZONE_INVALID (2*12*60*60) | | #define GDA_TIMEZONE_INVALID (2*12*60*60) | |
| | | | |
| /* Definition of the GType's values used in GValue*/ | | /* Definition of the GType's values used in GValue*/ | |
| #define GDA_TYPE_NULL (gda_null_get_type()) | | #define GDA_TYPE_NULL (gda_null_get_type()) | |
|
| | | #define GDA_TYPE_DEFAULT (gda_default_get_type()) | |
| #define GDA_TYPE_BINARY (gda_binary_get_type()) | | #define GDA_TYPE_BINARY (gda_binary_get_type()) | |
| #define GDA_TYPE_BLOB (gda_blob_get_type()) | | #define GDA_TYPE_BLOB (gda_blob_get_type()) | |
| #define GDA_TYPE_GEOMETRIC_POINT (gda_geometricpoint_get_type()) | | #define GDA_TYPE_GEOMETRIC_POINT (gda_geometricpoint_get_type()) | |
| #define GDA_TYPE_NUMERIC (gda_numeric_get_type()) | | #define GDA_TYPE_NUMERIC (gda_numeric_get_type()) | |
| #define GDA_TYPE_SHORT (gda_short_get_type()) | | #define GDA_TYPE_SHORT (gda_short_get_type()) | |
| #define GDA_TYPE_USHORT (gda_ushort_get_type()) | | #define GDA_TYPE_USHORT (gda_ushort_get_type()) | |
| #define GDA_TYPE_TIME (gda_time_get_type()) | | #define GDA_TYPE_TIME (gda_time_get_type()) | |
| #define GDA_TYPE_TIMESTAMP (gda_timestamp_get_type()) | | #define GDA_TYPE_TIMESTAMP (gda_timestamp_get_type()) | |
| | | | |
| /* Definition of the GDA_VALUE_HOLDS macros */ | | /* Definition of the GDA_VALUE_HOLDS macros */ | |
| #define GDA_VALUE_HOLDS_NULL(value) G_VALUE_HOLDS(value, GDA_TYP
E_NULL) | | #define GDA_VALUE_HOLDS_NULL(value) G_VALUE_HOLDS(value, GDA_TYP
E_NULL) | |
|
| | | #define GDA_VALUE_HOLDS_DEFAULT(value) G_VALUE_HOLDS(value, GDA_TYP
E_DEFAULT) | |
| #define GDA_VALUE_HOLDS_BINARY(value) G_VALUE_HOLDS(value, GDA_TYP
E_BINARY) | | #define GDA_VALUE_HOLDS_BINARY(value) G_VALUE_HOLDS(value, GDA_TYP
E_BINARY) | |
| #define GDA_VALUE_HOLDS_BLOB(value) G_VALUE_HOLDS(value, GDA_TYP
E_BLOB) | | #define GDA_VALUE_HOLDS_BLOB(value) G_VALUE_HOLDS(value, GDA_TYP
E_BLOB) | |
| #define GDA_VALUE_HOLDS_GEOMETRIC_POINT(value) G_VALUE_HOLDS(value, GDA_TYP
E_GEOMETRIC_POINT) | | #define GDA_VALUE_HOLDS_GEOMETRIC_POINT(value) G_VALUE_HOLDS(value, GDA_TYP
E_GEOMETRIC_POINT) | |
| #define GDA_VALUE_HOLDS_NUMERIC(value) G_VALUE_HOLDS(value, GDA_TYP
E_NUMERIC) | | #define GDA_VALUE_HOLDS_NUMERIC(value) G_VALUE_HOLDS(value, GDA_TYP
E_NUMERIC) | |
| #define GDA_VALUE_HOLDS_SHORT(value) G_VALUE_HOLDS(value, GDA_TYP
E_SHORT) | | #define GDA_VALUE_HOLDS_SHORT(value) G_VALUE_HOLDS(value, GDA_TYP
E_SHORT) | |
| #define GDA_VALUE_HOLDS_USHORT(value) G_VALUE_HOLDS(value, GDA_TYP
E_USHORT) | | #define GDA_VALUE_HOLDS_USHORT(value) G_VALUE_HOLDS(value, GDA_TYP
E_USHORT) | |
| #define GDA_VALUE_HOLDS_TIME(value) G_VALUE_HOLDS(value, GDA_TYP
E_TIME) | | #define GDA_VALUE_HOLDS_TIME(value) G_VALUE_HOLDS(value, GDA_TYP
E_TIME) | |
| #define GDA_VALUE_HOLDS_TIMESTAMP(value) G_VALUE_HOLDS(value, GDA_TYP
E_TIMESTAMP) | | #define GDA_VALUE_HOLDS_TIMESTAMP(value) G_VALUE_HOLDS(value, GDA_TYP
E_TIMESTAMP) | |
| | | | |
| /** | | /** | |
| | | | |
| skipping to change at line 140 | | skipping to change at line 142 | |
| * @binary_length: | | * @binary_length: | |
| */ | | */ | |
| typedef struct { | | typedef struct { | |
| guchar *data; | | guchar *data; | |
| glong binary_length; | | glong binary_length; | |
| } GdaBinary; | | } GdaBinary; | |
| | | | |
| /** | | /** | |
| * GdaBlob | | * GdaBlob | |
| * @data: data buffer, as a #GdaBinary | | * @data: data buffer, as a #GdaBinary | |
|
| * @op: a pointer to a #GdaBlopOp, or %NULL | | * @op: (allow-none): a pointer to a #GdaBlopOp, or %NULL | |
| * | | * | |
| * Represents some binary data, accessed through a #GdaBlobOp object. | | * 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 | | * @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(). | | * 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; | |
| } GdaBlob; | | } GdaBlob; | |
| | | | |
| | | | |
| skipping to change at line 183 | | skipping to change at line 185 | |
| * is manipulated using a #GdaBlob structure which encapsulates a #GdaB
inary structure and adds a reference to a | | * is manipulated using a #GdaBlob structure which encapsulates a #GdaB
inary structure and adds a reference to a | |
| * #GdaBlobOp object used to read and write data from and to the blob. | | * #GdaBlobOp object used to read and write data from and to the blob. | |
| * </para></listitem> | | * </para></listitem> | |
| * </itemizedlist> | | * </itemizedlist> | |
| * Please note that is distinction between binary data and blobs is Libgda
only and does not reflect the DBMS's documentations; | | * Please note that is distinction between binary data and blobs is Libgda
only and does not reflect the DBMS's documentations; | |
| * for instance MySQL has several BLOB types but Libgda interprets them as
binary types. | | * for instance MySQL has several BLOB types but Libgda interprets them as
binary types. | |
| * | | * | |
| * Each provider or connection can be queried about its blob support using
the gda_server_provider_supports_feature() or | | * Each provider or connection can be queried about its blob support using
the gda_server_provider_supports_feature() or | |
| * gda_connection_supports_feature() methods. | | * gda_connection_supports_feature() methods. | |
| * | | * | |
|
| * The NULL value is a special case value: it is represented by to a zero-f | | * There are two special value types which are: | |
| illed (uninitialized) #GValue and has a type equal | | * <itemizedlist> | |
| * to %GDA_TYPE_NULL. | | * <listitem><para>the GDA_TYPE_NULL value which never changes and acutal | |
| | | ly represents an SQL NULL value</para></listitem> | |
| | | * <listitem><para>the GDA_TYPE_DEFAULT value which represents a default | |
| | | value which &LIBGDA; does not interpret (such as when a table column's defa | |
| | | ult value is a function call)</para></listitem> | |
| | | * </itemizedlist> | |
| */ | | */ | |
| | | | |
| GValue *gda_value_new (GType type); | | GValue *gda_value_new (GType type); | |
| | | | |
| GValue *gda_value_new_null (void); | | GValue *gda_value_new_null (void); | |
|
| | | GValue *gda_value_new_default (const gchar *defau
lt_val); | |
| 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); | |
| GValue *gda_value_new_blob_from_file (const gchar
*filename); | | GValue *gda_value_new_blob_from_file (const gchar
*filename); | |
| GValue *gda_value_new_timestamp_from_timet (time_
t val); | | GValue *gda_value_new_timestamp_from_timet (time_
t val); | |
| | | | |
| GValue *gda_value_new_from_string (const gchar *a
s_string, GType type); | | GValue *gda_value_new_from_string (const gchar *a
s_string, GType type); | |
| GValue *gda_value_new_from_xml (const xmlNodePtr
node); | | GValue *gda_value_new_from_xml (const xmlNodePtr
node); | |
| | | | |
| void gda_value_free (GValue *value); | | void gda_value_free (GValue *value); | |
| void gda_value_reset_with_type (GValue *value,
GType type); | | void gda_value_reset_with_type (GValue *value,
GType type); | |
| | | | |
| skipping to change at line 246 | | skipping to change at line 252 | |
| | | | |
| 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_null_get_type (void) G_GNUC_CONST; | | GType gda_null_get_type (void) G_GNUC_CONST; | |
|
| | | GType gda_default_get_type (void) G_GNUC_CONST; | |
| 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); | |
| void gda_numeric_free (gpointer boxed); | | void gda_numeric_free (gpointer boxed); | |
| | | | |
| 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); | |
| void gda_time_free (gpointer boxed); | | void gda_time_free (gpointer boxed); | |
| gboolean gda_time_valid (const GdaTime *time); | | gboolean gda_time_valid (const GdaTime *time); | |
| | | | |
| GType gda_timestamp_get_type (void) G_GNUC_CONS
T; | | GType gda_timestamp_get_type (void) G_GNUC_CONS
T; | |
| | | | |
End of changes. 6 change blocks. |
| 4 lines changed or deleted | | 13 lines changed or added | |
|
| gda-vconnection-data-model.h | | gda-vconnection-data-model.h | |
| | | | |
| skipping to change at line 62 | | skipping to change at line 62 | |
| * @Param1: a pointer to a #GdaVconnectionDataModelSpec structure | | * @Param1: a pointer to a #GdaVconnectionDataModelSpec structure | |
| * @Returns: (transfer full): a new #GdaDataModel | | * @Returns: (transfer full): a new #GdaDataModel | |
| * | | * | |
| * Function called to create a #GdaDataModel object, called when a virtual
table's data need to | | * Function called to create a #GdaDataModel object, called when a virtual
table's data need to | |
| * be accessed, and when optimization is not handled. | | * be accessed, and when optimization is not handled. | |
| */ | | */ | |
| typedef GdaDataModel *(*GdaVconnectionDataModelCreateModelFunc) (GdaVconnec
tionDataModelSpec *); | | typedef GdaDataModel *(*GdaVconnectionDataModelCreateModelFunc) (GdaVconnec
tionDataModelSpec *); | |
| | | | |
| /** | | /** | |
| * GdaVconnectionDataModelFunc: | | * GdaVconnectionDataModelFunc: | |
|
| * @Param1: a pointer to a #GdaDataModel | | * @Param1: (allow-none): a pointer to a #GdaDataModel | |
| * @Param2: the name of the table represented by @Param1 | | * @Param2: the name of the table represented by @Param1 | |
| * @Param3: a data pointer, passed as last ergument to gda_vconnection_data
_model_foreach() | | * @Param3: a data pointer, passed as last ergument to gda_vconnection_data
_model_foreach() | |
| * | | * | |
| * This function is called for every #GdaDataModel representing a table in
a #GdaVconnectionDataModel | | * This function is called for every #GdaDataModel representing a table in
a #GdaVconnectionDataModel | |
| * connection, when using the gda_vconnection_data_model_foreach() method. | | * connection, when using the gda_vconnection_data_model_foreach() method. | |
| */ | | */ | |
| typedef void (*GdaVconnectionDataModelFunc) (GdaDataModel *, const gchar *,
gpointer ); | | typedef void (*GdaVconnectionDataModelFunc) (GdaDataModel *, const gchar *,
gpointer ); | |
| | | | |
| /** | | /** | |
| * GdaVconnectionDataModelFilter: | | * GdaVconnectionDataModelFilter: | |
| | | | |
| skipping to change at line 138 | | skipping to change at line 138 | |
| * @Param5: an array of #GValue, as specified by the #GdaVconnectionDataMod
elFilter's #aConstraintUsage's #argvIndex value | | * @Param5: an array of #GValue, as specified by the #GdaVconnectionDataMod
elFilter's #aConstraintUsage's #argvIndex value | |
| * @Returns: (transfer full): a new #GdaDataModel | | * @Returns: (transfer full): a new #GdaDataModel | |
| * | | * | |
| * Function called to create a #GdaDataModel object, called when a virtual
table's data need to | | * Function called to create a #GdaDataModel object, called when a virtual
table's data need to | |
| * be accessed, and when optimization is handled. | | * be accessed, and when optimization is handled. | |
| */ | | */ | |
| typedef GdaDataModel *(*GdaVconnectionDataModelCreateFModelFunc) (GdaVconne
ctionDataModelSpec *, int, const char *, int, GValue **); | | typedef GdaDataModel *(*GdaVconnectionDataModelCreateFModelFunc) (GdaVconne
ctionDataModelSpec *, int, const char *, int, GValue **); | |
| | | | |
| /** | | /** | |
| * GdaVconnectionDataModelSpec: | | * GdaVconnectionDataModelSpec: | |
|
| * @data_model: a #GdaDataModel, or %NULL | | * @data_model: (allow-none): a #GdaDataModel, or %NULL | |
| * @create_columns_func: a pointer to a #GdaVconnectionDataModelCreateColum | | * @create_columns_func: (allow-none): a pointer to a #GdaVconnectionDataMo | |
| nsFunc function, or %NULL | | delCreateColumnsFunc function, or %NULL | |
| * @create_model_func: a pointer to a #GdaVconnectionDataModelCreateModelFu | | * @create_model_func: (allow-none): a pointer to a #GdaVconnectionDataMode | |
| nc function, or %NULL | | lCreateModelFunc function, or %NULL | |
| * @create_filter_func: a pointer to a #GdaVconnectionDataModelParseFilterF | | * @create_filter_func: (allow-none): a pointer to a #GdaVconnectionDataMod | |
| unc function, or %NULL | | elParseFilterFunc function, or %NULL | |
| * @create_filtered_model_func: a pointer to a #GdaVconnectionDataModelCrea | | * @create_filtered_model_func: (allow-none): a pointer to a #GdaVconnectio | |
| teFModelFunc function, or %NULL | | nDataModelCreateFModelFunc function, or %NULL | |
| * | | * | |
| * This structure holds all the information supplied to declare a virtual t
able using | | * This structure holds all the information supplied to declare a virtual t
able using | |
| * gda_vconnection_data_model_add(). You don't need to provider pointers fo
r all the functions and | | * gda_vconnection_data_model_add(). You don't need to provider pointers fo
r all the functions and | |
| * for @data_model, but the following rules have to be respected: | | * for @data_model, but the following rules have to be respected: | |
| * <itemizedlist> | | * <itemizedlist> | |
| * <listitem><para>@data_model is not %NULL and all the function pointers
are %NULL: this is the situation | | * <listitem><para>@data_model is not %NULL and all the function pointers
are %NULL: this is the situation | |
| * when the virtual table's contents is defined once by @data_model</para
></listitem> | | * when the virtual table's contents is defined once by @data_model</para
></listitem> | |
| * <listitem><para>@data_model is %NULL and @create_columns_func is not %N
ULL: | | * <listitem><para>@data_model is %NULL and @create_columns_func is not %N
ULL: | |
| * <itemizedlist> | | * <itemizedlist> | |
| * <listitem><para>@create_filtered_model_func is not %NULL: this is
the situation where the | | * <listitem><para>@create_filtered_model_func is not %NULL: this is
the situation where the | |
| | | | |
End of changes. 2 change blocks. |
| 10 lines changed or deleted | | 10 lines changed or added | |
|