使用Realm React Native查找Realm文件的路径以与Realm Browser一起使用 [英] Find path for Realm file with Realm React Native to use with Realm Browser

查看:270
本文介绍了使用Realm React Native查找Realm文件的路径以与Realm Browser一起使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在iOS上,可以通过打开相应的文件来检查 Realm 数据库的内容。 Realm Browser 。可以使用以下代码行打印该文件的路径(如此处):

On iOS, it is possible to inspect the contents of a Realm database by opening the corresponding file with the Realm Browser. The path to that file can be printed by using the following line of code (as noted here):

print(Realm.Configuration.defaultConfiguration.path)

使用Rem Native版本的Realm时是否可以这样做?

Is it possible to do the same when using the React Native version of Realm?

推荐答案

通过挖掘 docs

console.log('create db:', db.path)

这篇关于使用Realm React Native查找Realm文件的路径以与Realm Browser一起使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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