Re: Connecting to Database
Re: Connecting to Database
- Subject: Re: Connecting to Database
- From: Brian Hill <email@hidden>
- Date: Mon, 13 Aug 2001 10:59:08 -0500
On Monday, August 13, 2001, at 10:33 AM, So Hok Chun, Bill wrote:
I'm new to Cocoa. I'd like to know whether there exist any means to
connect
a Cocoa program to a database (eg.: Postgresql, mySQL)
Is there any ways similar to JDBC in Java or ODBC?
Thanks for your help.
Not anymore.
There was a remarkable ObjC database API called EOF included with OSX
Server 1.x, but the WebObjects team stated that they didn't think a
significant number of people wanted to use it, so they ditched it. There
have been numerous threads (and flames) about the entire subject the
last several years, but suffice it to say that Apple doesn't seem expect
people to access databases other than via Java. I (and many others) have
thousands of lines of (now obsolete) ObjC EOF code to prove them wrong,
but that didn't change things. You can get the Java version of EOF with
WO 5, but you'd need to purchase a $700 WO license for each client seat
if you want to write a desktop-based 'thick client' program (as opposed
to a web-based one).
Otherwise, you'd have to use the C-based client API for whatever
database server you want to work with. Personally, I prefer the
PostgreSQL client API over mySQL, but YMMV. Also, both OpenBase and
FrontBase have fairly nice ObjC based client APIs as well.
Brian
email@hidden
http://personalpages.tds.net/~brian_hill
___________________________________________________________
"Why? I came into this game for adventure - go anywhere, travel
light, get in, get out, wherever there's trouble, a man alone.
Now they've got the whole country sectioned off and you can't
move without a form. I'm the last of a breed."
-- Archibald "Harry" Tuttle, Rogue HVAC Repairman
___________________________________________________________