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_TPgSQLRow
#define ROOT_TPgSQLRow

#ifndef ROOT_TSQLRow
#include "TSQLRow.h"
#endif

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


class TPgSQLRow : public TSQLRow {

private:
   PGresult *fResult;       // current result set
   ULong_t   fRowNum;       // row number

   Bool_t  IsValid(Int_t field);

public:
   TPgSQLRow(void *result, ULong_t rowHandle);
   ~TPgSQLRow();

   void        Close(Option_t *opt="");
   ULong_t     GetFieldLength(Int_t field);
   const char *GetField(Int_t field);

   ClassDef(TPgSQLRow,0)  // One row of PgSQL query result
};

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