# The lua-rds-parser Lua library and ngx\_rds\_csv nginx module

**URL:** <https://www.ruby-forum.com/t/the-lua-rds-parser-lua-library-and-ngx-rds-csv-nginx-module/211434>\
**Category:** NGINX\
**Created:** [September 4, 2011, 7:23am UTC](https://www.ruby-forum.com/t/the-lua-rds-parser-lua-library-and-ngx-rds-csv-nginx-module/211434 "2011-09-04T07:23:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubstep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/cdc98d/32.png) [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Post date:** [September 4, 2011, 7:23am UTC](https://www.ruby-forum.com/t/the-lua-rds-parser-lua-library-and-ngx-rds-csv-nginx-module/211434/1 "2011-09-04T07:23:04Z")

</div>

Hello!

Recently I wrote a Lua C library named lua-rds-parser for the  
ngx\_openresty [1] world that we can now efficiently parse Resty DBD  
Stream (RDS) formatted data generated by ngx\_drizzle [2] and  
ngx\_postgres [3] into Lua data structures without using JSON as the  
intermediate data format. This can save both CPU time and memory for  
web applications running atop ngx\_lua [4].

Here is the project homepage for this Lua library:

[GitHub - openresty/lua-rds-parser: Resty DBD Stream (RDS) parser for Lua written in C](https://github.com/agentzh/lua-rds-parser)

Also, there’s a new Nginx filter module named ngx\_rds\_csv that can  
convert RDS output into the Comma-Separated Values (CSV) format in a  
streaming fashion:

[GitHub - openresty/rds-csv-nginx-module: Nginx output filter module to convert Resty-DBD-Streams (RDS) to Comma-Separated Values (CSV)](https://github.com/agentzh/rds-csv-nginx-module)

Both of these two components have already been included and enabled by  
default in the latest ngx\_openresty stable release [5] 🙂

Enjoy!  
-agentzh

[1] [http://openresty.org](http://openresty.org)  
[2] [HTTP Drizzle | NGINX](http://wiki.nginx.org/HttpDrizzleModule)  
[3] [GitHub - FRiCKLE/ngx\_postgres: upstream module that allows nginx to communicate directly with PostgreSQL database.](http://github.com/FRiCKLE/ngx_postgres/)  
[4] [Lua | NGINX](http://wiki.nginx.org/HttpLuaModule)  
[5] [OpenResty® - Open source](http://openresty.org/#Download)

---

<div class="post-metadata">

**Author:** ![agentzh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/4da419/32.png) [@agentzh](https://www.ruby-forum.com/u/agentzh)\
**Post date:** [September 4, 2011, 5:52pm UTC](https://www.ruby-forum.com/t/the-lua-rds-parser-lua-library-and-ngx-rds-csv-nginx-module/211434/2 "2011-09-04T17:52:56Z")

</div>

Thanks your share with us.

george
