/* * 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 SQLITERESULTSET_H #define SQLITERESULTSET_H #define T IResultSet_T T SQLiteResultSet_new(void *stmt, int maxRows, int keep); void SQLiteResultSet_free(T *R); int SQLiteResultSet_getColumnCount(T R); const char *SQLiteResultSet_getColumnName(T R, int column); int SQLiteResultSet_next(T R); long SQLiteResultSet_getColumnSize(T R, int columnIndex); const char *SQLiteResultSet_getString(T R, int columnIndex); const char *SQLiteResultSet_getStringByName(T R, const char *columnName); int SQLiteResultSet_getInt(T R, int columnIndex); int SQLiteResultSet_getIntByName(T R, const char *columnName); long long int SQLiteResultSet_getLLong(T R, int columnIndex); long long int SQLiteResultSet_getLLongByName(T R, const char *columnName); double SQLiteResultSet_getDouble(T R, int columnIndex); double SQLiteResultSet_getDoubleByName(T R, const char *columnName); const void *SQLiteResultSet_getBlob(T R, int columnIndex, int *size); const void *SQLiteResultSet_getBlobByName(T R, const char *columnName, int *size); int SQLiteResultSet_readData(T R, int columnIndex, void *b, int l, long off); #undef T #endif