Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lloydzhou/lua-cbson
lua cbson library based on libbson (https://github.com/mongodb/libbson.git).
https://github.com/lloydzhou/lua-cbson
Last synced: 7 days ago
JSON representation
lua cbson library based on libbson (https://github.com/mongodb/libbson.git).
- Host: GitHub
- URL: https://github.com/lloydzhou/lua-cbson
- Owner: lloydzhou
- License: mit
- Created: 2015-04-03T11:43:50.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-11-17T06:49:54.000Z (about 9 years ago)
- Last Synced: 2024-12-06T21:56:34.572Z (27 days ago)
- Language: C
- Size: 8.79 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# lua-cbson
lua cbson library based on [libbson](https://github.com/mongodb/libbson.git).
Can using in ngx_lua_module.
Suggest to using this library with [luajit-mongo](https://github.com/lloydzhou/luajit-mongo.git)
For now just implementation the "decode" method, can decode the bson_t struct into lua table.# install
~~~bash
git clone https://github.com/lloydzhou/lua-cbson.git
cd lua-cbson
git submodule init
git submodule updatecd libbson
./autogen.sh
make && sudo make installcd ..
make clean && make LUA_INCLUDE_DIR=/usr/local/openresty/luajit/include/luajit-2.1 LUA_CMODULE_DIR=/usr/local/openresty/lualib LUA_MODULE_DIR=/usr/local/openresty/lualib CBSON_CFLAGS="-g -fpic -I/usr/local/include/libbson-1.0/ " CC=cc~~~