Global

Methods

WDataSourceFromCsv(fd) → {EventEmitter}

Description:
  • 檔案CSV來源數據供給器

Source:
Parameters:
Name Type Description
fd string

要監控的資料夾路徑

Returns:
  • 具有 select 方法的事件發射器
Type
EventEmitter

WDataSyncer(src, tar, opt) → {EventEmitter}

Description:
  • 資料單向同步程序

Source:
Parameters:
Name Type Description
src Object

資料來源,需提供 select 函數 (async)

tar Object

資料目標,需提供 select、insert、save、del 函數 (async)

opt Object

設定物件

Properties
Name Type Attributes Default Description
key String <optional>
'time'

用於排序與比對的 key

timeInterval Number <optional>
20000

同步觸發間隔時間(毫秒),預設每 20 秒執行一次(1 分鐘 3 次)

useShowLog boolean <optional>
false

是否顯示 log 資訊

Returns:
Type
EventEmitter