1Rose::DB::Object::MetadUastear::CCoonlturRmionbs:ue:t:Ie:ndDtBeP:re:vrOalblj(De3oc)ctu:m:eMnettaatdiaotna::Column::Interval(3)
2
3
4
6 Rose::DB::Object::Metadata::Column::Interval - Interval column
7 metadata.
8
10 use Rose::DB::Object::Metadata::Column::Interval;
11
12 $col = Rose::DB::Object::Metadata::Column::Interval->new(...);
13 $col->make_methods(...);
14 ...
15
17 Objects of this class store and manipulate metadata for interval
18 columns in a database. Column metadata objects store information about
19 columns (data type, size, etc.) and are responsible for creating object
20 methods that manipulate column values.
21
22 This class inherits from Rose::DB::Object::Metadata::Column. Inherited
23 methods that are not overridden will not be documented a second time
24 here. See the Rose::DB::Object::Metadata::Column documentation for
25 more information.
26
28 "get_set"
29 Rose::DB::Object::MakeMethods::Generic, date, ...
30
31 "get"
32 Rose::DB::Object::MakeMethods::Time, date, ...
33
34 "get_set"
35 Rose::DB::Object::MakeMethods::Time, date, ...
36
37 See the Rose::DB::Object::Metadata::Column documentation for an
38 explanation of this method map.
39
41 end_of_month_mode MODE
42 This mode determines how math is done on duration objects. If
43 defined, the "end_of_month" setting for each DateTime::Duration
44 object created by this column will have its mode set to MODE.
45 Otherwise, the "end_of_month" parameter will not be passed to the
46 DateTime::Duration constructor.
47
48 Valid modes are "wrap", "limit", and "preserve". See the
49 documentation for DateTime::Duration for a full explanation.
50
51 parse_value DB, VALUE
52 Convert VALUE to the equivalent DateTime::Duration object. VALUE
53 maybe returned unmodified if it is a valid interval keyword or
54 otherwise has special meaning to the underlying database. DB is a
55 Rose::DB object that is used as part of the parsing process. Both
56 arguments are required.
57
58 scale [INT]
59 Get or set the integer number of places past the decimal point
60 preserved for fractional seconds. Defaults to 0.
61
62 Returns "interval".
63
64 type
65 Returns "interval".
66
68 John C. Siracusa (siracusa@gmail.com)
69
71 Copyright (c) 2010 by John C. Siracusa. All rights reserved. This
72 program is free software; you can redistribute it and/or modify it
73 under the same terms as Perl itself.
74
75
76
77perl v5.28.0 Ros2e0:1:5D-B0:3:-O1b8ject::Metadata::Column::Interval(3)