Re: [RDBO] Sequence Support

2007-03-20 Thread Jonathan Vanasco
On Mar 20, 2007, at 7:02 PM, Jud wrote: > On 20/03/07 18:57 -0400, Jonathan Vanasco <[EMAIL PROTECTED]> wrote: >> ok. its on my list right after the debugger module :) > > If you're actually putting together a debug module, I'd put in a > request > for a simple way to turn on all debugging in

Re: [RDBO] Sequence Support

2007-03-20 Thread Jud
On 20/03/07 18:57 -0400, Jonathan Vanasco <[EMAIL PROTECTED]> wrote: > ok. its on my list right after the debugger module :) If you're actually putting together a debug module, I'd put in a request for a simple way to turn on all debugging in Rose... Like via an environment variable, or using Log

Re: [RDBO] Sequence Support

2007-03-20 Thread Jonathan Vanasco
On Mar 20, 2007, at 3:27 PM, John Siracusa wrote: > Well then code it up and send it to me :) ok. its on my list right after the debugger module :) > That level abstraction is > not strictly necessary to support the proposed feature (columns that > are not part of the PK but that have default

Re: [RDBO] Sequence Support

2007-03-20 Thread John Siracusa
On 3/20/07, Jonathan Vanasco <[EMAIL PROTECTED]> wrote: > I'd actually like to see sequence classes > Rose::DB::Object::Metadata::Sequence > > Which lets us map sequences to rose objects , and vice versa > > I'd like to be able to call > > my $seq= MyApp::Rose::DB::Object::Sequence1

Re: [RDBO] Sequence Support

2007-03-20 Thread Jeff Chimene
Derek Watson wrote: > > Hello, > > Is it possible to get sequence support in RDBO? I know that sequences > are supported for primary key generation, but I have a few cases where > they are used for non-keyed columns, and I find myself writing (and > re-writing) this into my classes: > > sub insert

Re: [RDBO] Sequence Support

2007-03-20 Thread Jonathan Vanasco
On Mar 20, 2007, at 12:48 PM, John Siracusa wrote: > On 3/20/07, Derek Watson <[EMAIL PROTECTED]> wrote: >> Is it possible to get sequence support in RDBO? I know that >> sequences are >> supported for primary key generation, but I have a few cases where >> they are >> used for non-keyed colu

Re: [RDBO] Sequence Support

2007-03-20 Thread Derek Watson
What would this support look like? How would the sequence be specified, and how would it behave on insert, update, etc.? I suppose my use of serial/sequence columns is too specific to bother adding to the API, but basically some_seq_column => { type => 'serial', not_null => 1, sequence => 'so

Re: [RDBO] Sequence Support

2007-03-20 Thread John Siracusa
On 3/20/07, Derek Watson <[EMAIL PROTECTED]> wrote: > Is it possible to get sequence support in RDBO? I know that sequences are > supported for primary key generation, but I have a few cases where they are > used for non-keyed columns What would this support look like? How would the sequence be s

[RDBO] Sequence Support

2007-03-20 Thread Derek Watson
Hello, Is it possible to get sequence support in RDBO? I know that sequences are supported for primary key generation, but I have a few cases where they are used for non-keyed columns, and I find myself writing (and re-writing) this into my classes: sub insert { my $self = shift; unless ($se