What database is used when working with iPhone app?

Discussion in 'iOS Programming' started by hajira, Jul 27, 2012.

  1. hajira macrumors newbie

    Joined:
    Jul 25, 2012
    #1
    I am a newbie to iPhone app development.I want to know what database is used in iPhone app development?
     
  2. ConCat macrumors 6502a

    ConCat

    Joined:
    Jul 27, 2012
    Location:
    In an ethereal plane of existence.
    #2
    I'm not so sure about the iOS world, but in the Mac world it's SQLite. Good chance it's the same.
     
  3. 1458279 Suspended

    1458279

    Joined:
    May 1, 2010
    Location:
    California
    #3
    There are two primary database access APIs in iOS:
    Core Data
    SQLite

    The actual data is stored in SQLite in both cases. In other words Core Data uses SQLite as the data store.
     
  4. hajira thread starter macrumors newbie

    Joined:
    Jul 25, 2012
    #4
    So u mean SQLite is used?Can u please give me the information where can i download it ?and downloading SQLite is enough?no need of Core Data?Can i use SQL Server instead?
     
  5. Narendar Singh macrumors member

    Narendar Singh

    Joined:
    Jun 22, 2012
    Location:
    INDIA
    #5
    Already mentioned in above post, there are 2 ways: Core Data and SQLite.

    Here is the SQLite API you can use in your application. You can read the documentation provided. If it seems okay then you can start using this in your app.

    Source: https://github.com/ccgus/fmdb

    You can also directly use the SQLite C API on your app.

    Here is the SQLite site for getting idea about it.

    http://www.sqlite.org
    http://www.sqlite.org/lang.html
     
  6. Guiyon macrumors 6502a

    Joined:
    Mar 19, 2008
    Location:
    North Shore, MA
    #6
    Are you looking to store data directly on the device or on a server? If you are working directly with the database on iOS, there is nothing to download; Xcode already has all the SQLite libraries included with it. You just need to look over the documentation and figure out if using SQLite directly (or via an Obj-C wrapper) or CoreData is going to work better for you. If you are looking to store data on a server somewhere and have iOS access it, it doesn't matter what database you use. All you need is some sort of webservice to sit between the DB and your application and pass the data back and forth.
     
  7. hajira thread starter macrumors newbie

    Joined:
    Jul 25, 2012
    #7
    I have downloaded SQlitemanager .Is it correct ?And please give me an example how to insert data from iphone interfacebuilder into SQLite
     
  8. jnoxx macrumors 65816

    jnoxx

    Joined:
    Dec 29, 2010
    Location:
    Aartselaar // Antwerp // Belgium
    #8
  9. hajira thread starter macrumors newbie

    Joined:
    Jul 25, 2012
    #9
    Can u please tell me what does it mean by storing the data on the device or storing it on the server?
     
  10. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #10
    Can u please tell us what u think it means by "server"?
     
  11. 1458279 Suspended

    1458279

    Joined:
    May 1, 2010
    Location:
    California
    #11
    Data files can be stored on the device itself just like you store graphics, plists, settings, etc.... The device has internal storage, the same storage you use for songs, books, videos, etc...
    The data can also be stored on another device like the cloud or on a website or data server. Remote data on a server is usually called 'client server' One benefit is that other people can access the server and update the data.

    One example is storing music on the cloud vs storing music on the device's internal storage.
     
  12. vineesh macrumors newbie

    Joined:
    Jan 22, 2012
    Location:
    Cochin
    #12

    iPhone SQLite database is used. Not need separate installation or other like as SQL server.


    vineeshtp88@gmail.com
     
  13. Harveydrey macrumors newbie

    Joined:
    Aug 29, 2012
    #13
    I want to make an app where the user can input data and that data will be emailed and/or SMS to me.. is there any drag n drop non coding software that can do this like appmakr, gamesalad etc??
     

Share This Page