Commit Graph

269 Commits

Author SHA1 Message Date
sheyanjie-qq fcabeb9398 Merge branch 'docs/sheyj-3.0' of github.com:taosdata/TDengine into docs/sheyj-3.0 2024-08-12 19:12:53 +08:00
sheyanjie-qq 4d12ad127e improve log 2024-08-12 19:12:37 +08:00
sheyanjie-qq 1690c81510 improve log 2024-08-12 19:09:59 +08:00
sheyanjie-qq edcc5f5b67 improve log 2024-08-12 19:05:01 +08:00
Yaming Pei d30cda78d4 mod c sample code 2024-08-12 19:00:37 +08:00
Yaming Pei 0eba0ff308 Merge branch 'docs/sheyj-3.0' of github.com:taosdata/TDengine into docs/sheyj-3.0 2024-08-12 18:37:08 +08:00
Yaming Pei d9b514dfe6 c language sample optimization 2024-08-12 18:28:39 +08:00
t_max 96379b8c04 docs: update go example 2024-08-12 18:21:19 +08:00
sheyanjie-qq d72e0307f0 mod rust log 2024-08-12 17:44:23 +08:00
Yaming Pei 891b5b1990 Merge branch 'docs/sheyj-3.0' of github.com:taosdata/TDengine into docs/sheyj-3.0 2024-08-12 17:42:00 +08:00
sheyanjie-qq 27c44318b6 Merge branch 'docs/sheyj-3.0' of github.com:taosdata/TDengine into docs/sheyj-3.0 2024-08-12 17:29:43 +08:00
sheyanjie-qq ef845842f8 mod rust log 2024-08-12 17:29:17 +08:00
Yaming Pei 4d595d28c1 c language sample optimization 2024-08-12 15:54:49 +08:00
t_max 3f10665ba3 docs: update go and c# examples 2024-08-12 15:54:28 +08:00
Yaming Pei dd3e92d707 Merge branch 'docs/sheyj-3.0' of github.com:taosdata/TDengine into docs/sheyj-3.0 2024-08-12 15:02:02 +08:00
Yaming Pei d4e2998e7f c language sample optimization 2024-08-12 15:01:34 +08:00
menshibin 7a0f2b135e perfect python and nodejs example 2024-08-12 14:13:31 +08:00
sheyanjie-qq 43448bee6e fix doc issue 2024-08-09 18:20:50 +08:00
t_max b170feeb22 docs: update java demo and grafana alert 2024-08-09 11:29:37 +08:00
sheyanjie-qq 4d3d36ae2c mod rust schemaless sample code 2024-08-05 18:34:16 +08:00
menshibin 35cccd2ab9 add python example 2024-08-05 18:34:15 +08:00
sheyanjie-qq 3a52cc8446 improve doc 2024-08-05 18:34:15 +08:00
sheyanjie-qq c18a47f9ab update rust example code 2024-08-05 18:34:15 +08:00
sheyanjie-qq cacfef82d7 improve doc 2024-08-05 18:34:15 +08:00
menshibin 6f828bfe4f add python example 2024-08-05 18:34:15 +08:00
menshibin 709c0b9743 add python example 2024-08-05 18:34:15 +08:00
sheyanjie-qq e1f82b3828 mod code example 2024-08-05 18:34:15 +08:00
Yaming Pei 0bfa9bcf8f The Connector section of the official website reconstructs the C language interface description 2024-08-05 18:34:15 +08:00
menshibin 04f9a611c0 add python example 2024-08-05 18:34:15 +08:00
sheyanjie-qq 1e0ffa1e4d add c tmq code 2024-08-05 18:34:15 +08:00
Yaming Pei 2f5eaec0b2 The Connector section of the official website reconstructs the C language interface description 2024-08-05 18:34:15 +08:00
menshibin dc44fb7bd1 add python example 2024-08-05 18:34:15 +08:00
sheyanjie-qq a419baa645 mod java doc 2024-08-05 18:34:15 +08:00
menshibin 90451b5c62 add python example 2024-08-05 18:34:14 +08:00
t_max 8eef17c1c8 docs: add C schemaless and stmt example 2024-08-05 18:34:14 +08:00
sheyanjie-qq 255d0fd02a mod java exception 2024-08-05 18:34:14 +08:00
t_max feb5b2c540 docs: improve go and csharp example 2024-08-05 18:34:14 +08:00
sheyanjie-qq 7fa473624d mod rust example 2024-08-05 18:34:14 +08:00
menshibin 8bd38a5166 add node.js example 2024-08-05 18:34:14 +08:00
menshibin ba9c99385b nodejs example modify 2024-08-05 18:34:14 +08:00
menshibin 7c13635487 modify python api 2024-08-05 18:34:14 +08:00
sheyanjie-qq 849aa96e84 mod rust example 2024-08-05 18:34:14 +08:00
t_max 49bd4a1815 docs: add go and csharp example 2024-08-05 18:34:14 +08:00
sheyanjie-qq 4135d08519 mod java code 2024-08-05 18:34:14 +08:00
sheyanjie-qq ee5a8a96b0 mod schemaless 2024-08-05 18:34:14 +08:00
sheyanjie-qq 5aa94ea90c mod rust dev guide 2024-08-05 18:34:14 +08:00
Yaming Pei a476dd4f66 The Connector section of the official website reconstructs the C language interface description 2024-08-05 18:34:14 +08:00
menshibin 3ed7697218 modify python api 2024-08-05 18:34:14 +08:00
menshibin f82b92ed1b modify python api 2024-08-05 18:34:14 +08:00
sheyanjie-qq a01439d95e mod sample code 2024-08-05 18:34:14 +08:00
sheyanjie-qq f7a94fad50 mod jdbc doc 2024-08-05 18:34:13 +08:00
Yaming Pei 32221eaac1 The Connector section of the official website reconstructs the C language interface description 2024-08-05 18:34:13 +08:00
sheyanjie-qq f440f71e99 add code example 2024-08-05 18:34:13 +08:00
sheyanjie-qq 4223965dba add exception handling 2024-08-05 18:34:13 +08:00
xsren aa46b1d99f return:queryUtil 2024-07-29 14:58:47 +08:00
kailixu 4b6bd5b43d fix: refactor return code 2024-07-29 11:11:51 +08:00
gccgdb1234 3a63fd5b18 docs: overwrite docs in 3.0 branch with docs in main branch 2024-07-03 16:33:55 +08:00
sheyanjie-qq dd4e8458ce mod grafana doc and jdbc 3.3.0 related doc 2024-07-01 18:49:36 +08:00
chenhaoran 1d9ad04fec test:change the CRAN mirror site to a domestic one for R test 2024-06-06 11:06:16 +08:00
Adam Ji 9125a28061 docs: merge example code to 3.0 2024-04-02 09:13:55 +08:00
t_max eab4861370 refactor(c#): refactor c# connector to v3.1.0 2023-12-14 18:28:29 +08:00
chenhaoran 515d671e00 test:modify the keep parameter of db in python.sh cases 2023-12-07 10:04:47 +08:00
Adam Ji b202d75cdc docs: close cursor after use 2023-11-21 10:47:27 +08:00
Adam Ji a10431cea8 docs: close cursor after use 2023-11-21 10:44:59 +08:00
sheyanjie 369586a5c6 fix auto.offset.reset and snapshot.enable 2023-10-19 20:33:31 +08:00
t_max 312da0ac03 docs(driver-go): update tmq auto.offset.reset configuration 2023-10-19 14:13:17 +08:00
sheyanjie faca8f2ea9 support geometry data type 2023-09-19 11:20:06 +08:00
dapan1121 0cce255a02 Merge remote-tracking branch 'origin/3.0' into fix/m23.0 2023-08-28 10:06:53 +08:00
Shuduo Sang 7020ac7a0f
docs: refine c connector docs (#22491)
* docs: fix taos_init() return type

* docs: refine c interface doc
2023-08-20 14:46:24 +08:00
wangmm0220 b3f945c4c5 fix:conflict 2023-08-16 19:35:05 +08:00
wangmm0220 beb84b2355 fix:tmq interface & remove snapshot code 2023-08-15 15:37:39 +08:00
wangmm0220 7441801e9d feat:support varbinary type 2023-08-15 13:57:05 +08:00
wangmm0220 60191bef9e fix:tmq interface & remove snapshot code 2023-08-14 16:24:56 +08:00
Shuduo Sang 314c749965
docs: supplement r language connnector note (#22340)
* docs: add r language to connector

* docs: add r lang english version in connector

* docs: fix include path and note format

* Update 60-r-lang.mdx

minor changes

* docs: supplement r language note

---------

Co-authored-by: danielclow <106956386+danielclow@users.noreply.github.com>
2023-08-05 20:58:49 +08:00
Shuduo Sang fb4ed263b6
test: make connect_native.r a bit perplexing (#22291) 2023-08-02 17:02:42 +08:00
Shuduo Sang cbca55bc6a
docs: add r language to connector (#22286)
* docs: add r language to connector

* docs: add r lang english version in connector

* docs: fix include path and note format

* Update 60-r-lang.mdx

minor changes

---------

Co-authored-by: danielclow <106956386+danielclow@users.noreply.github.com>
2023-08-02 14:47:51 +08:00
wade zhang b07df46c51
Merge pull request #22265 from taosdata/test/sangshuduo/ci-test
test: add test case for r
2023-08-02 14:12:35 +08:00
Shuduo Sang 872844592e test: add readme.txt 2023-08-01 13:39:20 +08:00
Shuduo Sang f2ca4a22c7
docs: use latest java connector to avoid confusing user (#22254) 2023-08-01 09:44:33 +08:00
sunpeng 2ca20436bd docs: fix-example-in-python-document 2023-07-06 09:41:33 +08:00
sunpeng 8d9b88eb34 docs: fix example in python document 2023-07-06 09:33:56 +08:00
sunpeng 561c61ba64 docs: add docs for assignment and seek
docs: upgrade docs from python subscription
docs: support stmt via ws
docs: optimizate python document base on java document
2023-06-27 11:32:18 +08:00
huolibo bbb93c3720 enh: tmq example add all properties 2023-05-25 11:27:49 +08:00
huolibo 61df1a1b21 enh: stmt insert demo 2023-05-24 17:23:31 +08:00
Dingle Zhang 984211f3b4
Feature/3.0 geometry (#21037)
* Add GEOMETRY data type and make sql.c able to parse it. The GEMETRY works like BINARY so far.

* add GEOMETRY type into gConvertTypes to fix some issues like DELETE calling

* change some test cases to make sure no same timestamp is inserted, and add my smoketest.sh

* Add a function MakePoint() and introduce a lib geometry

* implement sql functions GeomFromText() and AsText()

* Use GEOS *_r funcions instead for thread safety

* Handle with TSDB_DATA_TYPE_GEOMETRY when INSERT geometry data by converting WKT.
Add geosWrapper to wrap the basic GEOS functions for TDEngine.

* refactor AsText and MakePoint functions to be like GeomFromText

* Show WKT when print geometry data in screen
Dump hex data when dump geometry data in a file

* define TYPE_BYTES item for TSDB_DATA_TYPE_GEOMETRY, which casued some strange issues.

* set number of decimals of WKT to 6

* Implement SQL function Intersects()

* refactor geometry sql functions

* Add geosErrMsgeHandler() to get the GEOS error detail

* use threadlocal to instantiate SGeosContext
call destroyGeosContext() only if the thread exists

* remove SGeosContext *context param for all geometry functions since we use thread local one,
so that all caller do not need to know the context.

* Modify Intersects() to call PreparedIntersects() when one of param is a constant, which has higher performance.

* rename prepareFn() to initCtxFn() to avoid confusion with PreparedFn

* Add prefix "ST_" for all geometry functions

* move getThreadLocalGeosCtx() and destroyThreadLocalGeosCtx() into util,
so that all unit test tools can compile

* Add unit test for geometry lib, only test MakePoint so far

* refactor and enhance existing cases in geomFuncTest

* implement NULL type and NULL value test for geomFuncTest

* add test on geomFromText()

* add unit test on AsText() in geomFuncTest

* combine some makePointFunction test items

* add intersectsFunctionTwoColumns test
refactor on callGeomFromTextWrapper functions

* enhance intersectsFunction test to add cases like input constant , NULL type, NULL value, or wrong content

* add more cases into intersectsFunction test

* Add basic test on geometry in system test

* Add ST_GeomFromText and ST_AsText function test in system test on geometry

* add ST_Intersects function test in system test on geometry

* support to check expectedErrno in system test on geometry

* adjust geomTest unit test and geometry system test

* add geometry data type and functions in doc english version

* implement touchesFunction() in geometry lib
refactor geometry relation functions model

* separate gemFuncTest into several src files

* add unit test on touchesFunction

* support sql function ST_Touches()
add system test on ST_Touches

* add docs for ST_Touches()

* Add ST_Contains()

* Add ST_Covers()

* Add ST_Equals()

* add swapAllowed param for geomRelationFunction()
read geom2 earlier intead of at doGeosRelation()

* Add ST_ContainsProperly()

* build on windows

* Merge from 3.0 to 3.0_geometry

* change macro definition TSDB_DATA_TYPE_GEOMETRY as the last one for compatibility

* change '\\NULL' to 'NULL' back in shellDumpFieldToFile()

* add /usr/local/include into include directory

* add /usr/local/inlcude and /usr/local/lib in cmake.platform for DARWIN
2023-05-24 15:36:46 +08:00
wade zhang 01bee436da
Merge pull request #21223 from taosdata/docs/TD-22166
docs(driver): jdbc 3.2.1 document and error code
2023-05-10 11:18:09 +08:00
huolibo 50a24667cd docs(driver): jdbc 3.2.1 document and error code 2023-05-09 16:50:34 +08:00
Linhe Huo d2436fe06a
Merge pull request #21024 from taosdata/docs/adamji/sml-rust
docs: add example and document for rust schemaless insert
2023-05-09 16:32:48 +08:00
Adam Ji 758bcb901a
docs: fix example tmp (#21197) 2023-05-06 22:55:44 +08:00
Adam Ji 4295063bea docs: remove db in sml struct 2023-04-24 08:54:30 +08:00
Adam Ji ae37c254ad docs: update put telnet db name 2023-04-23 10:19:51 +08:00
Adam Ji 20bb69cc16 docs: case put sml json 2023-04-23 10:19:23 +08:00
Adam Ji bec5790c6c docs: update put telnet format 2023-04-23 10:17:20 +08:00
Adam Ji c405051bb3 docs: update put line 2023-04-23 10:16:59 +08:00
Adam Ji 14a76427f3 docs: case put sml telnet 2023-04-23 10:16:00 +08:00
Adam Ji 2e32ebe7f8 docs: case of sml put line 2023-04-23 10:12:55 +08:00
kailixu fd3b552357 Merge branch '3.0' into enh/TD-21161-3.0 2023-04-17 11:42:46 +08:00
Adam Ji 6c3a2e2c5b
docs: support schemaless insert (#20944)
* docs: support schemaless insert

* docs: code reformat
2023-04-15 22:38:28 +08:00
kailixu e976fcb91d Merge branch '3.0' into enh/TD-21161-3.0 2023-04-07 17:51:35 +08:00
Xiaoyu Wang e9d7a099cc merge main 2023-04-04 14:50:58 +08:00
kailixu 37bc1bca36 enh: column/row max length support up to 64K 2023-04-03 17:00:52 +08:00
wangmm0220 b7e6e4197d opti:disable set enable.heartbeat.background 2023-03-30 11:18:35 +08:00
Xiaoyu Wang 97855c6233
Merge pull request #20607 from taosdata/FEAT/TD-23257-3.0
feat: WAL cleanup not affected by topic consumption anymore
2023-03-27 17:58:31 +08:00
Adam Ji 319ec95b9d
docs: add content about req-id (#20650) 2023-03-27 17:07:33 +08:00
Benguang Zhao 6e1eed8843 fix: create database with wal_retention_period in docs/examples/csharp 2023-03-25 13:59:17 +08:00
Benguang Zhao 19883fdeed feat: alter database before creating topic in tests 2023-03-25 12:01:20 +08:00
huolibo d632f035a2
fix: adapter 3.0 (#20391) 2023-03-10 17:01:23 +08:00
sunpeng b84b8e58f5
test: add python demo for websocket (#20209)
* test: add python demo for websocket

* fix test

* fix test

* fix test
2023-03-02 20:44:25 +08:00
huolibo d7e7800520
docs: add jdbc 3.1.0 version description (#20145)
* docs: add jdbc 3.1.0 version description

* docs: fix jdbc description

* docs: add tmq over websocket demo

* docs: fix jdbc tmq demo path

* docs: docs demo in CI

* fix: add jdbc version

* docs: use subscription instead of tmq

---------

Co-authored-by: Shuduo Sang <sangshuduo@gmail.com>
2023-02-24 15:44:12 +08:00
xiaolei li 13bdd5afae
docs: update node-rest examples and reference (#20011) 2023-02-16 14:00:20 +08:00
xiaolei li e541528ab6
docs: update node-rest doc add insert sample (#20008)
* docs: update node-rest doc, add insert sample

* remove cn character in examples
2023-02-16 12:43:45 +08:00
sunpeng db6a8cdf60
build: update writing kafka example and document (#19864)
* build: update writing kafka example and document

* fixes kafka demo

* fix: refine wording

---------

Co-authored-by: Shuduo Sang <sangshuduo@gmail.com>
2023-02-09 02:08:57 +08:00
Xiaoyu Wang 4a215852b6
Merge pull request #19792 from taosdata/fix/3.0_merge_main
merge main
2023-02-05 08:51:01 +08:00
xiaolei li d0dc6dc5ef
docs(driver):update c# examples' .NET to 6.0 (#19795) 2023-02-04 13:27:10 +08:00
xiaolei li 4a87a58c65
docs(node):fix node-rest example failed (#19797) 2023-02-04 02:10:47 +08:00
Xiaoyu Wang 5d499e52f9 merge main 2023-02-03 17:13:11 +08:00
sunpeng 889019b253
build: add python demo to ci (#19699)
* build: add python demo to ci

* build: fix python demo
2023-01-31 09:37:50 +08:00
sunpeng c30cb1f5db
build: add python demo to ci (#19641)
* build: add python demo to ci

* build: add fast write example to ci

* build: add kafka demo to ci

* fix kafka demo

* fix python demo

* fix python demo

* fix python demo

* fix python demo

* fix python demo
2023-01-30 09:58:52 +08:00
sunpeng 0f3b3644de
docs: update python connector document (#19609)
* docs: update python connector document

* fix: tmq_consumer.py

Co-authored-by: Shuduo Sang <sangshuduo@gmail.com>
2023-01-18 00:11:45 +08:00
sunpeng dff16ad4bf
doc: update python tmq document (#19604)
* doc: update python tmq document

* doc: update en document

Co-authored-by: Shuduo Sang <sangshuduo@gmail.com>
2023-01-17 15:53:14 +08:00
Shuduo Sang f2ce2e94b0
fix: make example code to be tested in ci (#19594)
* fix: make example code to be tested in ci

* fix: ../docs/examples/go/go.mod
2023-01-17 12:07:38 +08:00
xiaolei li 830086e756
[WIP]docs(driver):update C# webscoket to import dll from nupkg (#17485)
* docs(driver):update C# webscoket to import dll from nupkg

* docs(driver):update description about C# using WebSocket dll from nuget package

* docs(driver):update C# webscoket to import dll from nupkg 2nd

* fix: typos

Co-authored-by: Shuduo Sang <sangshuduo@gmail.com>
2023-01-17 12:07:01 +08:00
Xuefeng Tan dba94bf5a0
enh(driver-go): redesign of go tmq api (#19553)
* enh(driver-go): redesign of go tmq api

* docs: add comments for reserved parameter

Co-authored-by: Shuduo Sang <sangshuduo@gmail.com>
2023-01-14 15:29:33 +08:00
Shuduo Sang 9e50b50597
docs: fix python connector example code mistake for3.0 (#19552)
* docs: update csharp connector status

* docs: fix csharp ws bulk pulling

* docs: clarify database param is optional to websocket dsn

* docs: fix python version and a few typos

* docs: fix jdbc version in connector matrix

* docs: update jdbc demo readme

* docs: update dot-net examples link

* docs: fix example code mistake

* fix: examples/csharp typos

* fix: examples/python/native_insert_example.py mistake
2023-01-13 14:19:24 +08:00
sunpeng e86b62e786
docs: update go tmq demo (#19139) 2022-12-26 10:01:33 +08:00
sunpeng aad6151cbd
docs: update go tmq demo (#19018) 2022-12-19 17:24:42 +08:00
Kelvin Yin f4652859be
modify: add comma 2022-12-15 17:30:47 +08:00
Shuduo Sang 0ce44c400b
fix: csharp test case (#18706)
* fix: csharp test case

* fix: return -1 if failed
2022-12-05 22:08:06 +08:00
sunpeng 4f8c04cf79
doc: writting from kafka (#18626)
* doc: writting from kafka

* rename file

* docs: typo fix

Co-authored-by: Shuduo Sang <sangshuduo@gmail.com>
2022-12-02 12:47:19 +08:00
Shuduo Sang 1a12fa92d4
docs: move topic drop to early phase in python tmq example (#18350)
* docs: update examples/python/tmq_example.py with connector repo

* Update tmq_example.py

* docs: remove tb variable after get_table_name removed

* docs: move topic drop to early phase

Co-authored-by: Liu Jicong <liujicong@qq.com>
2022-11-23 09:36:26 +08:00
Huo Linhe 83815bc005 docs: update tmq demo
Close [TD-20499](https://jira.taosdata.com:18080/browse/TD-20499)
2022-11-18 11:46:00 +08:00
xleili cf9e851c2c fix(driver):csharp example ci failed for read from null point 2022-11-04 17:24:32 +08:00
Chait Diwadkar 86a75bc844
Need quotes around the location in TAGS ('California.SanFrancicso'
The insert fails without quotes around the location in the TAGS part
2022-10-28 10:14:20 -07:00
Shuduo Sang 704dba9800
docs: update examples/python/tmq_example.py with connector repo (#17387)
* docs: update examples/python/tmq_example.py with connector repo

* Update tmq_example.py

* docs: remove tb variable after get_table_name removed

Co-authored-by: Liu Jicong <liujicong@qq.com>
2022-10-17 11:23:53 +08:00
Ganlin Zhao c58ed31ad6 fix: coverity issues
CID: 400220
2022-10-11 14:17:04 +08:00
xiaolei li c577897c1f
test(docs):change docs-example file structure and update reference (#16987)
* test(docs):update docs-example file structure

* test(docs):update docs-example references under zh and en
2022-09-22 09:58:31 +08:00
xiaolei li 78ac5ee131
docs(diver):C# add docs with WebSocket (#16950)
* docs(diver):C# add docs with WebSocket

* docs(driver):C# docs update with commnets
2022-09-20 18:23:39 +08:00
Shuduo Sang 9355996eb1 docs: change location to align with taosbenchmark 2022-09-13 17:50:35 +08:00
Shuduo Sang 933ed5dc42 docs: csharp example add free result to release memory 2022-09-10 22:12:58 +08:00
wade zhang 9d4a6de45a
Merge pull request #16454 from taosdata/test/td-18644-java-1
test: add java fast_write_example for 3.0
2022-08-26 19:14:43 +08:00
huolibo 0e35669378
fix: add java example CI (#16432)
* fix: varchar need \'

* fix: add jdbc test shell

* fix: change class path

* fix: shell error
2022-08-26 19:09:08 +08:00
jiajingbin 96a78211f6 test: add java fast_write_example for 3.0 2022-08-26 19:03:23 +08:00
jiajingbin 54b079e006 test: add fast_write_example for 3.0 2022-08-26 18:17:05 +08:00
Shuduo Sang 103b7bafb7
docs: remove version number text from docs (#16281) 2022-08-23 15:12:32 +08:00
Yang Zhao 05db189a17
fix: remove python subscribe demo (#15987)
Co-authored-by: Shuduo Sang <sangshuduo@gmail.com>
2022-08-22 16:46:03 +08:00
gccgdb1234 0b61220846 docs: add some files from zh to en 2022-08-22 09:13:38 +08:00
xleili 452395bc46 fix(docs):uncomment nodejs tmq example's commit 2022-08-18 17:33:28 +08:00
Huo Linhe 6453e24c84 chore: add lost source code for tmq example of C 2022-08-17 17:20:54 +08:00
zhaoyanggh 9a9afc0666 docs: refine python tmq doc 2022-08-16 12:06:35 +08:00
Liu Jicong 3e33fda68d
Merge pull request #16119 from taosdata/feature/stream
refactor(tmq): put write logic into taosx.c
2022-08-15 23:00:06 +08:00