/* * 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 MYSQLRESULTSET_H #define MYSQLRESULTSET_H #define T IResultSet_T T MysqlResultSet_new(void *stmt, int maxRows, int keep); void MysqlResultSet_free(T *R); int MysqlResultSet_getColumnCount(T R); const char *MysqlResultSet_getColumnName(T R, int column); int MysqlResultSet_next(T R); long MysqlResultSet_getColumnSize(T R, int columnIndex); const char *MysqlResultSet_getString(T R, int columnIndex); const char *MysqlResultSet_getStringByName(T R, const char *columnName); int MysqlResultSet_getInt(T R, int columnIndex); int MysqlResultSet_getIntByName(T R, const char *columnName); long long int MysqlResultSet_getLLong(T R, int columnIndex); long long int MysqlResultSet_getLLongByName(T R, const char *columnName); double MysqlResultSet_getDouble(T R, int columnIndex); double MysqlResultSet_getDoubleByName(T R, const char *columnName); const void *MysqlResultSet_getBlob(T R, int columnIndex, int *size); const void *MysqlResultSet_getBlobByName(T R, const char *columnName, int *size); int MysqlResultSet_readData(T R, int columnIndex, void *b, int l, long off); #undef T #endif