ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> perl-poe
perl-poe
Re: [Dbix-class] POE::Component::DBD::MySQL
by Tavin Cole other posts by this author
Nov 20 2006 12:43PM messages near this date
Re: [Dbix-class] POE::Component::DBD::MySQL | Re: [Dbix-class] POE::Component::DBD::MySQL
Tim Bunce wrote:
>  How does your MySQL::Packet module compare with Net::MySQL
>  (http://search.cpan.org/~oyama/Net-MySQL/MySQL.pm)

mine is more low-level and purely functional.  it leaves all the socket
details and protocol logic to you.  all it does is parse binary packets
into hashes or build them from supplied arguments.

i try to mirror the logical structure of the packets in the perl code
rather than hiding it.

the intent is to aid the writing of general-purpose mysql modules having
interfaces appropriate to the end user.

i am not sure whether this should be under the Net:: namespace.

> > however this has nothing to do with the real DBI/DBD so maybe the name
> > should be different.
>  
>  Yes, please do, as it is misleading currently.

okay.

>  Will you be releasing to cpan soon?

yes, i am looking into the procedures for that.

>  As for naming, considering the low-level of the events, I suggest:
>  
>  	POE::Component::MySQL::Protocol
>  
>  which then leaves room for other, higher level, modules in the
>  POE::Component::MySQL::* namespace.

well, i think the architecture is essentially repeatable for other dbs
(i was thinking of trying postgresql next).  if it isn't, then it should
be, and the mysql module should conform to the more general pattern.  so
to me, that recommends POE::Component::_something_::MySQL

perhaps just POE::Component::Client::MySQL?
POE::Component::Client::DB::MySQL?  POE::Component::DB::Driver::MySQL?

rocco suggested POE::Component::DB::MySQL.

whatever it is, i think it should leave a clear spot for other
driver-specific components and the hypothetical driver-independent
component.

-tavin
Thread:
Tim Bunce
Tavin Cole
Tavin Cole

Privacy Policy | Email Opt-out | Feedback | Syndication
© 2004 ActiveState, a division of Sophos All rights reserved