Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-6488] iOS: Add property to get full path to a DB file

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-12-19T11:14:04.000+0000
Affected Version/sRelease 1.8.0.1
Fix Version/sSprint 2011-49, Release 1.7.6, Release 1.8.0.1
ComponentsiOS
Labelsn/a
ReporterStephen Tramer
AssigneeSabil Rahim
Created2011-12-06T13:07:53.000+0000
Updated2012-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.

Comments

  1. Don Thorp 2011-12-06

    Would want a parity ticket for the other platforms too.
  2. Sabil Rahim 2011-12-06

    Testing : Added a new button to KitchenSinck > Platform > Database > Check DB Fullpath In the alert you should see the Fullpath of the db
  3. Sabil Rahim 2011-12-06

    pull pending 857
  4. Dustin Hyde 2011-12-08

    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
  5. Stephen Tramer 2011-12-19

    Reopening to remove merge tag.
  6. Paul Dowsett 2012-01-04

    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.

JSON Source