/[SQLSession]/trunk/lib/SQLSession/Model/Database.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/Database.pm

Parent Directory Parent Directory | Revision Log Revision Log


Revision 106 - (hide annotations)
Thu Mar 15 12:43:55 2007 UTC (17 years, 2 months ago) by dpavlin
File size: 620 byte(s)
fix schema to work with latest Jifty
1 dpavlin 1 use strict;
2     use warnings;
3    
4     package SQLSession::Model::Database;
5     use Jifty::DBI::Schema;
6    
7     use SQLSession::Record schema {
8     column name =>
9     type is 'text',
10     label is 'Name of database',
11 dpavlin 106 is not_null,
12     is distinct;
13 dpavlin 1
14 dpavlin 2 column dsn =>
15 dpavlin 1 type is 'text',
16     label is 'DBI connection string',
17     hints is 'for PostgreSQL you might try something like: DBI:Pg:dbname=test',
18 dpavlin 106 is not_null;
19 dpavlin 1
20     column login =>
21     type is 'text',
22     label is 'database user';
23    
24     column passwd =>
25     type is 'text',
26     label is 'database password';
27     };
28    
29 dpavlin 102 sub since { '0.0.1' }
30    
31 dpavlin 1 # Your model-specific methods go here.
32    
33 dpavlin 29 sub current_user_can {
34     return 1;
35     }
36    
37 dpavlin 1 1;
38    

  ViewVC Help
Powered by ViewVC 1.1.26