Firebase - 是否有API在Firebase上运行清理脚本 [英] Firebase - Is there an API to run clean-up scripts on firebase

查看:123
本文介绍了Firebase - 是否有API在Firebase上运行清理脚本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的要求是在我的firebase数据库上运行一个清理工作。

$ ul

  • Firebase是否有api来运行数据库

    My requirement is to run a clean-up job on my firebase DB.



    如果是这样,我们也可以清理不同数据集中对象的引用吗?目前,Firebase不允许您运行计划任务。为此,您需要设置一个运行Java或Node.js的 cron job 进行清理。

    At present, Firebase does not allow you to run scheduled tasks. To do so, you will need to set up a cron job which runs a Java or Node.js process to do the cleanup.

    清理可以使用 remove()方法。您可以使用 Firebase查询轻松获取您的数据需要删除。

    The cleanup can be done using the remove() method. You might make use of Firebase queries to easily grab the data you need to delete.

    这篇关于Firebase - 是否有API在Firebase上运行清理脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

  • 查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆