Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

RdbMySQLResult Class Reference

#include <RdbMySQLResult.hh>

List of all members.

Public Member Functions

 RdbMySQLResult (st_mysql_res *res, RdbMySQLClient *client)
 RdbMySQLResult (unsigned long nrows)
 ~RdbMySQLResult ()
RdbMySQLHeader header () const
 get the result header. Only makes sense for SELECT-like queries

unsigned long size () const
 get the number of the rows in the result.


Friends

class RdbMySQLRowIter


Detailed Description

This class represents MySQL connection.

This software was developed for the BaBar collaboration. If you use all or part of it, please give an appropriate acknowledgement.

Copyright (C) 2005 SLAC

See also:
RdbMySQLResultTable
Version:
Id
RdbMySQLResult.hh,v 1.3 2005/04/15 17:56:07 salnikov Exp
Author:
Andy Salnikov

Definition at line 69 of file RdbMySQLResult.hh.


Constructor & Destructor Documentation

RdbMySQLResult::RdbMySQLResult st_mysql_res *    res,
RdbMySQLClient   client
 

Constructor takes MYSQL_RES pointer, which must be non-zero

RdbMySQLResult::RdbMySQLResult unsigned long    nrows
 

Constructor takes the number of affected rows (for non-SELECT queries)

Definition at line 67 of file RdbMySQLResult.cc.

RdbMySQLResult::~RdbMySQLResult  
 

Definition at line 76 of file RdbMySQLResult.cc.

References RdbMySQLClient::mysql_free_result().


Member Function Documentation

RdbMySQLHeader RdbMySQLResult::header   const [inline]
 

get the result header. Only makes sense for SELECT-like queries

Definition at line 87 of file RdbMySQLResult.hh.

unsigned long RdbMySQLResult::size   const [inline]
 

get the number of the rows in the result.

Definition at line 90 of file RdbMySQLResult.hh.


Friends And Related Function Documentation

friend class RdbMySQLRowIter [friend]
 

Definition at line 99 of file RdbMySQLResult.hh.


The documentation for this class was generated from the following files:
Generated on Mon Dec 5 18:22:27 2005 for CDB by doxygen1.3-rc3