1 /* mplsql.h */ 2 3 /*********************************************************************** 4 * This code is part of GLPK (GNU Linear Programming Kit). 5 * Copyright (C) 2003-2016 Free Software Foundation, Inc. 6 * Written by Heinrich Schuchardt <xypron.glpk@gmx.de>. 7 * 8 * GLPK is free software: you can redistribute it and/or modify it 9 * under the terms of the GNU General Public License as published by 10 * the Free Software Foundation, either version 3 of the License, or 11 * (at your option) any later version. 12 * 13 * GLPK is distributed in the hope that it will be useful, but WITHOUT 14 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 15 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public 16 * License for more details. 17 * 18 * You should have received a copy of the GNU General Public License 19 * along with GLPK. If not, see <http://www.gnu.org/licenses/>. 20 ***********************************************************************/ 21 22 #ifndef MPLSQL_H 23 #define MPLSQL_H 24 25 #define db_iodbc_open _glp_db_iodbc_open 26 void *db_iodbc_open(TABDCA *dca, int mode); 27 /* open iODBC database connection */ 28 29 #define db_iodbc_read _glp_db_iodbc_read 30 int db_iodbc_read(TABDCA *dca, void *link); 31 /* read data from iODBC */ 32 33 #define db_iodbc_write _glp_db_iodbc_write 34 int db_iodbc_write(TABDCA *dca, void *link); 35 /* write data to iODBC */ 36 37 #define db_iodbc_close _glp_db_iodbc_close 38 int db_iodbc_close(TABDCA *dca, void *link); 39 /* close iODBC database connection */ 40 41 #define db_mysql_open _glp_db_mysql_open 42 void *db_mysql_open(TABDCA *dca, int mode); 43 /* open MySQL database connection */ 44 45 #define db_mysql_read _glp_db_mysql_read 46 int db_mysql_read(TABDCA *dca, void *link); 47 /* read data from MySQL */ 48 49 #define db_mysql_write _glp_db_mysql_write 50 int db_mysql_write(TABDCA *dca, void *link); 51 /* write data to MySQL */ 52 53 #define db_mysql_close _glp_db_mysql_close 54 int db_mysql_close(TABDCA *dca, void *link); 55 /* close MySQL database connection */ 56 57 #endif 58 59 /* eof */ 60