Which DBMS in Obj-C?

Discussion in 'Mac Programming' started by Buschmaster, Mar 12, 2009.

  1. macrumors 65816

    Buschmaster

    Joined:
    Feb 12, 2006
    Location:
    Minnesota
    #1
  2. macrumors G4

    Joined:
    Jan 5, 2006
    Location:
    Redondo Beach, California
    #2
    If it is for a class assignment why care if it is "universal". It's throw-away code. The best thing to do is to go with what you know.

    If you want "universal" then write to an ODBC interface and then you can swap in or out any DBMS you like. ODBC does force you to write to the lowest common denominator SQL but for a class assignment "common SQL" is not bad.

    We can argue over which is "best" but for a class project you will likely not have 100 million rows of data in your tables and with modern DBMS servers anything smaller than that caches in RAM and is always fast.
     
  3. macrumors 68040

    plinden

    Joined:
    Apr 8, 2004
    #3
  4. macrumors 68040

    lee1210

    Joined:
    Jan 10, 2005
    Location:
    Dallas, TX
    #4
    I haven't used mysql much, but i would assume there is a C library for it... why not just use that? If you want, you can write a very small Objective-C class to wrap the C calls.

    -Lee
     
  5. thread starter macrumors 65816

    Buschmaster

    Joined:
    Feb 12, 2006
    Location:
    Minnesota
    #5
    I think this can still be very useful though.


    Basically I just want a way to use a database with OC.


    I could use C as a last resort.
     

Share This Page