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 {
>
>   my $self = shift;
>
>   unless ($self->some_sequence_column) {
>    
> $self->some_sequence_column($self->db->next_value_in_sequence('some_seq'));
>   }
>
>   return $self->SUPER::insert(@_);
> }
>
> But since next_value_in_sequence is not documented, I am worrying that
> it's interface may change or disappear.  Please correct me if I have
> missed something.
>
> Derek
Here's a perspective on sequences from the best database you never heard of:
http://www.oracle.com/technology/products/rdb/pdf/0307_sequences.pdf

Cheers,
jec

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Rose-db-object mailing list
Rose-db-object@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rose-db-object

Reply via email to