| gda-connection.h | | gda-connection.h | |
| | | | |
| skipping to change at line 268 | | skipping to change at line 269 | |
| const gchar *gda_connection_get_provider_name (GdaConnection *cn
c); | | const gchar *gda_connection_get_provider_name (GdaConnection *cn
c); | |
| | | | |
| GdaServerOperation *gda_connection_create_operation (GdaConnection *cn
c, GdaServerOperationType type, | | GdaServerOperation *gda_connection_create_operation (GdaConnection *cn
c, GdaServerOperationType type, | |
| GdaSet *options,
GError **error); | | GdaSet *options,
GError **error); | |
| gboolean gda_connection_perform_operation (GdaConnection *cn
c, GdaServerOperation *op, GError **error); | | gboolean gda_connection_perform_operation (GdaConnection *cn
c, GdaServerOperation *op, GError **error); | |
| | | | |
| const gchar *gda_connection_get_dsn (GdaConnection *cn
c); | | const gchar *gda_connection_get_dsn (GdaConnection *cn
c); | |
| 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); | |
| | | | |
|
| | | GdaStatement *gda_connection_parse_sql_string (GdaConnection *cn | |
| | | c, const gchar *sql, GdaSet **params, | |
| | | GError **error); | |
| | | | |
| | | /* | |
| | | * Quick commands execution | |
| | | */ | |
| | | GdaDataModel* gda_connection_execute_select_command (GdaConnec | |
| | | tion *cnc, const gchar *sql, GError **error); | |
| | | gint gda_connection_execute_non_select_command (GdaConnec | |
| | | tion *cnc, const gchar *sql, GError **error); | |
| | | | |
| | | /* | |
| | | * Data in tables manipulation | |
| | | */ | |
| | | gboolean gda_connection_insert_row_into_table (GdaConnect | |
| | | ion *cnc, const gchar *table, GError **error, ...); | |
| | | gboolean gda_connection_insert_row_into_table_v (GdaConnect | |
| | | ion *cnc, const gchar *table, | |
| | | GSList *col_names, GSL | |
| | | ist *values, | |
| | | GError **error); | |
| | | | |
| | | gboolean gda_connection_update_row_in_table (GdaConnect | |
| | | ion *cnc, const gchar *table, | |
| | | const gchar *condition | |
| | | _column_name, | |
| | | GValue *condition_valu | |
| | | e, GError **error, ...); | |
| | | gboolean gda_connection_update_row_in_table_v (GdaConnect | |
| | | ion *cnc, const gchar *table, | |
| | | const gchar *condition | |
| | | _column_name, | |
| | | GValue *condition_valu | |
| | | e, | |
| | | GSList *col_names, GSL | |
| | | ist *values, | |
| | | GError **error); | |
| | | gboolean gda_connection_delete_row_from_table (GdaConnect | |
| | | ion *cnc, const gchar *table, | |
| | | const gchar *condition | |
| | | _column_name, | |
| | | GValue *condition_valu | |
| | | e, GError **error); | |
| | | | |
| 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_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, | |
| | | | |
End of changes. 1 change blocks. |
| 0 lines changed or deleted | | 45 lines changed or added | |
|
| gda-data-handler.h | | gda-data-handler.h | |
| | | | |
| skipping to change at line 63 | | skipping to change at line 63 | |
| /* Simple data manipulation */ | | /* Simple data manipulation */ | |
| gchar *gda_data_handler_get_sql_from_value (GdaDataHandler *dh,
const GValue *value); | | gchar *gda_data_handler_get_sql_from_value (GdaDataHandler *dh,
const GValue *value); | |
| gchar *gda_data_handler_get_str_from_value (GdaDataHandler *dh,
const GValue *value); | | gchar *gda_data_handler_get_str_from_value (GdaDataHandler *dh,
const GValue *value); | |
| GValue *gda_data_handler_get_value_from_sql (GdaDataHandler *dh,
const gchar *sql, GType type); | | GValue *gda_data_handler_get_value_from_sql (GdaDataHandler *dh,
const gchar *sql, GType type); | |
| GValue *gda_data_handler_get_value_from_str (GdaDataHandler *dh,
const gchar *str, GType type); | | GValue *gda_data_handler_get_value_from_str (GdaDataHandler *dh,
const gchar *str, GType type); | |
| GValue *gda_data_handler_get_sane_init_value (GdaDataHandler *dh,
GType type); | | GValue *gda_data_handler_get_sane_init_value (GdaDataHandler *dh,
GType type); | |
| | | | |
| /* information about the data handler itself */ | | /* information about the data handler itself */ | |
| gboolean gda_data_handler_accepts_g_type (GdaDataHandler *dh,
GType type); | | gboolean gda_data_handler_accepts_g_type (GdaDataHandler *dh,
GType type); | |
| const gchar *gda_data_handler_get_descr (GdaDataHandler *dh)
; | | const gchar *gda_data_handler_get_descr (GdaDataHandler *dh)
; | |
|
| | | GdaDataHandler *gda_data_handler_get_default (GType for_type); | |
| | | | |
| 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-easy.h | | gda-easy.h | |
| | | | |
| skipping to change at line 29 | | skipping to change at line 29 | |
| * License along with this Library; see the file COPYING.LIB. If not, | | * License along with this Library; see the file COPYING.LIB. If not, | |
| * write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330
, | | * write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330
, | |
| * Boston, MA 02111-1307, USA. | | * Boston, MA 02111-1307, USA. | |
| */ | | */ | |
| | | | |
| #ifndef __GDA_EASY_H__ | | #ifndef __GDA_EASY_H__ | |
| #define __GDA_EASY_H__ | | #define __GDA_EASY_H__ | |
| | | | |
| #include <libgda/gda-connection.h> | | #include <libgda/gda-connection.h> | |
| #include <libgda/gda-server-operation.h> | | #include <libgda/gda-server-operation.h> | |
|
| #include <libgda/handlers/gda-handler-bin.h> | | | |
| #include <libgda/handlers/gda-handler-boolean.h> | | | |
| #include <libgda/handlers/gda-handler-numerical.h> | | | |
| #include <libgda/handlers/gda-handler-string.h> | | | |
| #include <libgda/handlers/gda-handler-time.h> | | | |
| #include <libgda/handlers/gda-handler-type.h> | | | |
| | | | |
| G_BEGIN_DECLS | | G_BEGIN_DECLS | |
| | | | |
| extern GQuark gda_easy_error_quark (void); | | extern GQuark gda_easy_error_quark (void); | |
| #define GDA_EASY_ERROR gda_easy_error_quark () | | #define GDA_EASY_ERROR gda_easy_error_quark () | |
| | | | |
| typedef enum { | | typedef enum { | |
| GDA_EASY_OBJECT_NAME_ERROR, | | GDA_EASY_OBJECT_NAME_ERROR, | |
| GDA_EASY_INCORRECT_VALUE_ERROR, | | GDA_EASY_INCORRECT_VALUE_ERROR, | |
| GDA_EASY_OPERATION_ERROR | | GDA_EASY_OPERATION_ERROR | |
| } GdaEasyError; | | } GdaEasyError; | |
| | | | |
| typedef enum | | typedef enum | |
| { | | { | |
|
| GDA_EASY_CREATE_TABLE_NOTHING_FLAG = 1 << 0, | | GDA_EASY_CREATE_TABLE_NOTHING_FLAG = GDA_SERVER_OPERATION_CREATE_T | |
| GDA_EASY_CREATE_TABLE_PKEY_FLAG = 1 << 1, | | ABLE_NOTHING_FLAG, | |
| GDA_EASY_CREATE_TABLE_NOT_NULL_FLAG = 1 << 2, | | GDA_EASY_CREATE_TABLE_PKEY_FLAG = GDA_SERVER_OPERATION_CREATE_T | |
| GDA_EASY_CREATE_TABLE_UNIQUE_FLAG = 1 << 3, | | ABLE_PKEY_FLAG, | |
| GDA_EASY_CREATE_TABLE_AUTOINC_FLAG = 1 << 4, | | GDA_EASY_CREATE_TABLE_NOT_NULL_FLAG = GDA_SERVER_OPERATION_CREATE_T | |
| GDA_EASY_CREATE_TABLE_FKEY_FLAG = 1 << 5, | | ABLE_NOT_NULL_FLAG, | |
| | | GDA_EASY_CREATE_TABLE_UNIQUE_FLAG = GDA_SERVER_OPERATION_CREATE_T | |
| | | ABLE_UNIQUE_FLAG, | |
| | | GDA_EASY_CREATE_TABLE_AUTOINC_FLAG = GDA_SERVER_OPERATION_CREATE_T | |
| | | ABLE_AUTOINC_FLAG, | |
| | | GDA_EASY_CREATE_TABLE_FKEY_FLAG = GDA_SERVER_OPERATION_CREATE_T | |
| | | ABLE_FKEY_FLAG, | |
| /* Flags combinations */ | | /* Flags combinations */ | |
|
| GDA_EASY_CREATE_TABLE_PKEY_AUTOINC_FLAG = GDA_EASY_CREATE_TABLE_PKEY
_FLAG | GDA_EASY_CREATE_TABLE_AUTOINC_FLAG | | GDA_EASY_CREATE_TABLE_PKEY_AUTOINC_FLAG = GDA_SERVER_OPERATION_CREAT
E_TABLE_PKEY_FLAG | GDA_SERVER_OPERATION_CREATE_TABLE_AUTOINC_FLAG | |
| } GdaEasyCreateTableFlag; | | } GdaEasyCreateTableFlag; | |
| | | | |
| /* | | /* | |
| * Convenient Functions | | * Convenient Functions | |
| */ | | */ | |
| GdaDataHandler *gda_get_default_handler (GType for_type); | | GdaDataHandler *gda_get_default_handler (GType for_type); | |
| GdaStatement *gda_parse_sql_string (GdaConnection *cnc,
const gchar *sql, GdaSet **params, | | GdaStatement *gda_parse_sql_string (GdaConnection *cnc,
const gchar *sql, GdaSet **params, | |
|
GError **error); | |
GError **error); | |
| /* | | /* | |
| * Quick commands execution | | * Quick commands execution | |
| | | | |
End of changes. 3 change blocks. |
| 13 lines changed or deleted | | 13 lines changed or added | |
|
| gda-enum-types.h | | gda-enum-types.h | |
| | | | |
| skipping to change at line 90 | | skipping to change at line 90 | |
| 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_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" */ | | /* 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" */ | | /* 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); | |
| | | #define GDA_TYPE_SERVER_OPERATION_ERROR (gda_server_operation_error_get_typ | |
| | | e()) | |
| | | 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()) | |
| 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" */ | | /* 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()) | |
| | | | |
End of changes. 1 change blocks. |
| 0 lines changed or deleted | | 6 lines changed or added | |
|
| gda-mutex.h | | gda-mutex.h | |
| /* GDA library | | /* GDA library | |
|
| * Copyright (C) 2008 The GNOME Foundation. | | * Copyright (C) 2008 - 2011 The GNOME Foundation. | |
| * | | * | |
| * AUTHORS: | | * AUTHORS: | |
| * Vivien Malerba <malerba@gnome-db.org> | | * Vivien Malerba <malerba@gnome-db.org> | |
| * | | * | |
| * This Library is free software; you can redistribute it and/or | | * This Library is free software; you can redistribute it and/or | |
| * modify it under the terms of the GNU Library General Public License as | | * modify it under the terms of the GNU Library General Public License as | |
| * published by the Free Software Foundation; either version 2 of the | | * published by the Free Software Foundation; either version 2 of the | |
| * License, or (at your option) any later version. | | * License, or (at your option) any later version. | |
| * | | * | |
| * This Library is distributed in the hope that it will be useful, | | * This Library is distributed in the hope that it will be useful, | |
| | | | |
| skipping to change at line 38 | | skipping to change at line 38 | |
| G_BEGIN_DECLS | | G_BEGIN_DECLS | |
| | | | |
| typedef struct _GdaMutex GdaMutex; | | typedef struct _GdaMutex GdaMutex; | |
| | | | |
| GdaMutex* gda_mutex_new (void); | | GdaMutex* gda_mutex_new (void); | |
| void gda_mutex_lock (GdaMutex *mutex); | | void gda_mutex_lock (GdaMutex *mutex); | |
| gboolean gda_mutex_trylock (GdaMutex *mutex); | | gboolean gda_mutex_trylock (GdaMutex *mutex); | |
| void gda_mutex_unlock (GdaMutex *mutex); | | void gda_mutex_unlock (GdaMutex *mutex); | |
| void gda_mutex_free (GdaMutex *mutex); | | void gda_mutex_free (GdaMutex *mutex); | |
| | | | |
|
| | | #ifdef GDA_DEBUG_MUTEX | |
| | | #include <stdio.h> | |
| | | void gda_mutex_debug (GdaMutex *mutex, gboolean debug); | |
| | | void gda_mutex_dump_usage (GdaMutex *mutex, FILE *stream); | |
| | | #endif | |
| | | | |
| G_END_DECLS | | G_END_DECLS | |
| | | | |
| #endif | | #endif | |
| | | | |
End of changes. 2 change blocks. |
| 1 lines changed or deleted | | 7 lines changed or added | |
|
| gda-server-operation.h | | gda-server-operation.h | |
| | | | |
| skipping to change at line 69 | | skipping to change at line 69 | |
| GDA_SERVER_OPERATION_COMMENT_TABLE, | | GDA_SERVER_OPERATION_COMMENT_TABLE, | |
| GDA_SERVER_OPERATION_COMMENT_COLUMN, | | GDA_SERVER_OPERATION_COMMENT_COLUMN, | |
| | | | |
| GDA_SERVER_OPERATION_CREATE_USER, | | GDA_SERVER_OPERATION_CREATE_USER, | |
| GDA_SERVER_OPERATION_ALTER_USER, | | GDA_SERVER_OPERATION_ALTER_USER, | |
| GDA_SERVER_OPERATION_DROP_USER, | | GDA_SERVER_OPERATION_DROP_USER, | |
| | | | |
| GDA_SERVER_OPERATION_LAST | | GDA_SERVER_OPERATION_LAST | |
| } GdaServerOperationType; | | } GdaServerOperationType; | |
| | | | |
|
| | | /* error reporting */ | |
| | | extern GQuark gda_server_operation_error_quark (void); | |
| | | #define GDA_SERVER_OPERATION_ERROR gda_server_operation_error_quark () | |
| | | | |
| | | typedef enum { | |
| | | GDA_SERVER_OPERATION_OBJECT_NAME_ERROR, | |
| | | GDA_SERVER_OPERATION_INCORRECT_VALUE_ERROR | |
| | | } GdaServerOperationError; | |
| | | | |
| | | typedef enum | |
| | | { | |
| | | GDA_SERVER_OPERATION_CREATE_TABLE_NOTHING_FLAG = 1 << 0, | |
| | | GDA_SERVER_OPERATION_CREATE_TABLE_PKEY_FLAG = 1 << 1, | |
| | | GDA_SERVER_OPERATION_CREATE_TABLE_NOT_NULL_FLAG = 1 << 2, | |
| | | GDA_SERVER_OPERATION_CREATE_TABLE_UNIQUE_FLAG = 1 << 3, | |
| | | GDA_SERVER_OPERATION_CREATE_TABLE_AUTOINC_FLAG = 1 << 4, | |
| | | GDA_SERVER_OPERATION_CREATE_TABLE_FKEY_FLAG = 1 << 5, | |
| | | /* Flags combinations */ | |
| | | GDA_SERVER_OPERATION_CREATE_TABLE_PKEY_AUTOINC_FLAG = GDA_SERVER_OPE | |
| | | RATION_CREATE_TABLE_PKEY_FLAG | GDA_SERVER_OPERATION_CREATE_TABLE_AUTOINC_F | |
| | | LAG | |
| | | } GdaServerOperationCreateTableFlag; | |
| | | | |
| typedef enum { | | typedef enum { | |
| GDA_SERVER_OPERATION_NODE_PARAMLIST, | | GDA_SERVER_OPERATION_NODE_PARAMLIST, | |
| GDA_SERVER_OPERATION_NODE_DATA_MODEL, | | GDA_SERVER_OPERATION_NODE_DATA_MODEL, | |
| GDA_SERVER_OPERATION_NODE_PARAM, | | GDA_SERVER_OPERATION_NODE_PARAM, | |
| GDA_SERVER_OPERATION_NODE_SEQUENCE, | | GDA_SERVER_OPERATION_NODE_SEQUENCE, | |
| GDA_SERVER_OPERATION_NODE_SEQUENCE_ITEM, | | GDA_SERVER_OPERATION_NODE_SEQUENCE_ITEM, | |
| | | | |
| GDA_SERVER_OPERATION_NODE_DATA_MODEL_COLUMN, | | GDA_SERVER_OPERATION_NODE_DATA_MODEL_COLUMN, | |
| GDA_SERVER_OPERATION_NODE_UNKNOWN | | GDA_SERVER_OPERATION_NODE_UNKNOWN | |
| } GdaServerOperationNodeType; | | } GdaServerOperationNodeType; | |
| | | | |
| skipping to change at line 151 | | skipping to change at line 172 | |
| guint gda_server_operation_get_sequence_size (Gd
aServerOperation *op, const gchar *path); | | guint gda_server_operation_get_sequence_size (Gd
aServerOperation *op, const gchar *path); | |
| guint gda_server_operation_get_sequence_max_size (Gd
aServerOperation *op, const gchar *path); | | guint gda_server_operation_get_sequence_max_size (Gd
aServerOperation *op, const gchar *path); | |
| guint gda_server_operation_get_sequence_min_size (Gd
aServerOperation *op, const gchar *path); | | guint gda_server_operation_get_sequence_min_size (Gd
aServerOperation *op, const gchar *path); | |
| gchar **gda_server_operation_get_sequence_item_names (Gd
aServerOperation *op, const gchar *path); | | gchar **gda_server_operation_get_sequence_item_names (Gd
aServerOperation *op, const gchar *path); | |
| | | | |
| guint gda_server_operation_add_item_to_sequence (Gd
aServerOperation *op, const gchar *seq_path); | | guint gda_server_operation_add_item_to_sequence (Gd
aServerOperation *op, const gchar *seq_path); | |
| gboolean gda_server_operation_del_item_from_sequence (Gd
aServerOperation *op, const gchar *item_path); | | gboolean gda_server_operation_del_item_from_sequence (Gd
aServerOperation *op, const gchar *item_path); | |
| | | | |
| gboolean gda_server_operation_is_valid (Gd
aServerOperation *op, const gchar *xml_file, GError **error); | | gboolean gda_server_operation_is_valid (Gd
aServerOperation *op, const gchar *xml_file, GError **error); | |
| | | | |
|
| | | /* | |
| | | * Database creation and destruction | |
| | | */ | |
| | | GdaServerOperation *gda_server_operation_prepare_create_database (con | |
| | | st gchar *provider, const gchar *db_name, GError **error); | |
| | | gboolean gda_server_operation_perform_create_database (Gda | |
| | | ServerOperation *op, const gchar *provider, GError **error); | |
| | | GdaServerOperation *gda_server_operation_prepare_drop_database (con | |
| | | st gchar *provider, const gchar *db_name, GError **error); | |
| | | gboolean gda_server_operation_perform_drop_database (Gda | |
| | | ServerOperation *op, const gchar *provider, GError **error); | |
| | | | |
| | | /* | |
| | | * Tables creation and destruction | |
| | | */ | |
| | | GdaServerOperation *gda_server_operation_prepare_create_table (GdaCo | |
| | | nnection *cnc, const gchar *table_name, GError **error, ...); | |
| | | gboolean gda_server_operation_perform_create_table (Gda | |
| | | ServerOperation *op, GError **error); | |
| | | GdaServerOperation *gda_server_operation_prepare_drop_table (Gda | |
| | | Connection *cnc, const gchar *table_name, GError **error); | |
| | | gboolean gda_server_operation_perform_drop_table (Gda | |
| | | ServerOperation *op, GError **error); | |
| | | | |
| G_END_DECLS | | G_END_DECLS | |
| | | | |
| #endif | | #endif | |
| | | | |
End of changes. 2 change blocks. |
| 0 lines changed or deleted | | 47 lines changed or added | |
|
| gda-statement-struct-parts.h | | gda-statement-struct-parts.h | |
| | | | |
| skipping to change at line 47 | | skipping to change at line 47 | |
| 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; | |
| typedef struct _GdaSqlSelectOrder GdaSqlSelectOrder; | | typedef struct _GdaSqlSelectOrder GdaSqlSelectOrder; | |
| | | | |
| /* | | /* | |
| * Any Expression | | * Any Expression | |
| */ | | */ | |
|
| | | /** | |
| | | * GdaSqlExpr: | |
| | | * @any: inheritance structure | |
| | | * @value: a #GValue, or %NULL. Please see specific note about this field. | |
| | | * @param_spec: a #GdaSqlParamSpec, or %NULL if this is not a variable | |
| | | * @func: not %NULL if expression is a function or aggregate | |
| | | * @cond: not %NULL if expression is a condition or an operation | |
| | | * @select: not %NULL if expression is a sub select statement (#GdaSqlState | |
| | | mentSelect or #GdaSqlStatementCompound) | |
| | | * @case_s: not %NULL if expression is a CASE WHEN ... expression | |
| | | * @cast_as: not %NULL if expression must be cast to another data type | |
| | | * @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), | |
| | | * 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, | |
| | | * 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 | |
| | | * example a string representing the <userinput>'joe'</userinput> value sho | |
| | | uld be | |
| | | * <userinput>"'joe'"</userinput> and not <userinput>"joe"</userinput>. | |
| | | * | |
| | | * Note 2 about the @value field: if the expression represents an SQL ident | |
| | | ifier (such as a table | |
| | | * or field name), then the @value_is_ident should be set to %0x01, and @va | |
| | | lue should be a string | |
| | | * which may contain double quotes around SQL identifiers which also are re | |
| | | served keywords or which | |
| | | * are case sensitive. | |
| | | */ | |
| struct _GdaSqlExpr { | | struct _GdaSqlExpr { | |
| 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; | |
| | | | |
End of changes. 1 change blocks. |
| 0 lines changed or deleted | | 35 lines changed or added | |
|