File Coverage

blib/lib/Jifty/DBI/Schema.pm
Criterion Covered Total %
statement 144 180 80.0
branch 38 60 63.3
condition 14 24 58.3
subroutine 29 31 93.5
pod 9 9 100.0
total 234 304 76.9


line stmt bran cond sub pod time code
1 29     29   50214 use warnings;
  29         69  
  29         3032  
2 29     29   178 use strict;
  29         781  
  29         3083  
3              
4             package Jifty::DBI::Schema;
5              
6             =head1 NAME
7              
8             Jifty::DBI::Schema - Use a simple syntax to describe a Jifty table.
9              
10             =head1 SYNOPSIS
11              
12             package MyApp::Model::Page;
13             use Jifty::DBI::Schema;
14             use Jifty::DBI::Record schema {
15             # ... your columns here ...
16             };
17              
18             =cut
19              
20             =head1 DESCRIPTION
21              
22             Each Jifty Application::Model::Class module describes a record class
23             for a Jifty application. Each C statement sets out the name
24             and attributes used to describe the column in a backend database, in
25             user interfaces, and other contexts. For example:
26              
27             column content =>
28             type is 'text',
29             label is 'Content',
30             render as 'textarea';
31              
32             defines a column called C that is of type C. It will be
33             rendered with the label C (note the capital) and as a C