globals.h 491 B

1234567891011121314151617181920212223
  1. #include "mysql.h"
  2. /* cursors */
  3. typedef struct _cursor
  4. {
  5. MYSQL_RES *res;
  6. int nrows; /* number of rows in query result */
  7. MYSQL_ROW row;
  8. dbToken token;
  9. int type; /* type of cursor: SELECT, UPDATE, INSERT */
  10. int *cols; /* indexes of known (type) columns */
  11. int ncols; /* number of known columns */
  12. } cursor;
  13. typedef struct
  14. {
  15. char *host, *dbname, *user, *password;
  16. unsigned int port;
  17. } CONNPAR;
  18. extern MYSQL *connection;
  19. extern dbString *errMsg;