How to load a disk-based database to in-memory database using Sqlite in Mono?

有些话、适合烂在心里 提交于 2020-01-25 21:39:06

问题


Can I load a disk-database file (.db) to a in-memory database created by :memory: in Sqlite? I am using Mono, and Mono.Data.Sqlite is the library I am linking to. Does anyone know how to do that? or can anyone point me to a document for this library? Thanks!

-gb


回答1:


you should use the SQLite Backup API. here is a couple of links.

Using the SQLite Online Backup API

Online Backup API



来源:https://stackoverflow.com/questions/5130952/how-to-load-a-disk-based-database-to-in-memory-database-using-sqlite-in-mono

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!