SQLite 是否有 C API 可以读/写的机器可移植文件格式?
我尝试过通过网络在不同操作系统和体系结构之间传递二进制 SQLite DB - 但没有成功。
大家都用什么格式?我尝试过复制 SQLite 的 shell.c 并使用修改后的 argc、argv、stdin 调用 shell_main() 的方法,在 Mac 上取得了成功。遗憾的是我正在为 iPhone 开发,但只在那里失败了。
每个人都会做这么可怕的事情吗?
I've tried passing binary SQLite DBs over the network between different OSes and architectures - it didn't work.
What format are you all using? I've tried an unholy hack of copying SQLite's shell.c and calling shell_main() with a hacked up argc, argv, stdin with success on Mac. Pity I'm developing for the iPhone and it fails only there.
Does everyone do such awful things?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是 SQLite 的核心功能之一。
http://sqlite.org/ Different.html
检查传递数据库的代码。进行逐字节比较以确保传输后它们相等。这绝对应该有效。
Beyond Compare 具有良好的二进制文件比较支持。
This is one of the core features of SQLite.
http://sqlite.org/different.html
Check the code that's passing the databases. Do a byte-by-byte comparison to make sure they're equal after transfer. This definitely should be working.
Beyond Compare has good binary file comparison support.