subSync.json 1.1 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11
{
    "filetype":"subscribe",
    "cfgdir": "/etc/taos",
    "host": "127.0.0.1",
    "port": 6030,
    "user": "root",
    "password": "taosdata",
    "databases": "db",
    "confirm_parameter_prompt": "no",
    "specified_table_query":
      {
12
       "concurrent":2, 
13 14
       "mode":"sync", 
       "interval":0, 
15 16
       "restart":"no", 
       "keepProgress":"no",
17 18
       "sqls": [
        {
19
          "sql": "select * from stb00_0", 
20
          "result": "./subscribe_res0.txt"
21 22 23 24
        },
        {
          "sql": "select ts from stb00_1", 
          "result": "./subscribe_res1.txt"
25 26 27 28 29
        }]
      },
    "super_table_query": 
      {
       "stblname": "stb0",
30
       "threads":2, 
31 32
       "mode":"sync", 
       "interval":10000, 
33 34
       "restart":"no", 
       "keepProgress":"no",
35 36
       "sqls": [
        {
37 38 39 40 41 42
          "sql": "select * from xxxx where ts >= '2021-02-25 10:00:01.000' ", 
          "result": "./subscribe_res2.txt"
        },
        {
          "sql": "select * from xxxx where ts > '2021-02-25 10:00:04.000' ", 
          "result": "./subscribe_res3.txt"
43 44 45
        }]
      }
  }