/[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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1 - (hide annotations)
Fri Dec 1 23:48:06 2006 UTC (17 years, 4 months ago) by dpavlin
Original Path: trunk/lib/SQLSession/Model/Page.pm
File size: 531 byte(s)
initial import of toy Jifty application

1 dpavlin 1 use strict;
2     use warnings;
3    
4     package SQLSession::Model::Page;
5     use Jifty::DBI::Schema;
6     use SQLSession::Model::Database;
7    
8     use SQLSession::Record schema {
9     column name =>
10     type is 'text',
11     distinct,
12     hints is 'Short name of this page',
13     mandatory;
14    
15     column sql_query =>
16     type is 'text',
17     label is 'SQL query',
18     mandatory,
19     distinct,
20     hints is 'Use this area to enter SQL query',
21     render as 'textarea';
22    
23     column on_database =>
24     refers_to SQLSession::Model::Database by 'name';
25     };
26    
27     # Your model-specific methods go here.
28    
29     1;
30    

  ViewVC Help
Powered by ViewVC 1.1.26