File: Category.pm

package info (click to toggle)
librose-db-object-perl 1%3A0.815-1%2Bdeb10u1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 5,048 kB
  • sloc: perl: 79,670; sql: 28; makefile: 7
file content (19 lines) | stat: -rwxr-xr-x 437 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package MyTest::RDBO::Simple::Category;

use strict;

use Rose::DB::Object;
our @ISA = qw(Rose::DB::Object);

use Rose::DB::Object::Helpers
{
  insert_or_update => 'insert_or_update_std',
  insert_or_update_on_duplicate_key => 'insert_or_update',
};

__PACKAGE__->meta->table('rose_db_object_test_categories');
__PACKAGE__->meta->columns(qw(id name));
__PACKAGE__->meta->primary_key_columns([ 'id' ]);
__PACKAGE__->meta->initialize;

1;