Name
gda-command -- Functions that deal with
GdaCommand.
Description
The GdaCommand structure holds data needed to issue a command to the
providers.
Details
GdaCommand
typedef struct {
gchar *text;
GdaCommandType type;
GdaCommandOptions options;
} GdaCommand; |
enum GdaCommandOptions
typedef enum {
GDA_COMMAND_OPTION_IGNORE_ERRORS = 1,
GDA_COMMAND_OPTION_STOP_ON_ERRORS = 1 << 1,
GDA_COMMAND_OPTION_BAD_OPTION = 1 << 2
} GdaCommandOptions; |
And OR'ed combination of GDA_COMMAND_OPTIONS_* values.
GDA_COMMAND_DEFAULT_OPTION
#define GDA_COMMAND_DEFAULT_OPTION GDA_COMMAND_OPTION_IGNORE_ERRORS |
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,
GDA_COMMAND_TYPE_XML,
GDA_COMMAND_TYPE_PROCEDURE,
GDA_COMMAND_TYPE_TABLE,
GDA_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.