/[SQLSession]/trunk/lib/SQLSession/Model/Query.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/lib/SQLSession/Model/Query.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

trunk/lib/SQLSession/Model/Page.pm revision 14 by dpavlin, Sun Dec 3 13:45:00 2006 UTC trunk/lib/SQLSession/Model/Query.pm revision 28 by dpavlin, Thu Dec 7 19:56:41 2006 UTC
# Line 1  Line 1 
1  use strict;  use strict;
2  use warnings;  use warnings;
3    
4  package SQLSession::Model::Page;  package SQLSession::Model::Query;
5  use Jifty::DBI::Schema;  use Jifty::DBI::Schema;
6  use SQLSession::Model::Database;  use SQLSession::Model::Database;
7    
# Line 10  use SQLSession::Record schema { Line 10  use SQLSession::Record schema {
10                  type is 'text',                  type is 'text',
11                  label is 'Name of query',                  label is 'Name of query',
12                  distinct,                  distinct,
13                  hints is 'Short name of this page',                  hints is 'Short name for this query',
14                  mandatory;                  mandatory;
15    
16          column sql_query =>          column sql_query =>
# Line 22  use SQLSession::Record schema { Line 22  use SQLSession::Record schema {
22                  render as 'textarea';                  render as 'textarea';
23                    
24          column on_database =>          column on_database =>
25                  refers_to SQLSession::Model::Database by 'name';                  refers_to SQLSession::Model::Database by 'id',
26                    label is 'on database',
27                    mandatory;
28            
29            column note =>
30                    type is 'text',
31                    label is 'Note',
32                    render as 'textarea',
33                    since 0.0.2;
34  };  };
35    
36  # Your model-specific methods go here.  # Your model-specific methods go here.

Legend:
Removed from v.14  
changed lines
  Added in v.28

  ViewVC Help
Powered by ViewVC 1.1.26