11import { WSConfig } from "../src/common/config" ;
2- import { sqlConnect , destroy , setLogLevel } from "../src" ;
2+ import { sqlConnect , destroy } from "../src" ;
33
44let dsn = "ws://127.0.0.1:6041" ;
55async function json_tag_example ( ) {
@@ -29,8 +29,8 @@ async function json_tag_example() {
2929 let taosResult = await wsSql . exec ( insertQuery ) ;
3030 console . log (
3131 "Successfully inserted " +
32- taosResult . getAffectRows ( ) +
33- " rows to example_json_tag.stb."
32+ taosResult . getAffectRows ( ) +
33+ " rows to example_json_tag.stb."
3434 ) ;
3535
3636 let sql = "SELECT ts, v, jt FROM example_json_tag.stb limit 100" ;
@@ -70,10 +70,10 @@ async function all_type_example() {
7070 // create table
7171 await wsSql . exec (
7272 "create table if not exists all_type_example.stb (ts timestamp, " +
73- "int_col INT, double_col DOUBLE, bool_col BOOL, binary_col BINARY(100)," +
74- "nchar_col NCHAR(100), varbinary_col VARBINARY(100), geometry_col GEOMETRY(100)) " +
75- "tags(int_tag INT, double_tag DOUBLE, bool_tag BOOL, binary_tag BINARY(100)," +
76- "nchar_tag NCHAR(100), varbinary_tag VARBINARY(100), geometry_tag GEOMETRY(100));"
73+ "int_col INT, double_col DOUBLE, bool_col BOOL, binary_col BINARY(100)," +
74+ "nchar_col NCHAR(100), varbinary_col VARBINARY(100), geometry_col GEOMETRY(100)) " +
75+ "tags(int_tag INT, double_tag DOUBLE, bool_tag BOOL, binary_tag BINARY(100)," +
76+ "nchar_tag NCHAR(100), varbinary_tag VARBINARY(100), geometry_tag GEOMETRY(100));"
7777 ) ;
7878
7979 console . log ( "Create stable all_type_example.stb successfully" ) ;
@@ -85,8 +85,8 @@ async function all_type_example() {
8585 let taosResult = await wsSql . exec ( insertQuery ) ;
8686 console . log (
8787 "Successfully inserted " +
88- taosResult . getAffectRows ( ) +
89- " rows to all_type_example.stb."
88+ taosResult . getAffectRows ( ) +
89+ " rows to all_type_example.stb."
9090 ) ;
9191
9292 let sql = "SELECT * FROM all_type_example.stb limit 100" ;
0 commit comments