Firebase Python管理SDK有一个bulk ^{None
dict值(SDKvalidation)。在
SDK文档很少,几乎没有可用的示例。有人知道如何在Python中批删除吗?在
Javascript中批量删除的Example:
const parentRef = db.reference('parent/foo/')
const children = parentRef.get()
const updates = {};
Object.keys(children).forEach( childKey => {
const childEntry = children(childKey)
if( shouldDelete(childEntry) ) {
updates[childKey] = null; // setting value to null deletes the key
}
}
parentRef.update(updates);
目前没有回答
相关问题 更多 >
编程相关推荐