ROOT logo
// @(#)root/sqlite:$Id$
// Author: o.freyermuth <o.f@cern.ch>, 01/06/2013

/*************************************************************************
 * Copyright (C) 1995-2013, 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_TSQLiteResult
#define ROOT_TSQLiteResult

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

#if !defined(__CINT__)
#include <sqlite3.h>
#else
struct sqlite3_stmt;
#endif


class TSQLiteResult : public TSQLResult {

private:
   sqlite3_stmt   *fResult;  // query result (rows)

   Bool_t  IsValid(Int_t field);

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

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

   ClassDef(TSQLiteResult, 0)  // SQLite query result
};

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