From: Robert Stone Date: Sat, 27 Dec 2014 19:19:10 +0000 (-0600) Subject: Added documentation for controlling precision for decimal and float. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=refs%2Fheads%2Fghpr%2Fapplied%2Fas_2e7c645c;p=dbsrgits%2FDBIx-Class-Historic.git Added documentation for controlling precision for decimal and float. In DBIx::Class::ResultSource Added pod outlining that an ArrayRef can be passed as the argument to size in order to control precision. --- diff --git a/lib/DBIx/Class/ResultSource.pm b/lib/DBIx/Class/ResultSource.pm index fea6327..70e0b11 100644 --- a/lib/DBIx/Class/ResultSource.pm +++ b/lib/DBIx/Class/ResultSource.pm @@ -211,6 +211,12 @@ The length of your column, if it is a column type that can have a size restriction. This is currently only used to create tables from your schema, see L. + { size => [ 9, 6 ] } + +For decimal or float values you can specify an ArrayRef in order to +control precision, assuming your database's +L supports it. + =item is_nullable { is_nullable => 1 }