Parent Directory | Revision Log
various tweaks: - added edit mode to configuration - turned off ajax (buggy in current Jifty) - fake current_user_can in models - order queries by name
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 | mandatory, |
12 | distinct; |
13 | |
14 | column dsn => |
15 | type is 'text', |
16 | label is 'DBI connection string', |
17 | hints is 'for PostgreSQL you might try something like: DBI:Pg:dbname=test', |
18 | mandatory; |
19 | |
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 | # Your model-specific methods go here. |
30 | |
31 | sub current_user_can { |
32 | return 1; |
33 | } |
34 | |
35 | 1; |
36 |
ViewVC Help | |
Powered by ViewVC 1.1.26 |