summaryrefslogtreecommitdiff
path: root/rds-csv-nginx-module-0.09/src/ngx_http_rds.h
blob: 2e3d878f38319b3ed4b1321e87190d635ebe1a6e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/*
 * Copyright (C) agentzh
 */

#ifndef NGX_HTTP_RDS_H
#define NGX_HTTP_RDS_H


#include "resty_dbd_stream.h"
#include <nginx.h>
#include <ngx_core.h>
#include <ngx_http.h>


typedef struct {
    uint16_t        std_errcode;
    uint16_t        drv_errcode;
    ngx_str_t       errstr;

    uint64_t        affected_rows;
    uint64_t        insert_id;
    uint16_t        col_count;

} ngx_http_rds_header_t;


typedef struct ngx_http_rds_column_s {
    rds_col_type_t      std_type;
    uint16_t            drv_type;

    ngx_str_t           name;

} ngx_http_rds_column_t;





#endif /* NGX_HTTP_RDS_H */