gda-command
Name
gda-command -- Functions that deal with
GdaCommand.
Description
The GdaCommand structure holds data needed to issue a command to the
providers.
Details
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_SCHEMA,
GDA_COMMAND_TYPE_INVALID
} GdaCommandType; |
GdaCommand
typedef struct {
gchar *text;
GdaCommandType type;
GdaCommandOptions options;
GdaTransaction *xaction;
} GdaCommand; |
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 ()
const gchar* gda_command_get_text (GdaCommand *cmd); |
Get the command text held by cmd.
gda_command_set_text ()
void gda_command_set_text (GdaCommand *cmd,
const gchar *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.
gda_command_get_transaction ()
GdaTransaction* gda_command_get_transaction (GdaCommand *cmd); |
Get the GdaTransaction associated with the given GdaCommand.
gda_command_set_transaction ()
void gda_command_set_transaction (GdaCommand *cmd,
GdaTransaction *xaction); |
Set the GdaTransaction associated with the given GdaCommand.