Re: [RDBO] Inflate Columns to User Defined Class

2007-01-23 Thread John Siracusa
On 1/23/07 11:21 PM, Praveen Ray wrote: > How would I make RDBO inflate a particular column to a user defined class? > Instead of the built-in? For example, I'd like a BYTEA column to be inflated > into my own class. I'm guessing somewhere in the $meta->setup call, I should > be able to specify it

[RDBO] Inflate Columns to User Defined Class

2007-01-23 Thread Praveen Ray
How would I make RDBO inflate a particular column to a user defined class? Instead of the built-in? For example, I'd like a BYTEA column to be inflated into my own class. I'm guessing somewhere in the $meta->setup call, I should be able to specify it but didn't find an example to do it. thanks

Re: [RDBO] Setting mysql_enable_utf8 for Rose::DB::MySQL?

2007-01-23 Thread John Siracusa
On 1/23/07, David Naughton <[EMAIL PROTECTED]> wrote: > I prefer to set mysql_enable_utf8 in the connect options based on this > from the DBD::mysql docs > http://search.cpan.org/dist/DBD-mysql/lib/DBD/mysql.pm>: > > "Additionally, turning on this flag tells MySQL that incoming data should > be tre

Re: [RDBO] Setting mysql_enable_utf8 for Rose::DB::MySQL?

2007-01-23 Thread David Naughton
On Tue, Jan 23, 2007 at 11:41:35AM -0500, John Siracusa wrote: > On 1/23/07, Adrian Howard <[EMAIL PROTECTED]> wrote: > > On 23 Jan 2007, at 16:00, David Naughton wrote: > > [snip] > >> The docs say that mysql_enable_utf8 is an "object method", and you're > >> calling it as a class method. > > > >

Re: [RDBO] Setting mysql_enable_utf8 for Rose::DB::MySQL?

2007-01-23 Thread John Siracusa
On 1/23/07, Adrian Howard <[EMAIL PROTECTED]> wrote: > On 23 Jan 2007, at 16:00, David Naughton wrote: > [snip] >> The docs say that mysql_enable_utf8 is an "object method", and you're >> calling it as a class method. > > D'oh! I missed the subheading. Obviously need more coffee :) > >> In order to

Re: [RDBO] Setting mysql_enable_utf8 for Rose::DB::MySQL?

2007-01-23 Thread Adrian Howard
On 23 Jan 2007, at 16:00, David Naughton wrote: [snip] > The docs say that mysql_enable_utf8 is an "object method", and you're > calling it as a class method. D'oh! I missed the subheading. Obviously need more coffee :) > In order to enable utf8 for all > connections, try this: > > __PACKAGE__->

Re: [RDBO] Setting mysql_enable_utf8 for Rose::DB::MySQL?

2007-01-23 Thread David Naughton
On Tue, Jan 23, 2007 at 03:10:08PM +, Adrian Howard wrote: > I want all of my MySQL database connections to have mysql_enable_utf8 > set. From the docs I expected something like: > > > package My::DB; > use base qw( Rose::DB ); > > __PACKAGE__->use_private_registry; > > __PACKAGE__->r

[RDBO] Setting mysql_enable_utf8 for Rose::DB::MySQL?

2007-01-23 Thread Adrian Howard
I want all of my MySQL database connections to have mysql_enable_utf8 set. From the docs I expected something like: package My::DB; use base qw( Rose::DB ); __PACKAGE__->use_private_registry; __PACKAGE__->register_db( domain => 'test', type => 'main', driver => 'mys