Adobe Air 共享数据库文件
是否可以安装一个计算机(Windows或Mac)上所有用户都可读可写的SQLite数据库?
据我在 API 文档中看到的,我唯一可以读/写访问的文件夹是计算机特定用户的本地文件夹。
Is it possible to install a SQLite database that is readable and writable by all users on a computer (windows or mac)?
As far as I've seen in the API docs the only folders I can read/write access to are local to the specific user of the computer.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您应该能够使用 文件 类。你只需要解析你想要将 SQLite 指向的位置即可:
但是,你必须考虑到并非所有计算机都使用相同的绝对路径。让用户指向他们想要打开的数据库可能对您有好处。
You should be able to read/write wherever you want using the File class. You just need to resolve wherever you want to point the SQLite to:
However, you have to take into consideration that not all computer use the same absolute paths. It might be good for you to have the user point to which db they want to open.