[Dbix-class] View Definitions for non-virtual views

Matt S Trout mst at shadowcat.co.uk
Fri Jul 21 19:32:18 GMT 2017


On Fri, Jul 21, 2017 at 10:51:15AM -0700, Thomas Sibley wrote:
> I noticed this too, a while back, and wondered about it.  I believe the reason is that for folks who want to dump a database in order to start using DBIx::Class’s deployment tools, the authoritative view definition needs to start living in the .pm file.  For folks, like myself, who manage the database itself and use dbicdump just to sync the .pm files with it, the view’s underlying query is useless in the .pm.  I agree an option would be nice.

It's kinda handy being able to see it in the files, too - the .pm files
are effectively documentation of the schema the code expects as well as
structural.

-- 
Matt S Trout - Shadowcat Systems - Perl consulting with a commit bit and a clue

http://shadowcat.co.uk/blog/matt-s-trout/   http://twitter.com/shadowcat_mst/

Email me now on mst (at) shadowcat.co.uk and let's chat about how our CPAN
commercial support, training and consultancy packages could help your team.



More information about the DBIx-Class mailing list