Commit Graph

15 Commits

Author SHA1 Message Date
Haojun Liao 819c7fc030 [td-10529] fix compiler error 2021-10-08 20:33:46 +08:00
Kaili Xu 93993d0796 [TD-4666]<feature>: support max column num to 4096 2021-06-10 18:51:10 +08:00
Shuduo Sang 0763faeaaf
Hotfix/sangshuduo/td 4477 install dep for lua (#6329)
* make lua build.sh install necessary lib and specify include path.

* [TD-4477]<hotfix>: install dependency package for tests/examples/lua build.sh.

Co-authored-by: Shuduo Sang <sdsang@taosdata.com>
2021-06-01 16:24:55 +08:00
robotspace 68aeccbe7f
Add support for async insert and connection pool. (#6244)
* Add support for async query. Only insert result is parsed.

* Add support for connection pool.

* Add one case for lua connector in smoke test case list.

* Build dymanic library for lua connector before smoke test.
2021-06-01 13:35:19 +08:00
robotspace d8d85667cb
Resolve problems that is met in CentOS7. (#5738)
* Set value for std with c99 to avoid compile error on CentOS7.

* Get parameter from stack by same sequence.

* Add performance test.
2021-04-09 13:05:51 +08:00
robot 057415a0ec Modify ignore list for subdirectory logs in OpenResty work directory. 2020-12-11 19:05:33 +08:00
robot b8809670d6 Add logs directory in OpenResty work dir and keep subdirectory logs empty. 2020-12-11 18:54:36 +08:00
robot f1dfe5138d Remove compile warnings and add comments for trial. 2020-12-11 18:04:31 +08:00
robot e8260ed869 Implement connector for OpenResty based on lua51.
Connector is implemented by lua51 but luajit and ffi are not included. Connection pool is not implemented yet. It is a raw demonstration at present and not verified on production environment.
2020-12-08 14:11:22 +08:00
robot 1919d0aa38 Set connection parameter with table as conventional style. Output result for test case. 2020-12-07 15:04:10 +08:00
robot ba31633a58 Update query api for Lua connector.
All connectors should be updated since taos_query has been modified for thread safety. Only query api is updated, callback in stream is not yet.
2020-08-30 12:09:37 +08:00
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
slguan c2e91fcb75 Adjust code structure 2019-11-07 18:12:26 +08:00
robot 026293617a Return records with seperated fields in lua connector.
Field names and values are both returned. Client application gets value by field name. It runs as convention except that bool type is returned as one byte,tiny integer. Bool type will be returned in future if tiny integer causes confusion.
2019-08-10 22:30:23 +08:00
robot f332530af3 Add example implementation for lua connector. 2019-08-04 21:32:49 +08:00