Commit Graph

50 Commits

Author SHA1 Message Date
Simon Guan 2c27c10fa8 Merge branch 'main' into merge/mainto3.0 2025-03-20 14:05:45 +08:00
She Yanjie 0baea6ad8e
add c stmt2 example to doc (#30286)
* add: stmt2 insert example

* fix: free all heap

* format code

* add c stmt2 example

* update en doc desc

* mod makefile

---------

Co-authored-by: pengrongkun94@qq.com <pengrongkun94@qq.com>
2025-03-20 09:32:45 +08:00
factosea 2511a15d71 fix: doc demo code 2025-01-14 15:20:05 +08:00
cris.pei 849b7eabe4 ci: add makefile of c samples 2024-09-29 14:42:53 +08:00
cris.pei 7f7534f0c5 ci: c language samples ci add environmental cleanup label 2024-09-26 14:51:58 +08:00
cris.pei ab1935643c ci: new c language samples in the documentation are integrated into ci 2024-09-26 13:41:25 +08:00
cris.pei 696bb067cb ci: new c language samples in the documentation are integrated into ci 2024-09-26 11:54:18 +08:00
Yihao Deng 7b09a9f8b1 change log qid 2024-08-27 08:25:28 +00:00
Yihao Deng e1998d151b update qid log 2024-08-24 10:19:25 +00:00
wade zhang b4e57cc1bc
Merge pull request #27411 from taosdata/docs/sheyj-3.0
move sample code to docs/example
2024-08-22 19:34:21 +08:00
Yaming Pei 9ddfefc6bf optimized the cpp connector sample code page 2024-08-22 11:26:11 +08:00
yihaoDeng d3ea7ad6d1 change QID log 2024-08-22 10:08:26 +08:00
Yaming Pei 42c7b6ca33 c language sample program modification 2024-08-17 11:42:14 +08:00
Yaming Pei 5011a05e11 c language sample tmq program optimization 2024-08-16 20:11:18 +08:00
Yaming Pei 3b7b41f82d c language sample program modification 2024-08-16 17:10:21 +08:00
Yaming Pei d99e6be4c1 mod c sample code 2024-08-14 18:08:07 +08:00
sheyanjie-qq 8aa9fb82d3 update c sample code 2024-08-14 16:40:19 +08:00
Yaming Pei 05181f162d Merge branch 'docs/sheyj-3.0' of github.com:taosdata/TDengine into docs/sheyj-3.0 2024-08-12 21:12:46 +08:00
Yaming Pei 88a049c02e mod c tmq sample code 2024-08-12 21:12:03 +08:00
sheyanjie-qq cf53c3de96 Merge branch 'docs/sheyj-3.0' of github.com:taosdata/TDengine into docs/sheyj-3.0 2024-08-12 20:56:53 +08:00
sheyanjie-qq c6e7d69bb4 update log 2024-08-12 20:56:20 +08:00
Yaming Pei 34787a8211 mod c tmq sample code 2024-08-12 20:54:11 +08:00
Yaming Pei d30cda78d4 mod c sample code 2024-08-12 19:00:37 +08:00
Yaming Pei d9b514dfe6 c language sample optimization 2024-08-12 18:28:39 +08:00
Yaming Pei 4d595d28c1 c language sample optimization 2024-08-12 15:54:49 +08:00
Yaming Pei d4e2998e7f c language sample optimization 2024-08-12 15:01:34 +08:00
sheyanjie-qq 3a52cc8446 improve doc 2024-08-05 18:34:15 +08:00
sheyanjie-qq cacfef82d7 improve doc 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
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
sheyanjie-qq a419baa645 mod java doc 2024-08-05 18:34:15 +08:00
t_max 8eef17c1c8 docs: add C schemaless and stmt example 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
Yaming Pei 32221eaac1 The Connector section of the official website reconstructs the C language interface description 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
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
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
kailixu 37bc1bca36 enh: column/row max length support up to 64K 2023-04-03 17:00:52 +08:00
Benguang Zhao 19883fdeed feat: alter database before creating topic in tests 2023-03-25 12:01:20 +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
Ganlin Zhao c58ed31ad6 fix: coverity issues
CID: 400220
2022-10-11 14:17:04 +08:00
Huo Linhe 6453e24c84 chore: add lost source code for tmq example of C 2022-08-17 17:20:54 +08:00
dingbo 37db1516ed docs: move docs-en and docs-cn to docs 2022-06-13 15:32:44 +08:00