Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Algebraic data retrieval with DBIx::Array

by metaperl (Curate)
on Sep 01, 2011 at 17:36 UTC ( [id://923676]=perlmeditation: print w/replies, xml ) Need Help??

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;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlmeditation [id://923676]
Front-paged by Arunbear
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (5)
As of 2024-03-19 09:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found