homework-jianmu/examples/lua
robotspace 16be3ca310
Remove error about stream in lua test case. (#16990)
2022-09-21 23:04:48 +08:00
..
OpenResty Remove error about stream in lua test case. (#16990) 2022-09-21 23:04:48 +08:00
lua51 Remove error about stream in lua test case. (#16990) 2022-09-21 23:04:48 +08:00
README.md [TD-13408]<test>: move examples back to TDegnine (#10196) 2022-02-10 16:19:06 +08:00
benchmark.lua [TD-13408]<test>: move examples back to TDegnine (#10196) 2022-02-10 16:19:06 +08:00
build.sh fix(connector): lua example compile for 3.0 (#11523) 2022-04-15 13:17:25 +08:00
lua_connector.c fix: remove stream api and use tmq syntax in lua example (#16979) 2022-09-21 14:36:44 +08:00
test.lua Remove error about stream in lua test case. (#16990) 2022-09-21 23:04:48 +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