From: Dagfinn Ilmari Mannsåker Date: Mon, 25 Aug 2014 13:58:54 +0000 (+0300) Subject: Document producer_args in SQL::Translator::Diff X-Git-Tag: v0.11019~1^2~3 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=e84e5bcdd61470ff4fbfed0c9d42d9f5ba7eab24;hp=1007dce21baa268def01d39281fbfbe41d51aa8e;p=dbsrgits%2FSQL-Translator.git Document producer_args in SQL::Translator::Diff --- diff --git a/lib/SQL/Translator/Diff.pm b/lib/SQL/Translator/Diff.pm index d8d6503..1c9dea9 100644 --- a/lib/SQL/Translator/Diff.pm +++ b/lib/SQL/Translator/Diff.pm @@ -520,6 +520,11 @@ supports the ability to do all alters for a table as one statement. If the diff would need a method that is missing from the producer, just emit a comment showing the method is missing, rather than dieing with an error +=item B + +Hash of extra arguments passed to L and the below +L. + =back =head1 PRODUCER FUNCTIONS @@ -530,34 +535,35 @@ thrown. =over -=item * C +=item * C -=item * C +=item * C -=item * C +=item * C -=item * C +=item * C -=item * C +=item * C -=item * C +=item * C -=item * C +=item * C -=item * C +=item * C -=item * C +=item * C -=item * C +=item * C -=item * C (optional) +=item * C (optional) -=item * C (optional) +=item * C (optional) If the producer supports C, it will be called with the table to alter and a hash, the keys of which will be the method names listed above; values will be arrays of fields or constraints to operate on. In the -case of the field functions that take two arguments this will appear as a hash. +case of the field functions that take two arguments this will appear as an +array reference. I.e. the hash might look something like the following: