move sample code to docs/example

This commit is contained in:
sheyanjie-qq 2024-08-22 18:15:02 +08:00
parent d93e15b552
commit 3b6b873e33
154 changed files with 156 additions and 175 deletions

View File

@ -66,25 +66,15 @@ In the above example code, `taos_connect()` establishes a connection to port 603
This section shows sample code for standard access methods to TDengine clusters using the client driver.
### Synchronous query example
- [Synchronous query example](https://github.com/taosdata/TDengine/tree/3.0/docs/examples/c/demo.c)
- [C example](https://github.com/taosdata/TDengine/tree/3.0/docs/examples/c/demo.c)
- [Asynchronous query example](https://github.com/taosdata/TDengine/tree/3.0/docs/examples/c/asyncdemo.c)
### Asynchronous query example
- [Parameter binding example](https://github.com/taosdata/TDengine/tree/3.0/docs/examples/c/prepare.c)
- [C example](https://github.com/taosdata/TDengine/tree/3.0/docs/examples/c/asyncdemo.c)
- [Schemaless writing example](https://github.com/taosdata/TDengine/tree/3.0/docs/examples/c/schemaless.c)
### Parameter binding example
- [C example](https://github.com/taosdata/TDengine/tree/3.0/docs/examples/c/prepare.c)
### Pattern-free writing example
- [C example](https://github.com/taosdata/TDengine/tree/3.0/docs/examples/c/schemaless.c)
### Subscription and consumption example
- [C example](https://github.com/taosdata/TDengine/tree/3.0/docs/examples/c/tmq.c)
- [Subscription and consumption example](https://github.com/taosdata/TDengine/tree/3.0/docs/examples/c/tmq.c)
:::info
More example code and downloads are available at [GitHub](https://github.com/taosdata/TDengine/tree/develop/docs/examples/c).

View File

@ -662,7 +662,7 @@ Example usage is as follows.
### More sample programs
The source code of the sample application is under `TDengine/examples/JDBC`:
The source code of the sample application is under `TDengine/docs/examples/JDBC`:
- JDBCDemo: JDBC sample source code.
- connectionPools: using taos-jdbcdriver in connection pools such as HikariCP, Druid, dbcp, c3p0, etc.
@ -671,7 +671,7 @@ The source code of the sample application is under `TDengine/examples/JDBC`:
- springbootdemo: using taos-jdbcdriver in Springboot.
- consumer-demo: consumer TDengine data example, the consumption rate can be controlled by parameters.
[JDBC example](https://github.com/taosdata/TDengine/tree/3.0/examples/JDBC)
[JDBC example](https://github.com/taosdata/TDengine/tree/3.0/docs/examples/JDBC)
## Frequently Asked Questions

View File

@ -437,9 +437,9 @@ let taos = pool.get()?;
### More sample programs
The source code of the sample application is under `TDengine/examples/rust` :
The source code of the sample application is under `TDengine/docs/examples/rust` :
[rust example](https://github.com/taosdata/TDengine/tree/3.0/examples/rust)
[rust example](https://github.com/taosdata/TDengine/tree/3.0/docs/examples/rust)
## Frequently Asked Questions

Some files were not shown because too many files have changed in this diff Show More