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