Help for this page

Select Code to Download


  1. or download this
    CREATE TABLE `translation` (
      `id` int(10) NOT NULL auto_increment,
      `section_id` int(11) NOT NULL,
    ...
      KEY `index_translator` (`translator_id`),
      FULLTEXT KEY `fulltext_value` (`value`)
    ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC
    
  2. or download this
    package Models;
    
    use strict;
    ...
    
    __PACKAGE__->connection(@connection_args);
    __PACKAGE__->load_namespaces;
    
  3. or download this
    package Models::Result::Translation;
    
    use strict;
    ...
    __PACKAGE__->set_primary_key("id");
    
    1;
    
  4. or download this
    #!/usr/bin/perl -w
    use Data::Dumper;
    use strict;
    use Models;
    
    print STDERR Dumper [ map{ { $_->get_columns } } Models->resultset('Tr
    +anslation')->search({ language_id => 'zhCN'})->all() ];
    
  5. or download this
    [...
    {
                'translator_id' => '99',
    ...
                'id' => '31365',
                'language_id' => 'zhCN'
              },...]
    
  6. or download this
    [...
    {
                'translator_id' => '99',
    ...
                'id' => '38394',
                'language_id' => 'zhCN'
              }, ...]