def InsertByDocument(self, tableName, document): """ 插入数据capture cargo data """ array = {} array[0] = document jsonData = json.dumps(array) DBEngine.Insert(tableName, jsonData)
def FindAndModify(colName, type): """ 插入数据capture cargo data """ return DBEngine.findAndModify(colName, type, 'w')
def InsertByDictionary(self, tableName, dictionary): """ 插入数据capture cargo data """ jsonData = json.dumps(dictionary) DBEngine.Insert(tableName, jsonData)
def Insert(self, tableName, jsonData): """ 插入数据capture cargo data """ DBEngine.Insert(tableName, jsonData)