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.
我在一个无法访问磁盘的系统上。我的 C 程序在内存中有一个有效的、小的 sqlite3 文件(通过网络接收)的内容。我想使用 sqlite3 的 C API 来打开和访问这个文件(只读的很好)。
我该怎么做呢?我知道我可以创建一个空的内存数据库
sqlite3_open(":memory:", &foo)
但是有什么方法可以打开我现有的数据库吗?我没有创建 ram 磁盘的权限,但也许有类似的东西?谢谢。
此处的代码示例(在 C 中):
http://www.mail-archive.com/sqlite-users@sqlite.org/msg15929.html