3 messages in com.mysql.lists.perlRe: Embeded MySQL w/ Perl| From | Sent On | Attachments |
|---|---|---|
| Cory James Trese | 12 May 2004 16:22 | |
| Rudy Lippan | 12 May 2004 16:35 | |
| CoryTrese | 13 May 2004 21:20 |
| Subject: | Re: Embeded MySQL w/ Perl![]() |
|---|---|
| From: | CoryTrese (digi...@frognet.net) |
| Date: | 05/13/2004 09:20:20 PM |
| List: | com.mysql.lists.perl |
On Wed, 2004-05-12 at 19:36, Rudy Lippan wrote:
On Wed, 12 May 2004, Cory James Trese wrote:
Hello,
Turns out that as it exists, the Perl DBD::mysql drivers to NOT support the embedded MySQL server on any platform as far as I know.
I am about to start working on this, but if you have some code ;)
Yeah, I will send it to the list this week. I am suffering deadlines.
I have been able to create a patch for the DBD::mysql XS code that permits this functionality -- transparently while still supporting client/server -- really a big win for me, it's fast and works transparently for my Perl code.
How do you do this transparetntly since you have to link against the embedded mysql libraries? My plan was to create a DBD::EmbeddedMySQL or a DBD::mysql::embedded package (or something along those lines) so as to avoid namespace problem and allow you to have access to both an embedded mysql and have a regular mysql without having to recompile the driver.
I do not need to change my internal API; it is transparent when you switch the library you are linkin -- embedded vs. client/server. This was my reading of the MySQL documentation which suggests this approach.
I do see the potential merit of another namespace.
I am certain that others are excited to try using MySQL in an embedded form via the DBD::mysql drivers, and I am preparing to distribute a patch proposal for the library.
You might want to take a look at the the current CVS Dev-3_0 branch, since that is where most of the new development is going on right now. I have been side traced with some bric->krang conversions have not not done anything in the past few weeks, but I expect to have my schedule open up sometime next week.
I expect to be able to work on this Tuesday afternoon of next week, so I'll
start by looking in CVS.
On a side note I am also building this into a CGI::Application framework I'm creating. Fun fun =)
- Cory




