简体   繁体   English

是否可以快速找到我的应用程序创建的SQLite数据库?

[英]Is there a quick way to locate the SQLite database that my app creates?

I used this blog post as a basis for creating my SQLite tables. 将此博客文章用作创建SQLite表的基础。

Using the SQL Server Compact/SQLite Toolbox , I can view the created tables nicely. 使用SQL Server Compact / SQLite工具箱 ,我可以很好地查看创建的表。

However, in order to first create the connection in that tool, I had to locate the SQLite database I had created. 但是,为了首先在该工具中创建连接,我必须找到我创建的SQLite数据库。 I did a hard drive search for it, and found it in: 我在硬盘上进行了搜索,并在以下位置找到了它:

C:\Users\Clay\AppData\Local\Packages\99129e92-ebeb-4800-a0e5-
d0e43b016009_qtyjefqf75sa6\LocalState\photrax.sqlite

Now how in the world would I know that it was in 99129e92-ebeb-4800-a0e5- d0e43b016009_qtyjefqf75sa6 (there are many similar Welch-looking folder names beneath C:\\Users\\Clay\\AppData\\Local\\Packages, so how would I know which one it's in)? 现在我怎么会知道它在99129e92-ebeb-4800-a0e5- d0e43b016009_qtyjefqf75sa6中 (在C:\\ Users \\ Clay \\ AppData \\ Local \\ Packages下有许多类似Welch的文件夹名称,所以我怎么知道是哪一个)?

Surely there's a more elegant way to find it than doing a global search. 当然,比进行全局搜索还有一种更优雅的查找方法。

C:\\Users\\Clay\\AppData\\Local\\Package is where all your apps store their data and 99129e92-ebeb-4800-a0e5- d0e43b016009 is most likely your package ID from the appx manifest. C:\\ Users \\ Clay \\ AppData \\ Local \\ Package是所有应用程序存储其数据的位置,并且99129e92-ebeb-4800-a0e5- d0e43b016009很可能是您来自appx清单的包ID。 You can just use ApplicationData.LocalFolder.Path to get the path. 您可以只使用ApplicationData.LocalFolder.Path来获取路径。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM