ROOT logo
// @(#)root/pgsql:$Id$
// Author: g.p.ciceri <gp.ciceri@acm.org> 01/06/2001

/*************************************************************************
 * Copyright (C) 1995-2001, Rene Brun and Fons Rademakers.               *
 * All rights reserved.                                                  *
 *                                                                       *
 * For the licensing terms see $ROOTSYS/LICENSE.                         *
 * For the list of contributors see $ROOTSYS/README/CREDITS.             *
 *************************************************************************/

#ifndef ROOT_TPgSQLResult
#define ROOT_TPgSQLResult

#ifndef ROOT_TSQLResult
#include "TSQLResult.h"
#endif

#if !defined(__CINT__)
#include <libpq-fe.h>
#else
struct PGresult;
#endif


class TPgSQLResult : public TSQLResult {

private:
   PGresult   *fResult;      // query result (rows)
   ULong_t     fCurrentRow;  // info to result row

   Bool_t  IsValid(Int_t field);

public:
   TPgSQLResult(void *result);
   ~TPgSQLResult();

   void        Close(Option_t *opt="");
   Int_t       GetFieldCount();
   const char *GetFieldName(Int_t field);
   TSQLRow    *Next();

   ClassDef(TPgSQLResult, 0)  // PgSQL query result
};

#endif
 TPgSQLResult.h:1
 TPgSQLResult.h:2
 TPgSQLResult.h:3
 TPgSQLResult.h:4
 TPgSQLResult.h:5
 TPgSQLResult.h:6
 TPgSQLResult.h:7
 TPgSQLResult.h:8
 TPgSQLResult.h:9
 TPgSQLResult.h:10
 TPgSQLResult.h:11
 TPgSQLResult.h:12
 TPgSQLResult.h:13
 TPgSQLResult.h:14
 TPgSQLResult.h:15
 TPgSQLResult.h:16
 TPgSQLResult.h:17
 TPgSQLResult.h:18
 TPgSQLResult.h:19
 TPgSQLResult.h:20
 TPgSQLResult.h:21
 TPgSQLResult.h:22
 TPgSQLResult.h:23
 TPgSQLResult.h:24
 TPgSQLResult.h:25
 TPgSQLResult.h:26
 TPgSQLResult.h:27
 TPgSQLResult.h:28
 TPgSQLResult.h:29
 TPgSQLResult.h:30
 TPgSQLResult.h:31
 TPgSQLResult.h:32
 TPgSQLResult.h:33
 TPgSQLResult.h:34
 TPgSQLResult.h:35
 TPgSQLResult.h:36
 TPgSQLResult.h:37
 TPgSQLResult.h:38
 TPgSQLResult.h:39
 TPgSQLResult.h:40
 TPgSQLResult.h:41
 TPgSQLResult.h:42
 TPgSQLResult.h:43
 TPgSQLResult.h:44
 TPgSQLResult.h:45
 TPgSQLResult.h:46