gda-connection.h | gda-connection.h | |||
---|---|---|---|---|
skipping to change at line 66 | skipping to change at line 66 | |||
GDA_CONNECTION_PROVIDER_NOT_FOUND_ERROR, | GDA_CONNECTION_PROVIDER_NOT_FOUND_ERROR, | |||
GDA_CONNECTION_PROVIDER_ERROR, | GDA_CONNECTION_PROVIDER_ERROR, | |||
GDA_CONNECTION_NO_CNC_SPEC_ERROR, | GDA_CONNECTION_NO_CNC_SPEC_ERROR, | |||
GDA_CONNECTION_NO_PROVIDER_SPEC_ERROR, | GDA_CONNECTION_NO_PROVIDER_SPEC_ERROR, | |||
GDA_CONNECTION_OPEN_ERROR, | GDA_CONNECTION_OPEN_ERROR, | |||
GDA_CONNECTION_STATEMENT_TYPE_ERROR, | GDA_CONNECTION_STATEMENT_TYPE_ERROR, | |||
GDA_CONNECTION_CANT_LOCK_ERROR, | GDA_CONNECTION_CANT_LOCK_ERROR, | |||
GDA_CONNECTION_TASK_NOT_FOUND_ERROR, | GDA_CONNECTION_TASK_NOT_FOUND_ERROR, | |||
GDA_CONNECTION_UNSUPPORTED_THREADS_ERROR, | GDA_CONNECTION_UNSUPPORTED_THREADS_ERROR, | |||
GDA_CONNECTION_CLOSED_ERROR, | GDA_CONNECTION_CLOSED_ERROR, | |||
GDA_CONNECTION_META_DATA_CONTEXT_ERROR | GDA_CONNECTION_META_DATA_CONTEXT_ERROR, | |||
GDA_CONNECTION_UNSUPPORTED_ASYNC_EXEC_ERROR | ||||
} GdaConnectionError; | } GdaConnectionError; | |||
#define GDA_CONNECTION_NONEXIST_DSN_ERROR GDA_CONNECTION_DSN_NOT_FOUND_ERRO R | #define GDA_CONNECTION_NONEXIST_DSN_ERROR GDA_CONNECTION_DSN_NOT_FOUND_ERRO R | |||
/** | /** | |||
* SECTION:gda-connection | * SECTION:gda-connection | |||
* @short_description: A connection to a database | * @short_description: A connection to a database | |||
* @title: GdaConnection | * @title: GdaConnection | |||
* @stability: Stable | * @stability: Stable | |||
* | * | |||
skipping to change at line 220 | skipping to change at line 221 | |||
* @GDA_CONNECTION_FEATURE_SQL: test for SQL language (even specific to the database) support | * @GDA_CONNECTION_FEATURE_SQL: test for SQL language (even specific to the database) support | |||
* @GDA_CONNECTION_FEATURE_TRANSACTIONS: test for transactions support | * @GDA_CONNECTION_FEATURE_TRANSACTIONS: test for transactions support | |||
* @GDA_CONNECTION_FEATURE_SAVEPOINTS: test for savepoints within transacti ons support | * @GDA_CONNECTION_FEATURE_SAVEPOINTS: test for savepoints within transacti ons support | |||
* @GDA_CONNECTION_FEATURE_SAVEPOINTS_REMOVE: test if savepoints can be rem oved | * @GDA_CONNECTION_FEATURE_SAVEPOINTS_REMOVE: test if savepoints can be rem oved | |||
* @GDA_CONNECTION_FEATURE_TRIGGERS: test for triggers support | * @GDA_CONNECTION_FEATURE_TRIGGERS: test for triggers support | |||
* @GDA_CONNECTION_FEATURE_UPDATABLE_CURSOR: test for updatable cursors sup port | * @GDA_CONNECTION_FEATURE_UPDATABLE_CURSOR: test for updatable cursors sup port | |||
* @GDA_CONNECTION_FEATURE_USERS: test for users support | * @GDA_CONNECTION_FEATURE_USERS: test for users support | |||
* @GDA_CONNECTION_FEATURE_VIEWS: test for views support | * @GDA_CONNECTION_FEATURE_VIEWS: test for views support | |||
* @GDA_CONNECTION_FEATURE_XA_TRANSACTIONS: test for distributed transactio ns support | * @GDA_CONNECTION_FEATURE_XA_TRANSACTIONS: test for distributed transactio ns support | |||
* @GDA_CONNECTION_FEATURE_MULTI_THREADING: test for native multi-threading support | * @GDA_CONNECTION_FEATURE_MULTI_THREADING: test for native multi-threading support | |||
* @GDA_CONNECTION_FEATURE_ASYNC_EXEC: test if connection supports asynchro nous execution | ||||
* @GDA_CONNECTION_FEATURE_LAST: not used | * @GDA_CONNECTION_FEATURE_LAST: not used | |||
* | * | |||
* Used in gda_connection_supports_feature() and gda_server_provider_suppor ts_feature() to test if a connection | * Used in gda_connection_supports_feature() and gda_server_provider_suppor ts_feature() to test if a connection | |||
* or a database provider supports some specific feature. | * or a database provider supports some specific feature. | |||
*/ | */ | |||
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, | |||
skipping to change at line 244 | skipping to change at line 246 | |||
GDA_CONNECTION_FEATURE_TRANSACTIONS, | GDA_CONNECTION_FEATURE_TRANSACTIONS, | |||
GDA_CONNECTION_FEATURE_SAVEPOINTS, | GDA_CONNECTION_FEATURE_SAVEPOINTS, | |||
GDA_CONNECTION_FEATURE_SAVEPOINTS_REMOVE, | GDA_CONNECTION_FEATURE_SAVEPOINTS_REMOVE, | |||
GDA_CONNECTION_FEATURE_TRIGGERS, | GDA_CONNECTION_FEATURE_TRIGGERS, | |||
GDA_CONNECTION_FEATURE_UPDATABLE_CURSOR, | GDA_CONNECTION_FEATURE_UPDATABLE_CURSOR, | |||
GDA_CONNECTION_FEATURE_USERS, | GDA_CONNECTION_FEATURE_USERS, | |||
GDA_CONNECTION_FEATURE_VIEWS, | GDA_CONNECTION_FEATURE_VIEWS, | |||
GDA_CONNECTION_FEATURE_XA_TRANSACTIONS, | GDA_CONNECTION_FEATURE_XA_TRANSACTIONS, | |||
GDA_CONNECTION_FEATURE_MULTI_THREADING, | GDA_CONNECTION_FEATURE_MULTI_THREADING, | |||
GDA_CONNECTION_FEATURE_ASYNC_EXEC, | ||||
GDA_CONNECTION_FEATURE_LAST | GDA_CONNECTION_FEATURE_LAST | |||
} GdaConnectionFeature; | } GdaConnectionFeature; | |||
/** | /** | |||
* GdaConnectionMetaType: | * GdaConnectionMetaType: | |||
* @GDA_CONNECTION_META_NAMESPACES: lists the <link linkend="GdaConnectionM etaTypeGDA_CONNECTION_META_NAMESPACES">namespaces</link> (or schemas for Po stgreSQL) | * @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_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_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_VIEWS: lists the <link linkend="GdaConnectionMetaTy peGDA_CONNECTION_META_VIEWS">views</link> | |||
skipping to change at line 338 | skipping to change at line 341 | |||
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_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 */ | /* synchronous execution */ | |||
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 */ | /* asynchronous execution */ | |||
guint gda_connection_async_statement_execute (GdaConnection *cnc, GdaStatement *stmt, GdaSet *params, | guint gda_connection_async_statement_execute (GdaConnection *cnc, GdaStatement *stmt, GdaSet *params, | |||
GdaStatementMod elUsage model_usage, GType *col_types, | GdaStatementMod elUsage model_usage, GType *col_types, | |||
gboolean need_l ast_insert_row, | gboolean need_l ast_insert_row, | |||
GError **error) ; | GError **error) ; | |||
GObject *gda_connection_async_fetch_result (GdaConnection *cnc, guint task_id, GdaSet **last_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); | gboolean gda_connection_async_cancel (GdaConnection *cnc, guint task_id, GError **error); | |||
/* repetitive statement */ | /* repetitive statement */ | |||
GSList *gda_connection_repetitive_statement_execute (GdaConnect ion *cnc, GdaRepetitiveStatement *rstmt, | GSList *gda_connection_repetitive_statement_execute (GdaConnect ion *cnc, GdaRepetitiveStatement *rstmt, | |||
GdaStatemen tModelUsage model_usage, GType *col_types, | GdaStatemen tModelUsage model_usage, GType *col_types, | |||
End of changes. 5 change blocks. | ||||
3 lines changed or deleted | 6 lines changed or added | |||
gda-data-access-wrapper.h | gda-data-access-wrapper.h | |||
---|---|---|---|---|
skipping to change at line 68 | skipping to change at line 68 | |||
* @stability: Stable | * @stability: Stable | |||
* @see_also: #GdaDataModel | * @see_also: #GdaDataModel | |||
* | * | |||
* The #GdaDataAccessWrapper object simply wraps another #GdaDataModel data model object | * The #GdaDataAccessWrapper object simply wraps another #GdaDataModel data model object | |||
* and allows data to be accessed in a random way while remaining memory ef ficient as much as possible. | * and allows data to be accessed in a random way while remaining memory ef ficient as much as possible. | |||
*/ | */ | |||
GType gda_data_access_wrapper_get_type (void) G_GNUC_CONST; | GType gda_data_access_wrapper_get_type (void) G_GNUC_CONST; | |||
GdaDataModel *gda_data_access_wrapper_new (GdaDataModel *model); | GdaDataModel *gda_data_access_wrapper_new (GdaDataModel *model); | |||
gboolean gda_data_access_wrapper_set_mapping (GdaDataAccessWrapper *wr apper, | gboolean gda_data_access_wrapper_set_mapping (GdaDataAccessWrapper *wr apper, | |||
gint *mapping, gint mappi ng_size); | const gint *mapping, gint mapping_size); | |||
G_END_DECLS | G_END_DECLS | |||
#endif | #endif | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added | |||
gda-data-model-iter.h | gda-data-model-iter.h | |||
---|---|---|---|---|
skipping to change at line 142 | skipping to change at line 142 | |||
gboolean gda_data_model_iter_move_to_row (GdaDataModelIte r *iter, gint row); | gboolean gda_data_model_iter_move_to_row (GdaDataModelIte r *iter, gint row); | |||
gboolean gda_data_model_iter_move_next (GdaDataModelIte r *iter); | gboolean gda_data_model_iter_move_next (GdaDataModelIte r *iter); | |||
gboolean gda_data_model_iter_move_prev (GdaDataModelIte r *iter); | gboolean gda_data_model_iter_move_prev (GdaDataModelIte r *iter); | |||
gint gda_data_model_iter_get_row (GdaDataModelIte r *iter); | gint gda_data_model_iter_get_row (GdaDataModelIte r *iter); | |||
void gda_data_model_iter_invalidate_contents (GdaDataModelIte r *iter); | void gda_data_model_iter_invalidate_contents (GdaDataModelIte r *iter); | |||
gboolean gda_data_model_iter_is_valid (GdaDataModelIte r *iter); | gboolean gda_data_model_iter_is_valid (GdaDataModelIte r *iter); | |||
GdaHolder *gda_data_model_iter_get_holder_for_field (GdaDataModelIte r *iter, gint col); | GdaHolder *gda_data_model_iter_get_holder_for_field (GdaDataModelIte r *iter, gint col); | |||
gint gda_data_model_iter_get_column_for_param (GdaDataModelIte r *iter, GdaHolder *param); | ||||
#define gda_data_model_iter_move_at_row gda_data_model_iter_move_to_row | #define gda_data_model_iter_move_at_row gda_data_model_iter_move_to_row | |||
G_END_DECLS | G_END_DECLS | |||
#endif | #endif | |||
End of changes. 1 change blocks. | ||||
0 lines changed or deleted | 1 lines changed or added | |||
gda-data-model.h | gda-data-model.h | |||
---|---|---|---|---|
skipping to change at line 67 | skipping to change at line 67 | |||
GDA_DATA_MODEL_ACCESS_WRITE = GDA_DATA_MODEL_ACCESS_INSERT | GDA_DAT A_MODEL_ACCESS_UPDATE | | GDA_DATA_MODEL_ACCESS_WRITE = GDA_DATA_MODEL_ACCESS_INSERT | GDA_DAT A_MODEL_ACCESS_UPDATE | | |||
GDA_DATA_MODEL_ACCESS_DELETE | GDA_DATA_MODEL_ACCESS_DELETE | |||
} GdaDataModelAccessFlags; | } GdaDataModelAccessFlags; | |||
typedef enum { | typedef enum { | |||
GDA_DATA_MODEL_HINT_START_BATCH_UPDATE, | GDA_DATA_MODEL_HINT_START_BATCH_UPDATE, | |||
GDA_DATA_MODEL_HINT_END_BATCH_UPDATE, | GDA_DATA_MODEL_HINT_END_BATCH_UPDATE, | |||
GDA_DATA_MODEL_HINT_REFRESH | GDA_DATA_MODEL_HINT_REFRESH | |||
} GdaDataModelHint; | } GdaDataModelHint; | |||
/** | ||||
* GdaDataModelIOFormat: | ||||
* @GDA_DATA_MODEL_IO_DATA_ARRAY_XML: data is exported as an XML structure | ||||
* @GDA_DATA_MODEL_IO_TEXT_SEPARATED: data is exported as CSV | ||||
* @GDA_DATA_MODEL_IO_TEXT_TABLE: data is exported as a human readable tabl | ||||
e | ||||
* | ||||
* Format to use when exporting a data model, see gda_data_model_export_to_ | ||||
string() and gda_data_model_export_to_file() | ||||
*/ | ||||
typedef enum { | typedef enum { | |||
GDA_DATA_MODEL_IO_DATA_ARRAY_XML, | GDA_DATA_MODEL_IO_DATA_ARRAY_XML, | |||
GDA_DATA_MODEL_IO_TEXT_SEPARATED | GDA_DATA_MODEL_IO_TEXT_SEPARATED, | |||
GDA_DATA_MODEL_IO_TEXT_TABLE | ||||
} GdaDataModelIOFormat; | } GdaDataModelIOFormat; | |||
typedef enum { | typedef enum { | |||
GDA_DATA_MODEL_ROW_OUT_OF_RANGE_ERROR, | GDA_DATA_MODEL_ROW_OUT_OF_RANGE_ERROR, | |||
GDA_DATA_MODEL_COLUMN_OUT_OF_RANGE_ERROR, | GDA_DATA_MODEL_COLUMN_OUT_OF_RANGE_ERROR, | |||
GDA_DATA_MODEL_VALUES_LIST_ERROR, | GDA_DATA_MODEL_VALUES_LIST_ERROR, | |||
GDA_DATA_MODEL_VALUE_TYPE_ERROR, | GDA_DATA_MODEL_VALUE_TYPE_ERROR, | |||
GDA_DATA_MODEL_ROW_NOT_FOUND_ERROR, | GDA_DATA_MODEL_ROW_NOT_FOUND_ERROR, | |||
GDA_DATA_MODEL_ACCESS_ERROR, | GDA_DATA_MODEL_ACCESS_ERROR, | |||
GDA_DATA_MODEL_FEATURE_NON_SUPPORTED_ERROR, | GDA_DATA_MODEL_FEATURE_NON_SUPPORTED_ERROR, | |||
End of changes. 2 change blocks. | ||||
1 lines changed or deleted | 12 lines changed or added | |||
gda-holder.h | gda-holder.h | |||
---|---|---|---|---|
skipping to change at line 91 | skipping to change at line 91 | |||
* Each GdaHolder object is thread safe. | * Each GdaHolder object is thread safe. | |||
*/ | */ | |||
GType gda_holder_get_type (void) G_GNUC_CONST; | GType gda_holder_get_type (void) G_GNUC_CONST; | |||
GdaHolder *gda_holder_new (GType type); | GdaHolder *gda_holder_new (GType type); | |||
GdaHolder *gda_holder_new_inline (GType type, const g char *id, ...); | GdaHolder *gda_holder_new_inline (GType type, const g char *id, ...); | |||
GdaHolder *gda_holder_copy (GdaHolder *orig); | GdaHolder *gda_holder_copy (GdaHolder *orig); | |||
GType gda_holder_get_g_type (GdaHolder *holder); | GType gda_holder_get_g_type (GdaHolder *holder); | |||
const gchar *gda_holder_get_id (GdaHolder *holder); | const gchar *gda_holder_get_id (GdaHolder *holder); | |||
gchar * gda_holder_get_alphanum_id (GdaHolder *holder); | ||||
/** | /** | |||
* gda_holder_new_string: | * gda_holder_new_string: | |||
* @id: a string | * @id: a string | |||
* @str: a string | * @str: a string | |||
* | * | |||
* Creates a new boolean #GdaHolder object with an ID set to @id, and a val ue initialized to | * Creates a new boolean #GdaHolder object with an ID set to @id, and a val ue initialized to | |||
* @str. | * @str. | |||
* | * | |||
* Returns: a new #GdaHolder | * Returns: a new #GdaHolder | |||
End of changes. 1 change blocks. | ||||
0 lines changed or deleted | 1 lines changed or added | |||
gda-meta-store.h | gda-meta-store.h | |||
---|---|---|---|---|
skipping to change at line 210 | skipping to change at line 210 | |||
gchar **colnames, gchar **ref_colnames, | gchar **colnames, gchar **ref_colnames, | |||
GError **error); | GError **error); | |||
gboolean gda_meta_store_undeclare_foreign_key (GdaMetaStore *st ore, GdaMetaStruct *mstruct, | gboolean gda_meta_store_undeclare_foreign_key (GdaMetaStore *st ore, GdaMetaStruct *mstruct, | |||
const gchar *fk_n ame, | const gchar *fk_n ame, | |||
const gchar *cata log, const gchar *schema, const gchar *table, | const gchar *cata log, const gchar *schema, const gchar *table, | |||
const gchar *ref_ catalog, const gchar *ref_schema, const gchar *ref_table, | const gchar *ref_ catalog, const gchar *ref_schema, const gchar *ref_table, | |||
GError **error); | GError **error); | |||
GType gda_meta_context_get_type (void) G_GNUC_CON ST; | GType gda_meta_context_get_type (void) G_GNUC_CON ST; | |||
GdaMetaContext* gda_meta_context_new (); | GdaMetaContext* gda_meta_context_new (void); | |||
GdaMetaContext* gda_meta_context_copy (GdaMetaContext * | ||||
ctx); | ||||
void gda_meta_context_set_table (GdaMetaContext * ctx, const gchar *table); | void gda_meta_context_set_table (GdaMetaContext * ctx, const gchar *table); | |||
const gchar* gda_meta_context_get_table (GdaMetaContext * ctx); | const gchar* gda_meta_context_get_table (GdaMetaContext * ctx); | |||
void gda_meta_context_set_column (GdaMetaContext * ctx, const gchar* column, | void gda_meta_context_set_column (GdaMetaContext * ctx, const gchar* column, | |||
const GValue* val ue, GdaConnection *cnc); | const GValue* val ue, GdaConnection *cnc); | |||
void gda_meta_context_set_columns (GdaMetaContext * ctx, GHashTable *columns, | void gda_meta_context_set_columns (GdaMetaContext * ctx, GHashTable *columns, | |||
GdaConnection *cn c); | GdaConnection *cn c); | |||
void gda_meta_context_free (GdaMetaContext * ctx); | void gda_meta_context_free (GdaMetaContext * ctx); | |||
G_END_DECLS | G_END_DECLS | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 4 lines changed or added | |||
gda-meta-struct.h | gda-meta-struct.h | |||
---|---|---|---|---|
skipping to change at line 494 | skipping to change at line 494 | |||
* } | * } | |||
* else | * else | |||
* g_print ("Not a table or a view\n"); | * g_print ("Not a table or a view\n"); | |||
*} | *} | |||
*gda_meta_struct_free (mstruct); | *gda_meta_struct_free (mstruct); | |||
* </programlisting> | * </programlisting> | |||
*/ | */ | |||
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); | |||
gboolean gda_meta_struct_load_from_xml_file (GdaMetaStruct *mstr | ||||
uct, const gchar *catalog, | ||||
const gchar *schema, | ||||
const gchar *xml_spe | ||||
c_file, GError **error); | ||||
GdaMetaDbObject *gda_meta_struct_complement (GdaMetaStruct *mstr uct, GdaMetaDbObjectType type, | GdaMetaDbObject *gda_meta_struct_complement (GdaMetaStruct *mstr uct, GdaMetaDbObjectType type, | |||
const GValue *catalo g, const GValue *schema, const GValue *name, | const GValue *catalo g, const GValue *schema, const GValue *name, | |||
GError **error); | GError **error); | |||
gboolean gda_meta_struct_complement_schema (GdaMetaStruct *mstr uct, | gboolean gda_meta_struct_complement_schema (GdaMetaStruct *mstr uct, | |||
const GValue *catalo g, const GValue *schema, GError **error); | const GValue *catalo g, const GValue *schema, GError **error); | |||
gboolean gda_meta_struct_complement_default (GdaMetaStruct *mstr uct, GError **error); | gboolean gda_meta_struct_complement_default (GdaMetaStruct *mstr uct, GError **error); | |||
gboolean gda_meta_struct_complement_all (GdaMetaStruct *mstr uct, GError **error); | gboolean gda_meta_struct_complement_all (GdaMetaStruct *mstr uct, GError **error); | |||
gboolean gda_meta_struct_complement_depend (GdaMetaStruct *mstr uct, GdaMetaDbObject *dbo, | gboolean gda_meta_struct_complement_depend (GdaMetaStruct *mstr uct, GdaMetaDbObject *dbo, | |||
GError **error); | GError **error); | |||
End of changes. 1 change blocks. | ||||
0 lines changed or deleted | 5 lines changed or added | |||
gda-server-provider-extra.h | gda-server-provider-extra.h | |||
---|---|---|---|---|
skipping to change at line 55 | skipping to change at line 55 | |||
*/ | */ | |||
GdaSqlParser *gda_server_provider_internal_get_parser (GdaServerProvider *p rov); | GdaSqlParser *gda_server_provider_internal_get_parser (GdaServerProvider *p rov); | |||
/* | /* | |||
* Default perform operation | * Default perform operation | |||
*/ | */ | |||
gboolean gda_server_provider_perform_operation_default (GdaServerProvider * provider, GdaConnection *cnc, | gboolean gda_server_provider_perform_operation_default (GdaServerProvider * provider, GdaConnection *cnc, | |||
GdaServerOperation * op, GError **error); | GdaServerOperation * op, GError **error); | |||
/* default data handler method */ | /* default data handler method */ | |||
GdaDataHandler *gda_server_provider_handler_use_default (GdaServerProvider *provider, GType type); | ||||
GdaDataHandler *gda_server_provider_get_data_handler_default (GdaServerProv ider *provider, GdaConnection *cnc, | GdaDataHandler *gda_server_provider_get_data_handler_default (GdaServerProv ider *provider, GdaConnection *cnc, | |||
GType type, co nst gchar *dbms_type); | GType type, co nst gchar *dbms_type); | |||
/* Convert a SELECT statement with potentially some parameters to another S ELECT statement | /* Convert a SELECT statement with potentially some parameters to another S ELECT statement | |||
* where all the parameters are removed and where the WHERE condition is se t to "0 = 1" | * where all the parameters are removed and where the WHERE condition is se t to "0 = 1" | |||
* to make sure no row will ever be returned | * to make sure no row will ever be returned | |||
*/ | */ | |||
GdaStatement *gda_select_alter_select_for_empty (GdaStatement *stmt, GError **error); | GdaStatement *gda_select_alter_select_for_empty (GdaStatement *stmt, GError **error); | |||
/* | /* | |||
End of changes. 1 change blocks. | ||||
0 lines changed or deleted | 1 lines changed or added | |||
gda-server-provider.h | gda-server-provider.h | |||
---|---|---|---|---|
skipping to change at line 305 | skipping to change at line 305 | |||
* @task_id: | * @task_id: | |||
* @result_obj: | * @result_obj: | |||
* @error: | * @error: | |||
* @data: | * @data: | |||
* | * | |||
* Function to be called by Libgda when the associated asynchronous method invoked finishes | * Function to be called by Libgda when the associated asynchronous method invoked finishes | |||
*/ | */ | |||
typedef void (*GdaServerProviderExecCallback) (GdaServerProvider *provider, GdaConnection *cnc, guint task_id, | typedef void (*GdaServerProviderExecCallback) (GdaServerProvider *provider, GdaConnection *cnc, guint task_id, | |||
GObject *result_obj, const GE rror *error, gpointer data); | GObject *result_obj, const GE rror *error, gpointer data); | |||
/** | ||||
* GDA_SERVER_PROVIDER_UNDEFINED_LIMITING_THREAD: (skip) | ||||
*/ | ||||
#define GDA_SERVER_PROVIDER_UNDEFINED_LIMITING_THREAD ((gpointer)0x1) | #define GDA_SERVER_PROVIDER_UNDEFINED_LIMITING_THREAD ((gpointer)0x1) | |||
struct _GdaServerProviderClass { | struct _GdaServerProviderClass { | |||
GObjectClass parent_class; | GObjectClass parent_class; | |||
/* provider information */ | /* provider information */ | |||
GThread * limiting_thread; /* if not NULL, then usin g the provider will be limited to this thread */ | GThread * limiting_thread; /* if not NULL, then usin g the provider will be limited to this thread */ | |||
const gchar *(* get_name) (GdaServerProvider *provider); | const gchar *(* get_name) (GdaServerProvider *provider); | |||
const gchar *(* get_version) (GdaServerProvider *provider); | const gchar *(* get_version) (GdaServerProvider *provider); | |||
const gchar *(* get_server_version) (GdaServerProvider *provider, GdaConnection *cnc); | const gchar *(* get_server_version) (GdaServerProvider *provider, GdaConnection *cnc); | |||
gboolean (* supports_feature) (GdaServerProvider *provider, GdaConnection *cnc, | gboolean (* supports_feature) (GdaServerProvider *provider, GdaConnection *cnc, | |||
End of changes. 1 change blocks. | ||||
0 lines changed or deleted | 3 lines changed or added | |||
gda-statement.h | gda-statement.h | |||
---|---|---|---|---|
skipping to change at line 65 | skipping to change at line 65 | |||
GDA_STATEMENT_PARAM_ERROR | GDA_STATEMENT_PARAM_ERROR | |||
} GdaStatementError; | } GdaStatementError; | |||
/** | /** | |||
* GdaStatementModelUsage: | * GdaStatementModelUsage: | |||
* @GDA_STATEMENT_MODEL_RANDOM_ACCESS: access to the data model will be ran dom (usually this will result in a data model completely stored in memory) | * @GDA_STATEMENT_MODEL_RANDOM_ACCESS: access to the data model will be ran dom (usually this will result in a data model completely stored in memory) | |||
* @GDA_STATEMENT_MODEL_CURSOR_FORWARD: access to the data model will be do ne using a cursor moving forward | * @GDA_STATEMENT_MODEL_CURSOR_FORWARD: access to the data model will be do ne using a cursor moving forward | |||
* @GDA_STATEMENT_MODEL_CURSOR_BACKWARD: access to the data model will be d one using a cursor moving backward | * @GDA_STATEMENT_MODEL_CURSOR_BACKWARD: access to the data model will be d one using a cursor moving backward | |||
* @GDA_STATEMENT_MODEL_CURSOR: access to the data model will be done using a cursor (moving both forward and backward) | * @GDA_STATEMENT_MODEL_CURSOR: access to the data model will be done using a cursor (moving both forward and backward) | |||
* @GDA_STATEMENT_MODEL_ALLOW_NOPARAM: specifies that the data model should be executed even if some parameters required to execute it are invalid (in this case the data model will have no row, and will automatically be re-ru n when the missing parameters are once again valid) | * @GDA_STATEMENT_MODEL_ALLOW_NOPARAM: specifies that the data model should be executed even if some parameters required to execute it are invalid (in this case the data model will have no row, and will automatically be re-ru n when the missing parameters are once again valid) | |||
* @GDA_STATEMENT_MODEL_OFFLINE: specifies that the data model's contents w ill be fully loaded into the client side (the memory of the process using & libgda;), not requiring the server any more to access the data (the default behaviour is to access the server any time data is to be read, and data is cached in memory). This flag is useful only if used in conjunction with th e GDA_STATEMENT_MODEL_RANDOM_ACCESS flag (otherwise an error will be return ed). | * @GDA_STATEMENT_MODEL_OFFLINE: specifies that the data model's contents w ill be fully loaded into the client side (the memory of the process using L ibgda), not requiring the server any more to access the data (the default b ehaviour is to access the server any time data is to be read, and data is c ached in memory). This flag is useful only if used in conjunction with the GDA_STATEMENT_MODEL_RANDOM_ACCESS flag (otherwise an error will be returned ). | |||
* | * | |||
* These flags specify how the #GdaDataModel returned when executing a #Gda Statement will be used | * These flags specify how the #GdaDataModel returned when executing a #Gda Statement will be used | |||
*/ | */ | |||
typedef enum { | typedef enum { | |||
GDA_STATEMENT_MODEL_RANDOM_ACCESS = 1 << 0, | GDA_STATEMENT_MODEL_RANDOM_ACCESS = 1 << 0, | |||
GDA_STATEMENT_MODEL_CURSOR_FORWARD = 1 << 1, | GDA_STATEMENT_MODEL_CURSOR_FORWARD = 1 << 1, | |||
GDA_STATEMENT_MODEL_CURSOR_BACKWARD = 1 << 2, | GDA_STATEMENT_MODEL_CURSOR_BACKWARD = 1 << 2, | |||
GDA_STATEMENT_MODEL_CURSOR = GDA_STATEMENT_MODEL_CURSOR_FOR WARD | GDA_STATEMENT_MODEL_CURSOR_BACKWARD, | GDA_STATEMENT_MODEL_CURSOR = GDA_STATEMENT_MODEL_CURSOR_FOR WARD | GDA_STATEMENT_MODEL_CURSOR_BACKWARD, | |||
GDA_STATEMENT_MODEL_ALLOW_NOPARAM = 1 << 3, | GDA_STATEMENT_MODEL_ALLOW_NOPARAM = 1 << 3, | |||
GDA_STATEMENT_MODEL_OFFLINE = 1 << 4 | GDA_STATEMENT_MODEL_OFFLINE = 1 << 4 | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added | |||