Re: [RDBO] form validation and RDBO

2007-10-15 Thread adam . prime
> > I find myself needing to bootstrap a bunch of Rose-based apps. Ideally, I'd > like to be able to run a script like: > > make_rose_garden.pl --db db_name --host some.where --prefix MyGarden > > and I would get RDBO .pm files, RHTMLO .pm files and some integrated > validation > glue, all gene

Re: [RDBO] form validation and RDBO

2007-10-22 Thread adam . prime
I've been fooling around with this idea for the last couple of days and I was wondering if I could get some feedback from the list. Basically, what I've got working right now is a subclass of Loader, which creates all the RDBO .pm files (obviously), as well as RHTMLO 'stubs' that contain all

Re: [RDBO] form validation and RDBO

2007-10-23 Thread adam . prime
Quoting Peter Karman <[EMAIL PROTECTED]>: > Adam, > > Glad you are working on this too. Perhaps we can join forces. > Certainly. I've only really started using Rose about a month ago, so i'm not sure how much use i'll be, but you never know ;) > I started something similar here: > > http://www

[RDBO] unique_keys problem

2007-12-10 Thread Adam Prime
varchar(50) NOT NULL default '', `location_id` int(10) unsigned NOT NULL default '0', `created_date` timestamp NOT NULL default '-00-00 00:00:00', `modified_date` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP, `activa

Re: [RDBO] unique_keys problem

2007-12-10 Thread adam . prime
With this patch, everything + my failing test passes. I'm not sure if this is a good idea or a bad idea though. In my test that fails $_ is defined as an empty string (as far as i can tell) for some reason, instead of as undef as i would expect. There's probably an underlying bug causing

Re: [RDBO] unique_keys problem

2007-12-11 Thread Adam Prime
Now that i've slept i'm wondering if the underlying problem might be related to the way that defaults are handled in RDBO. That's one thing that differs between the tables used in the original tests and the table in the test i submitted. Adam [EMAIL PROTECTED] wrote: > With this patch, every

Re: [RDBO] unique_keys problem

2007-12-11 Thread adam . prime
Quoting John Siracusa <[EMAIL PROTECTED]>: > Did you use the Loader to make these classes? MySQL tends to offer up > empty string default values for non-null character columns, and the > Loader dutifully reflects that, having no way to distinguish between > "legitimate" empty string default values

Re: [RDBO] Last chance to suggest a better name for undef_sets_null

2007-12-12 Thread adam . prime
Quoting John Siracusa <[EMAIL PROTECTED]>: >> explicit_null > > That's closer, but it feels like even less of a complete description > than undef_sets_null. > Perhaps it should involve 'default' somehow? undef_ignores_default or something? adam -

Re: [RDBO] how to pluralize properly with Rose::DB::Object::Loader?

2007-12-21 Thread Adam Prime
Ted Zlatanov wrote: > I couldn't find an example in the docs of how to set up > Rose::DB::Object::Loader with a properly pluralizing convention manager. > I tried the following, but I keep getting a class called "Currencie" > from a table called "currencies" for example. I must be missing > someth

Re: [RDBO] insert speed questions with RDBO

2008-01-05 Thread Adam Prime
Ted Zlatanov wrote: > I realize much of this question belongs to database-specific domains, > but here goes: I want RDBO insert operations to be faster. I need to > load thousands of records per second into a database. I'm using > PostgreSQL, and everything works correctly. The extra DB operatio