homework-jianmu/tests/examples/lua
Haojun Liao 819c7fc030 [td-10529] fix compiler error 2021-10-08 20:33:46 +08:00
..
OpenResty Add support for async insert and connection pool. (#6244) 2021-06-01 13:35:19 +08:00
lua51 [td-10529] fix compiler error 2021-10-08 20:33:46 +08:00
README.md Resolve problems that is met in CentOS7. (#5738) 2021-04-09 13:05:51 +08:00
benchmark.lua Resolve problems that is met in CentOS7. (#5738) 2021-04-09 13:05:51 +08:00
build.sh Hotfix/sangshuduo/td 4477 install dep for lua (#6329) 2021-06-01 16:24:55 +08:00
lua_connector.c [td-10529] fix compiler error 2021-10-08 20:33:46 +08:00
luaconnector.so [TD-4666]<feature>: support max column num to 4096 2021-06-10 18:51:10 +08:00
test.lua Add support for async insert and connection pool. (#6244) 2021-06-01 13:35:19 +08:00

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