3.99.21: 2010-06-21 Murray Cumming DataModel: Added the DataModelError exceptions. * libgda/src/datamodel.hg: Add this exception that can be thrown by these methods. 2010-06-21 Murray Cumming Fix the examples (check) build. * examples/sqlbuilder/main.cc: Adapt to the add_field_id()->add_field_value_id() API change. 2010-06-21 Murray Cumming ServerOperation: set_value_at(): Make this templated. * libgda/src/serveroperation.[hg|ccg]: Add set_value_at_as_value() and make set_value_at() a templated method, instead of just taking a string. 2010-06-21 Murray Cumming Add CREATE_USER, ALTER USER and DROP USER server operations. * libgda/src/libgda_methods.defs: Regenerate with h2defs.py though the enums here are not actually used. * libgda/src/libgda_enums.defs: Regenerate with enums.pl, to add the enums for the new server operations. 2010-06-15 Murray Cumming SqlBuilder: Added add_field_id(). * libgda/src/sqlbuilder.[hg|ccg]: Added add_field_id(). 2010-06-15 Murray Cumming Fix the build with libgda git master. * libgda/src/libgda_methods.defs: Regenerated with h2defs.py. * libgda/src/sqlbuilder.[hg|ccg]: Use Id instead of guint for the IDs. It is just a typedef but it makes things clearer. libgda does this now too. Rename add_field_id() to add_field_value_id() and change the implementation of similar methods because the C functions were renamed (by me). 3.99.20: 2010-05-20 Murray Cumming Fixed the build with latest libgda. * libgda/src/libgda_methods.defs: Regenerated with h2defs.py * libgda/src/sqlbuilder.ccg: Adapted now that I have removed the id parameters from the C API. 2010-05-17 Murray Cumming SqlBuilder: Don't pass empty strings to the C functions. * libgda/src/sqlbuilder.hg: Make sure that generated methods pass NULL for empty strings, because libgda does not always check that strings are not empty, though I try to fix that in libgda when I see it. 2010-05-13 Murray Cumming SqlBuilder: get_sql_statement(): Fix memory management. * libgda/src/sqlbuilder.hg: get_sql_statement(): Take a copy of the C object, to avoid a double-free. 2010-05-12 Murray Cumming SqlBuilder: add_sub_select(), compound_add_sub_select(): Remove steal param. * libgda/src/libgda_methods.defs: * libgda/src/sqlbuilder.[hg|ccg]: Adapt to my change in libgda, fixing the build. 2010-05-12 Murray Cumming > SqlBuilder: get_sql_statement(): Remove stupid copy_it parameter. * libgda/src/libgda_methods.defs: * libgda/src/sqlbuilder.hg: Adapt to my change in libgda, fixing the build. 2010-05-12 Murray Cumming SqlBuilder: Add select_add_target_id(). * libgda/src/sqlbuilder.[hg|ccg]: Added select_add_target_id(), which _might_ be useful for adding sub-queries as targets, though I am checking. 2010-05-11 Murray Cumming SqlBuilder: Add add_sub_select(). * libgda/src/sqlbuilder.[hg|ccg]: Wrap gda_sql_builder_add_sub_select(). 2010-05-11 Murray Cumming SqlBuilder: Add compound_add_sub_select(). * libgda/src/sqlbuilder.hg: Wrap gda_sql_builder_compound_add_sub_select(). 2010-05-11 Murray Cumming SqlBuilder: Add get_sql_statement(). * libgda/src/sqlstatement.[hg|ccg]: Added SqlStatement, wrapping GdaSqlStatement. * libgda/src/sqlbuilder.hg: Wrap gda_sql_builder_get_sql_statement(). 2010-05-07 Murray Cumming SqlBuilder: import_expression(): Remove the id parameter. * libgda/src/sqlbuilder.hg: import_expression(): Remove the id parameter. We generally don't let the caller specify an ID, though the C API does, for no good reason. export_expression(): Make this const. 2010-05-07 Murray Cumming SqlBuilder: Fix typo in import_expression() name. * libgda/src/sqlbuilder.hg: Change import_expressio() to import_expression(). 2010-05-06 Murray Cumming SqlExpr: Add empty(). * libgda/src/sqlexpr.[hg|ccg]: Added empty() so we can check if it is a default empty instance. This makes it more useful. 2010-05-06 Murray Cumming Added new SqlBuilder methods. * libgda/src/libgda_methods.defs: Regenerated with h2defs.py * libgda/src/sqlexpr.[hg|ccg]: Wrapped GdaSqlExpr as Gda::SqlExpr. This needs my change in libgda to register the boxed type. * libgda/src/sqlbuilder.hg: select_add_field(): Returns the ID now. Added export_expression() and import_expression(). 2010-05-04 Murray Cumming * libgda/libgdamm.h: Minor main text improvement. 2010-05-04 Murray Cumming Value: Added get/set_long(). * libgda/libgdamm/value.[h|cc]: Added get/set_long(). 2010-04-27 David King Add main page to Doxygen documentation * docs/Makefile.am: Parse libgda/libgdamm.h for Doxygen documentation. * libgda/libgdamm.h: Add main page to generated documentation. 2010-04-27 David King Remove Debian packaging * debian/*: Remove hopelessly out-of-date Debian packaging. 2010-04-26 Murray Cumming SqlBuilder: Added select_set_having() and select_group_by(). * libgda/src/libgda_methods.defs: Regenerated with h2defs.py * libgda/src/sqlbuilder.hg: Added select_set_having(), select_group_by(). 2010-04-09 Armin Burgmeier SqlBuilder: Make definition and declaration of add_cond() match * libgda/src/sqlbuilder.ccg (add_cond): Fix function header signature to match the declaration in the header (uint->guint), fixing the Windows build. 2010-03-29 Murray Cumming SqlBuilder: Added select_set_dictinct() and select_sect_limit(). * libgda/src/libgda_methods.defs: Regenerated * libgda/src/sqlbuilder.[hg|ccg]: Added select_set_distinct(), select_set_limit(), set_limit_id(), and select_set_distinct(). 2010-03-23 Murray Cumming Fix the build with the latest libgdamm, which slightly broke API and ABI. * libgda/src/libgda_enums.defs: Regenerated. * libgda/src/sqlbuilder.hg: Adapt the SqlError exception wrapper to mention GdaSqlError instead of GdaSqlErrorType. 2010-02-27 Murray Cumming Connection: Add statement_execute_non_select_builder(SqlBuilder) * libgda/src/connection.[hg|ccg]: Added statement_execute_non_select_builder() overloads that take SqlBuilder, to avoid the need to generate a statement from a builder. 2010-02-27 Murray Cumming Connection, SqlBuilder: Add some convenient method overloads. * libgda/src/connection.[hg|ccg]: statement_execute_select(statement, params): Add an optional model_usage parameter, as already exists on other method overloads. Added statement_execute_select_builder() to avoid the need to generate a statement from a builder. * libgda/src/sqlbuilder.[hg|ccg]: Added an add_function() overload that takes only one parameter. 2010-02-27 Murray Cumming SqlBuilder: Add SqlError and fix select_add_target() with no alias. * libgda/src/sqlbuilder.[hg|ccg]: Add SqlError to wrap the GdaSqlError error domain thrown (but not documented) by SqlBuilder. select_add_target(): Avoid passing a "" alias. I have fixed the C function in libgda but this makes it safe even when that is not deployed. 3.99.19: 2010-02-25 Murray Cumming * examples/sqlbuilder/main.cc: Updated for the latest API, hopefully. 2009-12-04 Murray Cumming SqlBuilder: select_add_target() now takes a name instead of an ID. * libgda/src/libgda_methods.defs: Regenerated * libgda/src/sqlbuilder.[hg|ccg]: select_add_target(): Take the table name as a string, using the new C function, and give the alias a default parameter instead of overloading. 2009-12-02 Murray Cumming SqlBuilder: Make set_field_value() and add_expr() templated. * libgda/src/sqlbuilder.[hg|ccg]: set_field_value(): Rename to set_field_value_as_value. Rename add_expr() to add_expr_as_value(). Add templated set_field_value() and add_expr() methods so people do not need to manually construct a Value object. 2009-12-01 Murray Cumming SqlBuilder: Added 2 more methods. * libgda/src/sqlbuilder.hg: Added add_field_value() and select_add_field(). 2009-12-01 Murray Cumming Fix the build with the latest libgdamm. * libgda/src/libgda_methods.defs: Regenerated with h2defs.py * libgda/src/sqlbuilder.hg: gda_sql_builder_add_field() was renamed to gda_sql_builder_add_field_id(). 2009-10-25 Murray Cumming Statement::to_sql(), Connection::statement*(): const corrections. * libgda/src/statement.[hg|ccg|: to_sql(): Make the params parameter const. * libgda/src/connection.[hg|ccg|: statement_execute*(), statement_to_sql(): Make the statement and params parameters const. 2009-10-25 Murray Cumming SqlBuilder: Small const and other improvements. * libgda/src/sqlbuilder.[hg|ccg]: add_expr(): Use const ref for the Value parameter. Don't use NULL in C++ code. add_function(): Use const ref for the ArrayHandle parameter. get_statement(): Make this const. add_cond_v(): Rename to add_cond(). select_order_by(): Add default parameter values. 2009-10-05 Johannes Schmid * libgda/src/sqlbuilder.ccg: add_expr() should use the DataHandler argument when requested 2009-10-01 Johannes Schmid * libgda/src/sqlbuilder.hg: Use default arguments for potentially unused arguments of add_cond() * examples/sqlbuilder/main.cc: Make use of new default argument 2009-10-01 Johannes Schmid * libgda/src/sqlbuilder.hg/ccg: * libgda/src/libgda_methods.defs: Updated GdaSqlBuilder bindings to use new method names from libgda All methods now return an automatically generated id which should be stored somewhere when it needs to reused. Manual id definition like in the C API has been removed. * examples/sqlbuilder/main.cc: Updated example to new API 2009-09-30 Johannes Schmid * libgda/src/row.hg: * libgda/src/statement.hg: Added _IGNORES for provider-only methods * examples/sqlbuilder/main.cc: Added example for new function API 2009-09-30 Johannes Schmid * libgda/src/libgda_methods.defs: * libgda/src/sqlbuilder.hg/ccg: Added wrapper for new function API (allow things like MAX() in sql statements) * configure.ac: Require libgda-4.0 >= 3.1.3 (this is master) 2009-09-29 Johannes Schmid * libgda/libgdamm/value.cc: Fix set(const gchar*) to call g_value_reinit() * libgda/src/sqlbuilder.hg/ccg: Add overload for select_add_target() to be able to skip the alias (NULL in C) * examples/sqlbuilder/main.cc: * examples/Makefile.am: Add example for the SqlBuilder usage based on the libgda example 2009-09-28 Johannes Schmid * libgda/src/sqlbuilder.hg: Use Value instead of Value& to make the SqlBuilder::param() much more convenient to use. * libgda/libgdamm.h: Add sqlbuilder.h 2009-09-25 Johannes Schmid * libgda/src/sqlbuilder.hg: * libgda/src/sqlbuilder.ccg: Wrapped gda_sql_builder_expr(_value) after it was fixed in libgda * libgda/src/libgda_methods.defs: Regenerated to have the new method * tools/m4/convert_libgdamm.m4: Added Value conversion (can hopefully be removed once libgda fixes the constness of the argument) 2009-09-24 Johannes Schmid * libgda/src/filelist.am: Added sqlbuilder.hg/ccg * libgda/src/sqlbuilder.hg: * libgda/src/sqlbuilder.ccg: Wrapped GdaSqlBuilder class * tools/m4/convert_libgdamm.m4: Added two new enums for GdaSqlBuilder 2009-09-24 Johannes Schmid * libgda/src/libgda_enums.defs: * libgda/src/libgda_methods.defs: * libgda/src/libgda_signals.defs: Regenerated .defs files from libgda master (4.1.x version) * tools/extra_defs_gen/generate_defs_gda.cc: Added GdaSqlBuilder to the known objects