Help for this page

Select Code to Download


  1. or download this
    # DBIx::Array
    sub single_row_list {
    ...
          $simple->select( film => [qw(title description)], \%where ) )->l
    +ist;
    
    }
    
  2. or download this
    # current API
     my $count =$dbx->delete( "DELETE from table WHERE id > 22" );
    
    # ideal API
     my $count =$dbx->count( "DELETE from table WHERE id > 22" );
    
  3. or download this
    $object->sql$RESULT$STRUCT
    
  4. or download this
    # FIELD FROM DB to PERL SCALAR
    my $scalar = $da->field_scalar; 
    ...
    
    # ROWS FROM DB to PERL ARRAY OF HASHREFS
    my @rows = $da->rows_arraysofhash;
    
  5. or download this
    use strict;
    use warnings;
    ...
    
    1;