|Syntactic Confectionery Delight|
DBIC & deployby pileofrogs (Priest)
|on Mar 30, 2009 at 19:56 UTC||Need Help??|
pileofrogs has asked for the
wisdom of the Perl Monks concerning the following question:
I'm working with a DBIx::Class::Schema object and I've just discovered the 'deploy' method, which will create all my tables for me if they don't exist. What I haven't yet found is a good way to determine if the tables are already there.
So, my question is, if you are using the deploy method of a DBIx::Class::Schema object, how do you tell if the database is already deployed?
I'm going to use this for testing, where I create a sqlite db on the fly during testing and I'm going to probably use this to make installing my app on various servers easier.