File: TableB.pm

package info (click to toggle)
libdbix-class-encodedcolumn-perl 0.00007-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 240 kB
  • ctags: 131
  • sloc: perl: 1,871; makefile: 2
file content (25 lines) | stat: -rw-r--r-- 503 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
package # hide from PAUSE
    DigestTest::Schema::TableB;

use base qw/DBIx::Class/;

__PACKAGE__->load_components(qw/EncodedColumn Core/);
__PACKAGE__->table('tableb');
__PACKAGE__->add_columns(
  id => {
    data_type => 'int',
    is_nullable => 0,
    is_auto_increment => 1
  },
  conflicting_name => {
    data_type => 'char',
    size      => 43,
    encode_column => 1,
    encode_class  => 'Digest',
    encode_check_method => 'check_conflict',
  },
);

__PACKAGE__->set_primary_key('id');

1;