| gda-sql-builder.h | | gda-sql-builder.h | |
| | | | |
| skipping to change at line 71 | | skipping to change at line 71 | |
| /* Padding for future expansion */ | | /* Padding for future expansion */ | |
| void (*_gda_reserved1) (void); | | void (*_gda_reserved1) (void); | |
| void (*_gda_reserved2) (void); | | void (*_gda_reserved2) (void); | |
| void (*_gda_reserved3) (void); | | void (*_gda_reserved3) (void); | |
| void (*_gda_reserved4) (void); | | void (*_gda_reserved4) (void); | |
| }; | | }; | |
| | | | |
| GType gda_sql_builder_get_type (void) G_GNUC_CONST; | | GType gda_sql_builder_get_type (void) G_GNUC_CONST; | |
| GdaSqlBuilder *gda_sql_builder_new (GdaSqlStatementType stmt_
type); | | GdaSqlBuilder *gda_sql_builder_new (GdaSqlStatementType stmt_
type); | |
| GdaStatement *gda_sql_builder_get_statement (GdaSqlBuilder *builder, GE
rror **error); | | GdaStatement *gda_sql_builder_get_statement (GdaSqlBuilder *builder, GE
rror **error); | |
|
| GdaSqlStatement *gda_sql_builder_get_sql_statement (GdaSqlBuilder *builder
, gboolean copy_it); | | GdaSqlStatement *gda_sql_builder_get_sql_statement (GdaSqlBuilder *builder
); | |
| | | | |
| /* Expression API */ | | /* Expression API */ | |
|
| guint gda_sql_builder_add_id (GdaSqlBuilder *builder, guint id, | | guint gda_sql_builder_add_id (GdaSqlBuilder *builder, const gch | |
| const gchar *string); | | ar *string); | |
| guint gda_sql_builder_add_expr (GdaSqlBuilder *builder, guint i | | guint gda_sql_builder_add_expr (GdaSqlBuilder *builder, GdaData | |
| d, GdaDataHandler *dh, GType type, ...); | | Handler *dh, GType type, ...); | |
| guint gda_sql_builder_add_expr_value (GdaSqlBuilder *builder, g | | guint gda_sql_builder_add_expr_value (GdaSqlBuilder *builder, G | |
| uint id, GdaDataHandler *dh, const GValue *value); | | daDataHandler *dh, const GValue *value); | |
| guint gda_sql_builder_add_param (GdaSqlBuilder *builder, guint | | guint gda_sql_builder_add_param (GdaSqlBuilder *builder, const | |
| id, const gchar *param_name, GType type, gboolean nullok); | | gchar *param_name, GType type, gboolean nullok); | |
| | | | |
|
| guint gda_sql_builder_add_cond (GdaSqlBuilder *builder, guint i
d, GdaSqlOperatorType op, | | guint gda_sql_builder_add_cond (GdaSqlBuilder *builder, GdaSqlO
peratorType op, | |
| guint op1, guint op2, guint op3)
; | | guint op1, guint op2, guint op3)
; | |
|
| guint gda_sql_builder_add_cond_v (GdaSqlBuilder *builder, guint
id, GdaSqlOperatorType op, | | guint gda_sql_builder_add_cond_v (GdaSqlBuilder *builder, GdaSq
lOperatorType op, | |
| const guint *op_ids, gint op_i
ds_size); | | const guint *op_ids, gint op_i
ds_size); | |
|
| guint gda_sql_builder_add_function (GdaSqlBuilder *builder, gui | | guint gda_sql_builder_add_function (GdaSqlBuilder *builder, con | |
| nt id, const gchar *func_name, ...); | | st gchar *func_name, ...); | |
| guint gda_sql_builder_add_function_v (GdaSqlBuilder *builder, g | | guint gda_sql_builder_add_function_v (GdaSqlBuilder *builder, c | |
| uint id, const gchar *func_name, | | onst gchar *func_name, | |
| const guint *args, gint ar
gs_size); | | const guint *args, gint ar
gs_size); | |
|
| guint gda_sql_builder_add_sub_select (GdaSqlBuilder *builder, g | | guint gda_sql_builder_add_sub_select (GdaSqlBuilder *builder, G | |
| uint id, GdaSqlStatement *sqlst, | | daSqlStatement *sqlst); | |
| gboolean steal); | | guint gda_sql_builder_add_case (GdaSqlBuilder *builder, guint t | |
| guint gda_sql_builder_add_case (GdaSqlBuilder *builder, guint i | | est_expr, guint else_expr, ...); | |
| d, | | guint gda_sql_builder_add_case_v (GdaSqlBuilder *builder, guint | |
| guint test_expr, guint else_expr | | test_expr, guint else_expr, | |
| , ...); | | | |
| guint gda_sql_builder_add_case_v (GdaSqlBuilder *builder, guint | | | |
| id, | | | |
| guint test_expr, guint else_ex | | | |
| pr, | | | |
| const guint *when_array, const
guint *then_array, gint args_size); | | const guint *when_array, const
guint *then_array, gint args_size); | |
| | | | |
| /* General Statement API */ | | /* General Statement API */ | |
| void gda_sql_builder_add_field (GdaSqlBuilder *builder, const
gchar *field_name, GType type, ...); | | void gda_sql_builder_add_field (GdaSqlBuilder *builder, const
gchar *field_name, GType type, ...); | |
| void gda_sql_builder_add_field_value (GdaSqlBuilder *builder,
const gchar *field_name, | | void gda_sql_builder_add_field_value (GdaSqlBuilder *builder,
const gchar *field_name, | |
| const GValue *value); | | const GValue *value); | |
| | | | |
| void gda_sql_builder_set_table (GdaSqlBuilder *builder, const
gchar *table_name); | | void gda_sql_builder_set_table (GdaSqlBuilder *builder, const
gchar *table_name); | |
| void gda_sql_builder_set_where (GdaSqlBuilder *builder, guint
cond_id); | | void gda_sql_builder_set_where (GdaSqlBuilder *builder, guint
cond_id); | |
| | | | |
| void gda_sql_builder_add_field_id (GdaSqlBuilder *builder, gui
nt field_id, guint value_id); | | void gda_sql_builder_add_field_id (GdaSqlBuilder *builder, gui
nt field_id, guint value_id); | |
| | | | |
| /* SELECT Statement API */ | | /* SELECT Statement API */ | |
| guint gda_sql_builder_select_add_field (GdaSqlBuilder *builder,
const gchar *field_name, | | guint gda_sql_builder_select_add_field (GdaSqlBuilder *builder,
const gchar *field_name, | |
| const gchar *table_name,
const gchar *alias); | | const gchar *table_name,
const gchar *alias); | |
| guint gda_sql_builder_select_add_target (GdaSqlBuilder *builder
, const gchar *table_name, const gchar *alias); | | guint gda_sql_builder_select_add_target (GdaSqlBuilder *builder
, const gchar *table_name, const gchar *alias); | |
|
| guint gda_sql_builder_select_add_target_id (GdaSqlBuilder *buil | | guint gda_sql_builder_select_add_target_id (GdaSqlBuilder *buil | |
| der, guint id, | | der, guint table_id, const gchar *alias); | |
| guint table_id, const g | | guint gda_sql_builder_select_join_targets (GdaSqlBuilder *build | |
| char *alias); | | er, | |
| guint gda_sql_builder_select_join_targets (GdaSqlBuilder *build | | | |
| er, guint id, | | | |
| guint left_target_id,
guint right_target_id, | | guint left_target_id,
guint right_target_id, | |
| GdaSqlSelectJoinType
join_type, | | GdaSqlSelectJoinType
join_type, | |
| guint join_expr); | | guint join_expr); | |
| void gda_sql_builder_join_add_field (GdaSqlBuilder *builder, g
uint join_id, const gchar *field_name); | | void gda_sql_builder_join_add_field (GdaSqlBuilder *builder, g
uint join_id, const gchar *field_name); | |
| void gda_sql_builder_select_order_by (GdaSqlBuilder *builder,
guint expr_id, | | void gda_sql_builder_select_order_by (GdaSqlBuilder *builder,
guint expr_id, | |
| gboolean asc, const gchar
*collation_name); | | gboolean asc, const gchar
*collation_name); | |
| void gda_sql_builder_select_set_distinct (GdaSqlBuilder *build
er, | | void gda_sql_builder_select_set_distinct (GdaSqlBuilder *build
er, | |
| gboolean distinct, gu
int expr_id); | | gboolean distinct, gu
int expr_id); | |
| void gda_sql_builder_select_set_limit (GdaSqlBuilder *builder, | | void gda_sql_builder_select_set_limit (GdaSqlBuilder *builder, | |
| guint limit_count_expr_i
d, guint limit_offest_expr_id); | | guint limit_count_expr_i
d, guint limit_offest_expr_id); | |
| | | | |
| void gda_sql_builder_select_set_having (GdaSqlBuilder *builder
, guint cond_id); | | void gda_sql_builder_select_set_having (GdaSqlBuilder *builder
, guint cond_id); | |
| void gda_sql_builder_select_group_by (GdaSqlBuilder *builder,
guint expr_id); | | void gda_sql_builder_select_group_by (GdaSqlBuilder *builder,
guint expr_id); | |
| | | | |
| /* COMPOUND SELECT Statement API */ | | /* COMPOUND SELECT Statement API */ | |
| void gda_sql_builder_compound_set_type (GdaSqlBuilder *builder
, GdaSqlStatementCompoundType compound_type); | | void gda_sql_builder_compound_set_type (GdaSqlBuilder *builder
, GdaSqlStatementCompoundType compound_type); | |
|
| void gda_sql_builder_compound_add_sub_select (GdaSqlBuilder *b
uilder, GdaSqlStatement *sqlst, gboolean steal); | | void gda_sql_builder_compound_add_sub_select (GdaSqlBuilder *b
uilder, GdaSqlStatement *sqlst); | |
| | | | |
| /* import/Export API */ | | /* import/Export API */ | |
| GdaSqlExpr *gda_sql_builder_export_expression (GdaSqlBuilder *builder
, guint id); | | GdaSqlExpr *gda_sql_builder_export_expression (GdaSqlBuilder *builder
, guint id); | |
|
| guint gda_sql_builder_import_expression (GdaSqlBuilder *builder
, guint id, GdaSqlExpr *expr); | | guint gda_sql_builder_import_expression (GdaSqlBuilder *builder
, GdaSqlExpr *expr); | |
| | | | |
| G_END_DECLS | | G_END_DECLS | |
| | | | |
| #endif | | #endif | |
| | | | |
End of changes. 9 change blocks. |
| 34 lines changed or deleted | | 27 lines changed or added | |
|
| gda-sql-parser-enum-types.h | | gda-sql-parser-enum-types.h | |
| | | | |
|
| /* Generated data (by glib-mkenums) */ | | | |
| | | | |
| #ifndef __LIBGDA_SQL_PARSER_ENUM_TYPES_H__ | | #ifndef __LIBGDA_SQL_PARSER_ENUM_TYPES_H__ | |
| #define __LIBGDA_SQL_PARSER_ENUM_TYPES_H__ | | #define __LIBGDA_SQL_PARSER_ENUM_TYPES_H__ | |
| | | | |
| #include <glib-object.h> | | #include <glib-object.h> | |
| | | | |
| G_BEGIN_DECLS | | G_BEGIN_DECLS | |
| /* enumerations from "gda-sql-parser.h" */ | | /* enumerations from "gda-sql-parser.h" */ | |
| GType gda_sql_parser_error_get_type (void); | | GType gda_sql_parser_error_get_type (void); | |
| #define GDA_TYPE_SQL_PARSER_ERROR (gda_sql_parser_error_get_type()) | | #define GDA_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); | |
| | | | |
| skipping to change at line 36 | | skipping to change at line 34 | |
| #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" */ | | /* 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__ */ | |
| | | | |
|
| /* Generated data ends here */ | | | |
| | | | |
| /* Content designed to maitain API/ABI */ | | /* Content designed to maitain API/ABI */ | |
| | | | |
| #ifndef __LIBGDA_SQL_PARSER_ENUM_TYPES_KEEPAPI_H__ | | #ifndef __LIBGDA_SQL_PARSER_ENUM_TYPES_KEEPAPI_H__ | |
| #define __LIBGDA_SQL_PARSER_ENUM_TYPES_KEEPAPI_H__ | | #define __LIBGDA_SQL_PARSER_ENUM_TYPES_KEEPAPI_H__ | |
| | | | |
| GType gda_sql_error_type_get_type (void); | | GType gda_sql_error_type_get_type (void); | |
| #define GDA_SQL_PARSER_TYPE_SQL_ERROR_TYPE (gda_sql_error_type_get_type()) | | #define GDA_SQL_PARSER_TYPE_SQL_ERROR_TYPE (gda_sql_error_type_get_type()) | |
| | | | |
| #define GDA_SQL_PARSER_TYPE_SQL_PARSER_ERROR (gda_sql_parser_error_get_type
()) | | #define GDA_SQL_PARSER_TYPE_SQL_PARSER_ERROR (gda_sql_parser_error_get_type
()) | |
| #define GDA_SQL_PARSER_TYPE_SQL_PARSER_MODE (gda_sql_parser_mode_get_type()
) | | #define GDA_SQL_PARSER_TYPE_SQL_PARSER_MODE (gda_sql_parser_mode_get_type()
) | |
| | | | |
End of changes. 2 change blocks. |
| 4 lines changed or deleted | | 0 lines changed or added | |
|
| gda-statement-struct.h | | gda-statement-struct.h | |
| | | | |
| skipping to change at line 28 | | skipping to change at line 28 | |
| */ | | */ | |
| | | | |
| #ifndef _GDA_STATEMENT_STRUCT_H_ | | #ifndef _GDA_STATEMENT_STRUCT_H_ | |
| #define _GDA_STATEMENT_STRUCT_H_ | | #define _GDA_STATEMENT_STRUCT_H_ | |
| | | | |
| #include <glib.h> | | #include <glib.h> | |
| #include <glib-object.h> | | #include <glib-object.h> | |
| #include <sql-parser/gda-statement-struct-decl.h> | | #include <sql-parser/gda-statement-struct-decl.h> | |
| #include <libgda/gda-meta-store.h> | | #include <libgda/gda-meta-store.h> | |
| | | | |
|
| | | G_BEGIN_DECLS | |
| | | | |
| struct _GdaSqlStatement { | | struct _GdaSqlStatement { | |
| gchar *sql; | | gchar *sql; | |
| GdaSqlStatementType stmt_type; | | GdaSqlStatementType stmt_type; | |
| gpointer contents; /* depends on stmt_type */ | | gpointer contents; /* depends on stmt_type */ | |
| GdaMetaStruct *validity_meta_struct; /* set when gda_sql_state
ment_check_validity() was last called */ | | GdaMetaStruct *validity_meta_struct; /* set when gda_sql_state
ment_check_validity() was last called */ | |
| | | | |
| /* Padding for future expansion */ | | /* Padding for future expansion */ | |
| gpointer _gda_reserved1; | | gpointer _gda_reserved1; | |
| gpointer _gda_reserved2; | | gpointer _gda_reserved2; | |
| }; | | }; | |
| | | | |
|
| | | #define GDA_TYPE_SQL_STATEMENT (gda_sql_statement_get_type()) | |
| | | | |
| | | GType gda_sql_statement_get_type (void) G_GNUC_CONS | |
| | | T; | |
| GdaSqlStatement *gda_sql_statement_new (GdaSqlStatementTy
pe type); | | GdaSqlStatement *gda_sql_statement_new (GdaSqlStatementTy
pe type); | |
| GdaSqlStatement *gda_sql_statement_copy (GdaSqlStatement *
stmt); | | GdaSqlStatement *gda_sql_statement_copy (GdaSqlStatement *
stmt); | |
| void gda_sql_statement_free (GdaSqlStatement *
stmt); | | void gda_sql_statement_free (GdaSqlStatement *
stmt); | |
| gchar *gda_sql_statement_serialize (GdaSqlStatement *
stmt); | | gchar *gda_sql_statement_serialize (GdaSqlStatement *
stmt); | |
| | | | |
| const gchar *gda_sql_statement_type_to_string (GdaSqlStatem
entType type); | | const gchar *gda_sql_statement_type_to_string (GdaSqlStatem
entType type); | |
| GdaSqlStatementType gda_sql_statement_string_to_type (const gchar
*type); | | GdaSqlStatementType gda_sql_statement_string_to_type (const gchar
*type); | |
| | | | |
| gboolean gda_sql_statement_check_structure (GdaSqlState
ment *stmt, GError **error); | | gboolean gda_sql_statement_check_structure (GdaSqlState
ment *stmt, GError **error); | |
| gboolean gda_sql_statement_check_validity (GdaSqlState
ment *stmt, GdaConnection *cnc, GError **error); | | gboolean gda_sql_statement_check_validity (GdaSqlState
ment *stmt, GdaConnection *cnc, GError **error); | |
| void gda_sql_statement_check_clean (GdaSqlState
ment *stmt); | | void gda_sql_statement_check_clean (GdaSqlState
ment *stmt); | |
| gboolean gda_sql_statement_normalize (GdaSqlState
ment *stmt, GdaConnection *cnc, GError **error); | | gboolean gda_sql_statement_normalize (GdaSqlState
ment *stmt, GdaConnection *cnc, GError **error); | |
| | | | |
| GdaSqlStatementContentsInfo *gda_sql_statement_get_contents_infos (GdaSqlSt
atementType type) ; | | GdaSqlStatementContentsInfo *gda_sql_statement_get_contents_infos (GdaSqlSt
atementType type) ; | |
| | | | |
|
| | | G_END_DECLS | |
| | | | |
| #endif | | #endif | |
| | | | |
End of changes. 3 change blocks. |
| 0 lines changed or deleted | | 8 lines changed or added | |
|