homework-jianmu/tests/examples/lua
robot 79e1a7bcf8 Add support for continuous query in Lua connector.
Malloc memory to store Lua state and callback function from Lua. Connector can support multiple connection by this way.
Memory will be freed when connection isn't established successfully or connection is closed by lua call. Stream content
in Lua is not the same one with stream content in connector.

A loop in test code do the job for continuous query. record is inserted between query actions.
2019-11-12 10:40:44 +08:00
..
README.md Return records with seperated fields in lua connector. 2019-08-10 22:30:23 +08:00
build.sh Add support for continuous query in Lua connector. 2019-11-12 10:40:44 +08:00
lua_connector.c Add support for continuous query in Lua connector. 2019-11-12 10:40:44 +08:00
test.lua Add support for continuous query in Lua connector. 2019-11-12 10:40:44 +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 .

Dependencies

  • Lua:
https://www.lua.org/

Run with Sample

Build driver lib:

./build.sh

Run lua sample:

lua test.lua