这就是问题所在.
我想使用带有firebase的实时数据库,但这个问题阻碍了我. 我想我正在使用旧的技术.
从documentation of reference:
reference
@Deprecated('Deprecated in favor of calling ref().') DatabaseReference reference() Returns a DatabaseReference accessing the root of the database.
@Deprecated('Deprecated in favor of calling ref().')
DatabaseReference reference()
DatabaseReference
所以,use ref()而不是reference.
ref()
getting a database reference的文档中也涵盖了这个确切的用例.
技术领导力实战笔记 -〔TGO鲲鹏会〕
从0开始学架构 -〔李运华〕
数据分析实战45讲 -〔陈旸〕
黄勇的OKR实战笔记 -〔黄勇〕
编辑训练营 -〔总编室〕
容器实战高手课 -〔李程远〕
代码之丑 -〔郑晔〕
Tony Bai · Go语言第一课 -〔Tony Bai〕
自动化测试高手课 -〔柳胜〕
深入浅出可观测性 -〔翁一磊〕
互联网人的数字化企业生存指南 -〔沈欣〕
徐昊 · AI 时代的软件工程 -〔徐昊〕
无涯教程 - Perl教程
无涯教程 - NativeScript教程
无涯教程 - Latex教程
无涯教程 - PyQT6教程
无涯教程 - 精通 PHP 设计模式教程
无涯教程 - PHP8实践教程
无涯教程 - Go Web 爬虫指南教程
无涯教程 - C# 代码整洁指南教程