GnuCash  2.6.99
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Fields
GncSqlConnection Struct Reference

#include <gnc-backend-sql.h>

Data Fields

void(* dispose )(GncSqlConnection *)
 
GncSqlResult *(* executeSelectStatement )(GncSqlConnection *, GncSqlStatement *)
 
gint(* executeNonSelectStatement )(GncSqlConnection *, GncSqlStatement *)
 
GncSqlStatement *(* createStatementFromSql )(GncSqlConnection *, const gchar *)
 
gboolean(* doesTableExist )(GncSqlConnection *, const gchar *)
 
gboolean(* beginTransaction )(GncSqlConnection *)
 
gboolean(* rollbackTransaction )(GncSqlConnection *)
 
gboolean(* commitTransaction )(GncSqlConnection *)
 
gboolean(* createTable )(GncSqlConnection *, const gchar *, GList *)
 
gboolean(* createIndex )(GncSqlConnection *, const gchar *, const gchar *, const GncSqlColumnTableEntry *)
 
gboolean(* addColumnsToTable )(GncSqlConnection *, const gchar *table, GList *)
 
gchar *(* quoteString )(const GncSqlConnection *, gchar *)
 

Detailed Description

Struct which represents the connection to an SQL database. SQL backends must provide a structure which implements all of the functions.

Definition at line 159 of file gnc-backend-sql.h.

Field Documentation

gboolean(* GncSqlConnection::addColumnsToTable)(GncSqlConnection *, const gchar *table, GList *)

Returns TRUE if successful, FALSE if error

Definition at line 171 of file gnc-backend-sql.h.

gboolean(* GncSqlConnection::beginTransaction)(GncSqlConnection *)

Returns TRUE if successful, FALSE if error

Definition at line 166 of file gnc-backend-sql.h.

gboolean(* GncSqlConnection::commitTransaction)(GncSqlConnection *)

Returns TRUE if successful, FALSE if error

Definition at line 168 of file gnc-backend-sql.h.

gboolean(* GncSqlConnection::createIndex)(GncSqlConnection *, const gchar *, const gchar *, const GncSqlColumnTableEntry *)

Returns TRUE if successful, FALSE if error

Definition at line 170 of file gnc-backend-sql.h.

gboolean(* GncSqlConnection::createTable)(GncSqlConnection *, const gchar *, GList *)

Returns TRUE if successful, FALSE if error

Definition at line 169 of file gnc-backend-sql.h.

gboolean(* GncSqlConnection::doesTableExist)(GncSqlConnection *, const gchar *)

Returns true if successful

Definition at line 165 of file gnc-backend-sql.h.

gint(* GncSqlConnection::executeNonSelectStatement)(GncSqlConnection *, GncSqlStatement *)

Returns -1 if error

Definition at line 163 of file gnc-backend-sql.h.

GncSqlResult*(* GncSqlConnection::executeSelectStatement)(GncSqlConnection *, GncSqlStatement *)

Returns NULL if error

Definition at line 162 of file gnc-backend-sql.h.

gboolean(* GncSqlConnection::rollbackTransaction)(GncSqlConnection *)

Returns TRUE if successful, FALSE if error

Definition at line 167 of file gnc-backend-sql.h.


The documentation for this struct was generated from the following file: