/* * Copyright (C) 2007 Tildeslash Ltd. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation. * * There are special exceptions to the terms and conditions of the GPL * as it is applied to this software. View the full text of the exception * in the file EXCEPTIONS accompanying this software distribution. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software Foundation, * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #ifndef POSTGRESQLRESULTSET_H #define POSTGRESQLRESULTSET_H #define T IResultSet_T T PostgresqlResultSet_new(void *stmt, int maxRows, int keep); void PostgresqlResultSet_free(T *R); int PostgresqlResultSet_getColumnCount(T R); const char *PostgresqlResultSet_getColumnName(T R, int column); int PostgresqlResultSet_next(T R); long PostgresqlResultSet_getColumnSize(T R, int columnIndex); const char *PostgresqlResultSet_getString(T R, int columnIndex); const char *PostgresqlResultSet_getStringByName(T R, const char *columnName); int PostgresqlResultSet_getInt(T R, int columnIndex); int PostgresqlResultSet_getIntByName(T R, const char *columnName); long long int PostgresqlResultSet_getLLong(T R, int columnIndex); long long int PostgresqlResultSet_getLLongByName(T R, const char *columnName); double PostgresqlResultSet_getDouble(T R, int columnIndex); double PostgresqlResultSet_getDoubleByName(T R, const char *columnName); const void *PostgresqlResultSet_getBlob(T R, int columnIndex, int *size); const void *PostgresqlResultSet_getBlobByName(T R, const char *columnName, int *size); int PostgresqlResultSet_readData(T R, int columnIndex, void *b, int l, long off); #undef T #endif