[TIMOB-6488] iOS: Add property to get full path to a DB file
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-12-19T11:14:04.000+0000 |
Affected Version/s | Release 1.8.0.1 |
Fix Version/s | Sprint 2011-49, Release 1.7.6, Release 1.8.0.1 |
Components | iOS |
Labels | n/a |
Reporter | Stephen Tramer |
Assignee | Sabil Rahim |
Created | 2011-12-06T13:07:53.000+0000 |
Updated | 2012-01-04T20:27:16.000+0000 |
Description
We need to add a property like the following (maybe with a better name) to
Ti.Database.DB
:
{quote}
file: A read-only property that returns the Ti.Filesystem.File
object representing the database itself. This object should be used for setting file properties only.
{quote}
This property is necessary for developers to be able to set the do-not-backup flag on database files, which Apple may require for app submission. You'll need to ensure that performing flag setting operations does not conflict with being able to read/write to the database.
Would want a parity ticket for the other platforms too.
Testing : Added a new button to KitchenSinck > Platform > Database > Check DB Fullpath In the alert you should see the Fullpath of the db
pull pending 857
Bug fixed. Verified on: SDK: 1.8.0.1.v20111208104316 Studio: 1.0.7.201112080131 OS: OS X Lion Devices Tested: iPhone 5.0.1
Reopening to remove merge tag.
This was added to APIDocs [Titanium.Database](http://developer.appcelerator.com/apidoc/mobile/latest/Titanium.Database-module.html) in error. Should have been [Titanium.Database.DB](http://developer.appcelerator.com/apidoc/mobile/latest/Titanium.Database.DB-object). The linked ticket addresses this.