The qDecoder Project

_Q_DB Struct Reference

Structure for independent database interface. More...


Data Fields

Q_LOCK_T qlock
bool connected
struct {
   char *   dbtype
   char *   addr
   int   port
   char *   username
   char *   password
   char *   database
   bool   autocommit
   bool   fetchtype
info
bool(* open )(Q_DB *db)
bool(* close )(Q_DB *db)
int(* executeUpdate )(Q_DB *db, const char *query)
int(* executeUpdatef )(Q_DB *db, const char *format,...)
Q_DBRESULT *(* executeQuery )(Q_DB *db, const char *query)
Q_DBRESULT *(* executeQueryf )(Q_DB *db, const char *format,...)
bool(* beginTran )(Q_DB *db)
bool(* endTran )(Q_DB *db, bool commit)
bool(* commit )(Q_DB *db)
bool(* rollback )(Q_DB *db)
bool(* setFetchType )(Q_DB *db, bool use)
bool(* getConnStatus )(Q_DB *db)
bool(* ping )(Q_DB *db)
const char *(* getError )(Q_DB *db, unsigned int *errorno)
bool(* free )(Q_DB *db)


Detailed Description

Structure for independent database interface.


Field Documentation

Q_LOCK_T _Q_DB::qlock

only used if compiled with --enable-threadsafe option

bool _Q_DB::connected

if opened true, if closed false

struct { ... } _Q_DB::info

database connection infomation


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

Copyright (c) 2008 The qDecoder Project