dbd/mysql/dbd_mysql.h

changeset 2
c4f02fc67e5a
parent 1
408291a6eb3e
child 33
6c64c45e7d8f
equal deleted inserted replaced
1:408291a6eb3e 2:c4f02fc67e5a
2 #include <dbd/common.h> 2 #include <dbd/common.h>
3 3
4 #define DBD_MYSQL_CONNECTION "DBD.MySQL.Connection" 4 #define DBD_MYSQL_CONNECTION "DBD.MySQL.Connection"
5 #define DBD_MYSQL_STATEMENT "DBD.MySQL.Statement" 5 #define DBD_MYSQL_STATEMENT "DBD.MySQL.Statement"
6 6
7 /*
8 * connection object implementation
9 */
7 typedef struct _connection { 10 typedef struct _connection {
8 MYSQL *mysql; 11 MYSQL *mysql;
9 } connection_t; 12 } connection_t;
10 13
14 /*
15 * statement object implementation
16 */
11 typedef struct _statement { 17 typedef struct _statement {
12 MYSQL *mysql; 18 MYSQL *mysql;
13 MYSQL_STMT *stmt; 19 MYSQL_STMT *stmt;
14 MYSQL_RES *metadata; 20 MYSQL_RES *metadata; /* result dataset metadata */
15 } statement_t; 21 } statement_t;
16 22

mercurial