AfGs Database Module: Database base support for Af-Arch servers.


Defines

#define afgs_not_null(arg)   (arg != NULL && strlen (arg) > 0)
 Useful macro that allows to check if the given string reference is not null and contains a non-zero string.

Typedefs

typedef _AfGsDBConnection AfGsDBConnection
 Connection to the database abstraction object.

Functions

void afgs_database_close_connection (AfGsDBConnection *connection)
 Close the given opened connection to the current database.
gboolean afgs_database_common_init ()
 New interface to initialize af-arch database.
void afgs_database_disable ()
 Disable database access for the current Af-Arch server.
gboolean afgs_database_execute_non_query (AfGsDBConnection *connection, gchar *cmd_string)
 Allows to execute the given command defined by cmd_string on the given connection (the command to execute should be a non query command).
CoyoteDataSetafgs_database_execute_single_query (AfGsDBConnection *connection, gchar *cmd_string)
 Allows to execute the given command defined by cmd_string on the given connection.
gboolean afgs_database_init (const gchar *connection_name, const gchar *connection_description, gint argc, gchar **argv)
 Initializes the Database module.
AfGsDBConnectionafgs_database_new_connection ()
 Creates a new connection to the configured database.
gboolean afgs_database_quit ()
 Stops database access for the current module.