* [TD-13558]<feature>: taos shell refactor add taosTools as submodule * add tools/taos-tools * add more client interface for taosTools compile * update taos-tools * update taos-tools * refactor shell * [TD-13558]<feature>: taos shell test speed * [TD-13558]<feature>: taos -n startup works * taos -n rpc works * taos -n server works * cleanup code since no endPort in 3.0 * update taos-tools * [TD-13558]<feature>: taos -C works * improve taos shell -c WIP * update taos-tools * add demoapi.c * adjust show databases result for 3.0 * test: add platform logic * add nchar * adjust taos_fetch_lengths * print fields * remove show databases check from insert cases * fix lua example compile for 3.0 still not work |
||
---|---|---|
.. | ||
OpenResty | ||
lua51 | ||
README.md | ||
benchmark.lua | ||
build.sh | ||
lua_connector.c | ||
test.lua |
README.md
TDengine driver connector for Lua
It's a Lua implementation for TDengine, an open-sourced big data platform designed and optimized for the Internet of Things (IoT), Connected Cars, Industrial IoT, and IT Infrastructure and Application Monitoring. You may need to install Lua5.3 .
Lua Dependencies
- Lua:
https://www.lua.org/
Run with Lua Sample
Build driver lib:
./build.sh
Run lua sample:
lua test.lua
Run performance test:
time lua benchmark.lua
OpenResty Dependencies
- OpenResty:
http://openresty.org
Run with OpenResty Sample
This section demonstrates how to get binary file for connector. To be convenient for trial, an connector has been put into OpenResty work directory. Because of difference on C API between Lua5.3 and Lua5.1, the files needed by connector for OpenResty are stored in local source directory and configured in script build.sh.
Build driver lib:
cd lua51
./build.sh
Run OpenResty sample:
cd ..
cd OpenResty
sudo openresty -p .
curl http://127.0.0.1:7000/api/test