Sun, 23 Nov 2008 04:12:04 +0000
Cleanup and commenting
1 | 1 | #include <mysql.h> |
2 | #include <dbd/common.h> | |
3 | ||
4 | #define DBD_MYSQL_CONNECTION "DBD.MySQL.Connection" | |
5 | #define DBD_MYSQL_STATEMENT "DBD.MySQL.Statement" | |
6 | ||
2 | 7 | /* |
8 | * connection object implementation | |
9 | */ | |
1 | 10 | typedef struct _connection { |
11 | MYSQL *mysql; | |
12 | } connection_t; | |
13 | ||
2 | 14 | /* |
15 | * statement object implementation | |
16 | */ | |
1 | 17 | typedef struct _statement { |
18 | MYSQL *mysql; | |
19 | MYSQL_STMT *stmt; | |
2 | 20 | MYSQL_RES *metadata; /* result dataset metadata */ |
1 | 21 | } statement_t; |
22 |