|
|
@@ -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}')`
|