/* * 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 SQLITECONNECTION_H #define SQLITECONNECTION_H #define T IConnection_T T SQLiteConnection_new(URL_T url, char **error); void SQLiteConnection_free(T *C); void SQLiteConnection_setQueryTimeout(T C, int ms); void SQLiteConnection_setMaxRows(T C, int max); int SQLiteConnection_ping(T C); int SQLiteConnection_beginTransaction(T C); int SQLiteConnection_commit(T C); int SQLiteConnection_rollback(T C); long long int SQLiteConnection_lastRowId(T C); long long int SQLiteConnection_rowsChanged(T C); int SQLiteConnection_execute(T C, const char *sql, va_list ap); ResultSet_T SQLiteConnection_executeQuery(T C, const char *sql, va_list ap); PreparedStatement_T SQLiteConnection_prepareStatement(T C, const char *sql); const char *SQLiteConnection_getLastError(T C); #undef T #endif