Re: Cocoa and MySql
Re: Cocoa and MySql
- Subject: Re: Cocoa and MySql
- From: Anjo Krank <email@hidden>
- Date: Tue, 28 Aug 2001 09:21:45 +0200
on 28.08.2001 1:10 Uhr, email@hidden at
email@hidden wrote:
>
I have searched through the documentation but do not find any references to
>
ODBC or other methods of database communication from within Cocoa in the
>
Objective C environment. Can someone guide me? I am specifically interested
>
in accessing mySql on the same machine as the application will run, though
>
obviously it scales up to accessing a remote server. Thanks for any
>
assistance.
A) I haven't tried, but iODBC should compile on OS X. The last time I
touched it, only dl_* support was missing (X Server 1.2). Then use the
myODBC driver.
B) you could simply use the mysql-C interface, either directly or by
creating a wrapper for MyqlConnection, MysqlResultSet etc. in cocoa (and
preferably open-source it:). This shouldn't take more than a day or so.
C) you could port the db-lib from gnustep and add mysql support for that.
I'd choose B) as it is the easiest and gives you the most bang for your
bucks, with C) as a runner-up.