I need a basic implementation of an ODBC 3.51 compliant driver that compiles and runs on Mac OS X.

I need only a "stub"-implementation, that means the actual functions in the driver need not talk to a real database, but should return sensible error codes, and values from an in-memory test data structure, and it must be possible to use/test the driver with simple connect, execute, retrieve, close semantics.

A possible reference could be the unixODBC project template for ODBC drivers, but feel free to work directly from the API or other references.