Ejemplo n.º 1
0
 def rmcoll(self, path, recursive=False, **kwargs):
     data = Container(collName=path, flags=0, oprType=0, keyValPair=Container(keyWords=[], len=0, values=[]))
     if recursive:
         data.keyValPair.len = data.keyValPair.len + 1
         data.keyValPair.keyWords.append("recursiveOpr")
         data.keyValPair.values.append("1")
     for k, v in kwargs.items():
         data.keyValPair.len = data.keyValPair.len + 1
         data.keyValPair.keyWords.append(k)
         data.keyValPair.values.append(v)
     return {"int_info": api.RM_COLL_AN21, "data": collInp21.build(data)}
Ejemplo n.º 2
0
 def mkcoll(self, path):
     data = Container(collName=path, flags=0, oprType=0, keyValPair=Container(len=0, keyWords=[], values=[]))
     return {"int_info": api.COLL_CREATE_AN21, "data": collInp21.build(data)}