
This is a lash up of various library utilities whose original intention
was to provide a generic interface to mSQL such that your application
becomes a 3 tiered application.  The advantage is that you can easily
move to other backends by implementing one file for the new backend.

The database access is in the file msqlacc.c which you would replace
with a set of functions with the same API for your new backend

All the other gubbins is just so the test program would link and run but
the defaults bit is certainly useful.  You can cut out all the crap and
just use the msqlacc.c file by editing it and removing any reference to
other library functions.  You could also extract the bits you need from
the header files.

The problem is that the really handy function is the one that returns
the result from a query as a StringList object which is essentially an
array of char pointers with some special handling.  So if you include
that then you need the associated type definitions and functions in
another file.  Then there's the defaults bit which is really handy.  You
could soon end up with all the bits as I did.  Anyway as your pleasure.

The Makefile is generated from the Imakefile using xmkmf using the
v.rules and v.libs files which go in your config directory.  If it
doesn't work then try the simple.makefile.

If you are an unfortunate that works for managers that buy Sun's with
Solaris 2.<n> then my commiserations (especially if you have paid for
the now unbundled Sun C compiler).  This code builds with gcc because
there is no earthly reason to use any other C compiler.

I am providing this code in reponse to requests from other msql users.
It is in no way supported and I will most likely ignore questions about
it, particularly "It doesn't compile on my <xyz> box".

I hope it is usefult to you.

regards

damian@cablenet.net
