Help for this page

Select Code to Download


  1. or download this
      script/stat_create.pl model DB DBIC::Schema DB::Schema create=static
    + dbi:Pg:dbname=stat '' '' '{AutoCommit => 0}'
    
  2. or download this
      |-- lib
      |   |-- DB
    ...
      |   |   |   |-- ...
      |   |   |   `-- ClassN.pm
      |   |   `-- Schema.pm
    
  3. or download this
    package DB::Schema::Add;
    
    ...
      ->name(\'(select 10*10 as number)');
    
    1;
    
  4. or download this
      my ($res) = $c->model('Add')->all;
      my $number = $res->number;
    
  5. or download this
    package DB::Schema::Add;
    
    ...
      ->name(\'(select ?::integer * ?::integer as number)');
    
    1;
    
  6. or download this
      my ($res) = $c->model('Add')->search({}, {bind => [5, 7]});
      my $body = $res->number;