TPgSQLResult.h

Go to the documentation of this file.
00001 // @(#)root/pgsql:$Id: TPgSQLResult.h 20882 2007-11-19 11:31:26Z rdm $
00002 // Author: g.p.ciceri <gp.ciceri@acm.org> 01/06/2001
00003 
00004 /*************************************************************************
00005  * Copyright (C) 1995-2001, Rene Brun and Fons Rademakers.               *
00006  * All rights reserved.                                                  *
00007  *                                                                       *
00008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
00009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
00010  *************************************************************************/
00011 
00012 #ifndef ROOT_TPgSQLResult
00013 #define ROOT_TPgSQLResult
00014 
00015 #ifndef ROOT_TSQLResult
00016 #include "TSQLResult.h"
00017 #endif
00018 
00019 #if !defined(__CINT__)
00020 #include <libpq-fe.h>
00021 #else
00022 struct PGresult;
00023 #endif
00024 
00025 
00026 class TPgSQLResult : public TSQLResult {
00027 
00028 private:
00029    PGresult   *fResult;      // query result (rows)
00030    ULong_t     fCurrentRow;  // info to result row
00031 
00032    Bool_t  IsValid(Int_t field);
00033 
00034 public:
00035    TPgSQLResult(void *result);
00036    ~TPgSQLResult();
00037 
00038    void        Close(Option_t *opt="");
00039    Int_t       GetFieldCount();
00040    const char *GetFieldName(Int_t field);
00041    TSQLRow    *Next();
00042 
00043    ClassDef(TPgSQLResult, 0)  // PgSQL query result
00044 };
00045 
00046 #endif

Generated on Tue Jul 5 15:14:39 2011 for ROOT_528-00b_version by  doxygen 1.5.1