- 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
- or download this
package Models;
use strict;
...
__PACKAGE__->connection(@connection_args);
__PACKAGE__->load_namespaces;
- or download this
package Models::Result::Translation;
use strict;
...
__PACKAGE__->set_primary_key("id");
1;
- 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() ];
- or download this
[...
{
'translator_id' => '99',
...
'id' => '31365',
'language_id' => 'zhCN'
},...]
- or download this
[...
{
'translator_id' => '99',
...
'id' => '38394',
'language_id' => 'zhCN'
}, ...]