File: Channel.pm

package info (click to toggle)
libdbix-class-candy-perl 0.002106-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 232 kB
  • ctags: 50
  • sloc: perl: 463; makefile: 2
file content (30 lines) | stat: -rw-r--r-- 523 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
package IRC::Schema::Result::Channel;

use IRC::Schema::Candy;

primary_column id => {
   data_type => 'int',
   is_auto_increment => 1,
};

column name => {
   data_type => 'varchar',
   size      => 100,
};

column network_id => {
   data_type => 'int',
};

belongs_to network => 'IRC::Schema::Result::Network', 'network_id';
unique_constraint [qw( name )];

sub test_perl_version { eval <<'EVAL'
   no if $] > 5.017010, warnings => 'experimental::smartmatch';

   given (1) { when (1) { return 'station' } }
EVAL
}

1;