Getting the schema for a DB table

Sam Kington sam at illuminated.co.uk
Tue May 27 14:42:21 BST 2014


On 26 May 2014, at 17:45, Simon Wistow <simon at thegestalt.org> wrote:
> On Sun, May 25, 2014 at 07:38:54PM +0200, Thomas Klausner said:
>> If you want a hash of the current DB schema, take a look at 
>> DBIx::SchemaChecksum
>> 
>> Not sure if this is what you're after, but I hope it helps..
> 
> It would be perfect ... except for that fact that it uses Moose (and 
> also doesn't appear to work with MySQL at the moment).
> 
> If you're already using Moose I'm sure it's fantastic but adding ~120 
> dependencies (of which ~30 are core admittedly) for something I could 
> probably write in nearly as many lines of code[*] probably isn't going 
> to fly unfortunately.

What's wrong with dependencies? It just takes a few minutes to install, disc is cheap, and it's not like any of the rest of your code is going to magically start loading these new modules and being all bloaty and insecure or whatever.

Sam
-- 
Website: http://www.illuminated.co.uk/




More information about the london.pm mailing list