ROOT logo
// @(#)root/mysql:$Id: TMySQLRow.h 29976 2009-08-31 13:34:53Z rdm $
// Author: Fons Rademakers   15/02/2000

/*************************************************************************
 * Copyright (C) 1995-2000, 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_TMySQLRow
#define ROOT_TMySQLRow

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

#if !defined(__CINT__)
#ifdef R__WIN32
#include <winsock2.h>
#else
#include <sys/time.h>
#endif
#include <mysql.h>
#else
struct MYSQL_RES;
typedef char **MYSQL_ROW;
#endif


class TMySQLRow : public TSQLRow {

private:
   MYSQL_RES   *fResult;       // current result set
   MYSQL_ROW    fFields;       // current row
   ULong_t     *fFieldLength;  // length of each field in the row

   Bool_t  IsValid(Int_t field);

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

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

   ClassDef(TMySQLRow,0)  // One row of MySQL query result
};

#endif

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