1. Beatrix Willius
  2. Valentina Database ADK
  3. 火, 9月 12 2023, 05:20 AM
  4.  メールで購読
So far the database for the AppStore version of my app was in Application Support where it's possible to create a file without having the user save it. I want to expand my AppStore version so that the user can save databases at any location.

When I now open a database there is no journal file created. Is the journal file created somewhere else? Can I tell Valentina where to create the journal file? Or is there just no journal file?
コメント
There are no comments made yet.
Sergey Pashkov 承諾済みの回答
Hello Beatrix,

Is the journal file created somewhere else?

No, in this case, the journal is not created at all.

Can I tell Valentina where to create the journal file?

Yes, this database property exists in C++ ADK, we'll add it to V4RB (VDatabase.JournalFolder) in 13.5 (and probably other ADKs).
But it is necessary to avoid the following situation - two different databases must not have the same name and journal location (because the journal name is constructed as db_name+".journal";)

Also, in Valentina Studio, we use Security Scoped Bookmarks. The user adds the necessary folders to the list of allowed locations in the preferences. It may be the folders with databases, projects or even whole partitions. After that, the application has full access to create the journal.
コメント
There are no comments made yet.
Beatrix Willius 承諾済みの回答
Very good. For now the name of the journal is not going to be a problem.

I had forgotten about Valentina Studio because I really dislike using apps from the AppStore. If there is an SSB for a folder then I can save to anything in the folder? Must do some testing.
コメント
There are no comments made yet.
Sergey Pashkov 承諾済みの回答
Yes, with SSB, there are no issues.
コメント
There are no comments made yet.
  • ページ :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.

Categories

Announcements & News
  1. 0 subcategories
Valentina Studio
  1. 2 subcategories
Valentina Server
  1. 4 subcategories
Valentina Database ADK
  1. 0 subcategories
Valentina Reports ADK
  1. 0 subcategories
Other Discussions
  1. 2 subcategories
BETA Testing
  1. 0 subcategories
Education & Research
  1. 0 subcategories