database questions

Discussion in 'iOS Programming' started by newConvert, May 19, 2009.

  1. newConvert macrumors regular

    Joined:
    Aug 25, 2006
    #1
    So in my iphone app, i'm creating/editing a database, however i'd like to use an external DB program just to monitor my code and make sure its doing what it should be doing...

    However, I don't know where the database is locate, nor what it is called (would it be different than what I had named mine?)... what is the extension they use, that way I could search for it.. .db?

    Thanks so much
     
  2. mraheel macrumors regular

    Joined:
    Apr 18, 2009
    #2
    I use SQLite Manager. its a firefox plugin. Its efficient and good, and probably all you need at this stage.
     
  3. newConvert thread starter macrumors regular

    Joined:
    Aug 25, 2006
    #3
    sorry for the oldish bump, but yah, that should do...however where is the database located / whats it usually called?
     
  4. boyplunder macrumors regular

    boyplunder

    Joined:
    Sep 8, 2008
    Location:
    UK
    #4
    You don't say what database type you are using [SQLite, plist?] but the database file is generally in the Resources folder or a folder inside Resources. It can be 'loose', but that's poor practice in my opinion. [or maybe I was potty trained too early!]
     
  5. newConvert thread starter macrumors regular

    Joined:
    Aug 25, 2006
  6. boyplunder macrumors regular

    boyplunder

    Joined:
    Sep 8, 2008
    Location:
    UK
    #6
    I'm assuming, from what you've said, that you have built this app and it works, so you must have assigned the database in order to be reading it. Look in the Groups & Files list in XCode, because it will be there.

    If you haven't got that far, you can create and add the database like any other resource file or graphic from your working folder on the Mac. It will end with .sql or similar.

    What I don't get is that you don't know what the database is called. Didn't you create it?
     

Share This Page