Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
使用 RhoMobile 框架时,有没有办法在数据库中设置初始数据?如我所见,它正在使用 sqlite 数据库。有没有办法将预设的 sqlite 文件添加到项目中并使其内置在应用程序包中?
Rho::RhoUtils.load_offline_data通过使用该方法,您可以使用包含初始数据的平面文件为数据库播种。完整的文档在这里。
Rho::RhoUtils.load_offline_data