[RDBO] Datatype generator

2007-05-02 Thread Ovid
Hi all, This may or may not be of use to anyone. One thing I've done is create a 'datatype generator' which is shorthand for many data types and it's legible, too. For example, instead of this: reason = { type = 'scalar', length = 255, default = '', not_null = 1,

Re: [RDBO] Datatype generator

2007-05-02 Thread John Siracusa
On 5/2/07, Ovid [EMAIL PROTECTED] wrote: This may or may not be of use to anyone. One thing I've done is create a 'datatype generator' which is shorthand for many data types and it's legible, too. For example, instead of this: reason = { type = 'scalar', length = 255,

Re: [RDBO] Datatype generator

2007-05-02 Thread Jonathan Vanasco
On May 2, 2007, at 1:54 PM, John Siracusa wrote: You can do this already, more or less, by making your own My::EmailColumn class based on Rose::DB::Object::Metadata::Column, then mapping that class to a type name using meta-column_type_class(email = 'My::EmailColumn'). Then, in your class