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 Tim Bunce other posts by this author
Nov 20 2006 6:36AM messages near this date
Re: POE::Component::DBD::MySQL | Re: [Dbix-class] POE::Component::DBD::MySQL
On Sun, Nov 19, 2006 at 08:35:37PM +0000, Tavin Cole wrote:
>  (cc'd to dbix::class list per mst's request)
>  
>  look here: http://www.triplethink.net/2006-11-19/
>  
>  MySQL::Packet - encode and decode the MySQL binary protocol
>  
>  POE::Component::DBD::MySQL - manage MySQL client connections in POE
>  
>  i just open a socket to the mysql server and speak its protocol, leaving
>  the rest to POE's IO loop.  received packets are mapped pretty much one
>  on one to POE events.

Cool.

How does your MySQL::Packet module compare with Net::MySQL
(http://search.cpan.org/~oyama/Net-MySQL/MySQL.pm)

>  in the future there could be more framework on top to manage connecting,
>  client pools, or ultimately some kind of DBI/DBD thing.  hence the
>  module name.
>  
>  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.

(Any future "kind of DBI/DBD thing" layered on top would be a new module
that could perhaps have DBI/DBD in the name.)

>  the code is pretty alpha.  it can only send plain SQL queries;  no
>  prepare/execute yet.  but i am using it successfully in a web service
>  i'm working on.

It might also be useful for something I'm working on.

>  i look forward to your feedback on the design and module naming.

Will you be releasing to cpan soon?

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.

Tim.
Thread:
Tim Bunce
Tavin Cole
Tavin Cole

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