On 7/24/06, Duncan J Ferguson <[EMAIL PROTECTED]> wrote: > Its an oracle database which I have no control over. I may be able to > get some views created for me (if I speak nicely to our DBA's), but > doesnt that still leave the problem of the primary keys? Can you have > primary keys on views like that? >
Technically, its a bit difficult in a cross-platform way to detect primary or unique constraints that apply to VIEWs (as they don't really have keys themselves). But if you happen to know that a certain field in the VIEW uniquely identifies rows in that view, there's nothing stopping you from telling DBIC that the VIEW has that field as a primary key. -- Brandon _______________________________________________ List: http://lists.rawmode.org/cgi-bin/mailman/listinfo/dbix-class Wiki: http://dbix-class.shadowcatsystems.co.uk/ IRC: irc.perl.org#dbix-class SVN: http://dev.catalyst.perl.org/repos/bast/trunk/DBIx-Class/ Searchable Archive: http://www.mail-archive.com/[email protected]/
