Details
GdaCommand
typedef GNOME_Database_Command GdaCommand; |
GdaCommandOptions
typedef GNOME_Database_CommandOptions GdaCommandOptions; |
And OR'ed combination of GDA_COMMAND_OPTIONS_* values.
GDA_COMMAND_OPTION_IGNORE_ERRORS
#define GDA_COMMAND_OPTION_IGNORE_ERRORS GNOME_Database_IGNORE_ERRORS |
Instruct the provider to ignore errors in the execution of commands and
continue processing. Conflicts with GDA_COMMAND_OPTION_STOP_ON_ERRORS.
GDA_COMMAND_OPTION_STOP_ON_ERRORS
#define GDA_COMMAND_OPTION_STOP_ON_ERRORS GNOME_Database_STOP_ON_ERRORS |
Instruct the provider to stop in case of error when executing commands. The
provider should add an error to the connection and return NULL. Conflicts
with GDA_COMMAND_OPTION_IGNORE_ERRORS.
GDA_COMMAND_OPTION_BAD_OPTION
#define GDA_COMMAND_OPTION_BAD_OPTION GNOME_Database_BAD_OPTION |
Returned value for gda_command_get_option if the argument is NULL.
GDA_COMMAND_DEFAULT_OPTION
#define GDA_COMMAND_DEFAULT_OPTION GNOME_Database_DEFAULT_OPTION |
This value is the one set by default. Currently is equal to
GDA_COMMAND_OPTION_STOP_ON_ERRORS.
enum GdaCommandType
typedef enum {
GDA_COMMAND_TYPE_SQL = GNOME_Database_COMMAND_TYPE_SQL,
GDA_COMMAND_TYPE_XML = GNOME_Database_COMMAND_TYPE_XML,
GDA_COMMAND_TYPE_PROCEDURE = GNOME_Database_COMMAND_TYPE_PROCEDURE,
GDA_COMMAND_TYPE_TABLE = GNOME_Database_COMMAND_TYPE_TABLE,
GDA_COMMAND_TYPE_INVALID = GNOME_Database_COMMAND_TYPE_INVALID
} GdaCommandType; |
gda_command_new ()
Creates a new GdaCommand from the parameters that should be freed by
calling gda_command_free.
If there are conflicting options, this will set options to
GDA_COMMAND_OPTION_DEFAULT.
gda_command_get_text ()
Get the command text held by cmd.
gda_command_set_text ()
Sets the command text of cmd.
gda_command_get_command_type ()
Gets the command type of cmd.
gda_command_set_command_type ()
Sets the command type of cmd.
gda_command_get_options ()
Gets the command options of cmd.
gda_command_set_options ()
Sets the command options of cmd. If there conflicting options, it will just
leave the value as before.