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