/* * 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 POSTGRESQLCONNECTION_H #define POSTGRESQLCONNECTION_H #define T IConnection_T T PostgresqlConnection_new(URL_T url, char **error); void PostgresqlConnection_free(T *C); void PostgresqlConnection_setQueryTimeout(T C, int ms); void PostgresqlConnection_setMaxRows(T C, int max); int PostgresqlConnection_ping(T C); int PostgresqlConnection_beginTransaction(T C); int PostgresqlConnection_commit(T C); int PostgresqlConnection_rollback(T C); long long int PostgresqlConnection_lastRowId(T C); long long int PostgresqlConnection_rowsChanged(T C); int PostgresqlConnection_execute(T C, const char *sql, va_list ap); ResultSet_T PostgresqlConnection_executeQuery(T C, const char *sql, va_list ap); PreparedStatement_T PostgresqlConnection_prepareStatement(T C, const char *sql); const char *PostgresqlConnection_getLastError(T C); #undef T #endif