[DGD] Using MySQL C++ API
Keith Dunwoody
keithdunwoody at yahoo.com
Wed Nov 20 08:25:43 CET 2002
Hi,
What you are suggesting is actually fairly hard to do,
harder than you may realize. May I suggest you start
out by reading the documentation included with the
driver, because although it's very minimal, it does
touch on extending the driver (I think), which is what
you'll have to do.
Also, as far as I know DGD is written in C, not C++,
so you'll need to get the C api for MySQL. There are
also other possibilities, but these have already been
discussed on the list (as mentioned before).
-- Keith
PS. I would also like to mention that you should
probably explore alternatives to writing a database
interface, as interfacing MySQL (or any other
database) with DGD is non-trivial.
--- Soulstar <soulstar999 at hotmail.com> wrote:
> Hi, everyone. I'm new to this list, and this is my
> first posting.
>
> I have a Win2000 Server with basic DGD 1.2p2 and
> Kernel Mudlib running
> smoothly.
> Now I wanted to add some MySQL funtionality to it.
> So I went and check the
> web,
> and found a MySQL C++ API (linked below)
> http://www.mysql.com/downloads/api-mysql++.html
>
> I've download the API, and compiled it, and been
> able to use it from some
> simple C++
> programs.
>
> The question that I have is this, how do I use it in
> my mudlib.
> I'm thinking that i would want a daemon, say,
> mysqld, that will handle all
> the info
> to and from my sql server, and i think it should be
> the only object that can
> do so.
> And in the mysqld, i will add some method calls that
> i can call from other
> objects
> to retrieve, and store data, with proper security
> checking, of course.
>
> Should I imcorperate thie C++ API into the DGD
> source directly ? or can I
> include, or inherit it in my mysqld ?
>
> I have given some thought to this question, and
> given that mysqld will be
> written in
> lpc, i would need to incorporate it into DGD source.
> If this is the case, how would i do it ?
>
> Thanks for reading this post
>
> Regards,
> Soulstar
>
_________________________________________________________________
> List config page:
http://list.imaginary.com/mailman/listinfo/dgd
__________________________________________________
Do you Yahoo!?
Yahoo! Web Hosting - Let the expert host your site
http://webhosting.yahoo.com
_________________________________________________________________
List config page: http://list.imaginary.com/mailman/listinfo/dgd
More information about the DGD
mailing list