chore: update changes

This commit is contained in:
firest 2023-07-13 08:02:36 +00:00
parent 749b8cd2ed
commit 66baea2ba0
1 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,20 @@
Fix and improve supports for TDEngine `insert` syntax.
1. Support inserting into multi-table in the template
For example:
`insert into table_1 values (${ts}, '${id}', '${topic}')
table_2 values (${ts}, '${id}', '${topic}')`
2. Support mixing prefixes/suffixes and placeholders in the template
For example:
`insert into table_${topic} values (${ts}, '${id}', '${topic}')`
Note: This is a breaking change, at the former, the string-type values are automatically quoted, bu now, you should manually quote them.
For example:
`insert into table values (${ts}, '${a_string}')`