1 2 /* 3 * Copyright (C) agentzh 4 */ 5 6 #ifndef NGX_HTTP_RDS_H 7 #define NGX_HTTP_RDS_H 8 9 10 #include "resty_dbd_stream.h" 11 #include <nginx.h> 12 #include <ngx_core.h> 13 #include <ngx_http.h> 14 15 16 typedef struct { 17 uint16_t std_errcode; 18 uint16_t drv_errcode; 19 ngx_str_t errstr; 20 21 uint64_t affected_rows; 22 uint64_t insert_id; 23 uint16_t col_count; 24 25 } ngx_http_rds_header_t; 26 27 28 typedef struct ngx_http_rds_column_s { 29 rds_col_type_t std_type; 30 uint16_t drv_type; 31 32 ngx_str_t name; 33 34 } ngx_http_rds_column_t; 35 36 37 38 39 40 #endif /* NGX_HTTP_RDS_H */ 41 42