File: Result.pm

package info (click to toggle)
libmojomojo-perl 1.11%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 4,496 kB
  • ctags: 927
  • sloc: perl: 14,671; sh: 148; xml: 120; makefile: 8; ruby: 6
file content (36 lines) | stat: -rw-r--r-- 702 bytes parent folder | download | duplicates (5)
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
31
32
33
34
35
36
package MojoMojo::Schema::Base::Result;

use strict;
use warnings;
use parent qw/DBIx::Class/;

=head1 NAME

MojoMojo::Schema::Base::Result - base class for Result classes

=head1 DESCRIPTION

Base class for all result classes below the MojoMojo::Schema::Result::* namespace.

=head1 LICENSE

This library is free software. You can redistribute it and/or modify
it under the same terms as Perl itself.

=head1 Methods

=head2 sqlt_deploy_hook

Set Database specific info to achieve UTF-8 support in the database we deploy to.

=cut

sub sqlt_deploy_hook {
    my ( $self, $sqlt_table ) = @_;
    $sqlt_table->extra(
        mysql_table_type => 'InnoDB',
        mysql_charset    => 'utf8'
    );
}

1;