MySQL interface...

Stephen Pope stp at create.ucsb.edu
Wed Apr 7 16:03:56 UTC 1999


Dino wrote:
> 
> Anyone know if there is a smalltalk interface for the MySQL database?
> 
> I wonder what it would take to make one...

I looked into this, and it wouldn't be all that difficult. The MySQL C-language
API is pretty simple, and we could make a native-call- or socket-based
interface. I recently wrote a transparent object-relational mapping framework in
Java using JDBC, and have some ideas about how to do this well in Squeak, but
all my Squeak cycles at present are going into getting the MinneStore OODB
ported (see my next letter). For a Squeak/MySQL interface, I'd adopt a somewhat
JDBC-like approach that exposes tables and SQL to Squeak (for optional use), and
add a layer of transparent object adaptors and field accessors for simpler
access.

-- 
stp

  Stephen Travis Pope
  stp at create.ucsb.edu      http://www.create.ucsb.edu/~stp/





More information about the Squeak-dev mailing list