[Dbix-class] Primary key using a Sequence Generator

Matt S Trout dbix-class at trout.me.uk
Sat Feb 9 17:31:03 GMT 2008


On Fri, Feb 08, 2008 at 01:52:07PM -0700, Steve Kirkup wrote:
> Hello,
> 
> 
> Is there a clean way to override the insert() method to call a sequence 
> generator for getting a primary key? 

http://dev.catalyst.perl.org/repos/bast/DBIx-Class/0.08/branches/oracle_sequence/

already does it for Oracle, and there's no reason the code can't be generalised
- we just need people to step up and do it.

Fancy having a go?

> I would assume it is possible, but I am unsure where it would go.
> 
> Steve Kirkup
> 
> _______________________________________________
> List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class
> IRC: irc.perl.org#dbix-class
> SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/
> Searchable Archive: 
> http://www.grokbase.com/group/dbix-class@lists.rawmode.org

-- 
      Matt S Trout       Need help with your Catalyst or DBIx::Class project?
   Technical Director                    http://www.shadowcat.co.uk/catalyst/
 Shadowcat Systems Ltd.  Want a managed development or deployment platform?
http://chainsawblues.vox.com/            http://www.shadowcat.co.uk/servers/



More information about the DBIx-Class mailing list