1
//////////////////////////////////////////////////////////////////////////
3
// pgAdmin III - PostgreSQL Tools
4
// RCS-ID: $Id: dbgResultset.h 6202 2007-04-18 11:22:49Z dpage $
5
// Copyright (C) 2002 - 2008, The pgAdmin Development Team
6
// This software is released under the Artistic Licence
8
// dbgResultset.h - debugger
10
//////////////////////////////////////////////////////////////////////////
12
////////////////////////////////////////////////////////////////////////////////
15
// A dbgResultset object encapsulates a result set produced by executing a
16
// database command. This class is a wrapper around a PGresult handle that
17
// provides a few convenient member functions.
19
////////////////////////////////////////////////////////////////////////////////
21
#ifndef DBGRESULTSET_H
22
#define DBGRESULTSET_H
29
dbgResultset( PGresult * handle );
31
const char *getRawErrorMessage(); // Return error message as a char *
32
const wxString getErrorMessage(); // Return error message as a wxString
33
const wxString getString(int column, int row = 0);
34
const wxString getString(const wxString &columnName, int row = 0);
35
long getLong(int column, int row = 0);
36
long getLong(const wxString &columnName, int row = 0);
37
bool getBool(int column, int row = 0);
38
bool getBool(const wxString &columnName, int row = 0);
39
int getRowCount() { return(PQntuples( m_handle)); }
40
bool columnExists(const wxString &columnname);
42
ExecStatusType getCommandStatus();