Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^5: DB persistence framework for Perl Classes

by tadamec (Beadle)
on Oct 18, 2004 at 01:40 UTC ( [id://400024]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $item = db::Inventory::Item->retrieve( 15 );
    if( $item ) {
      $item->quantity( 15 );
    }
    
  2. or download this
    -- Oracle: 
    INSERT INTO my_table 
    ...
    -- Postgres:
    INSERT INTO my_table
    VALUES( nextval( 'my_sequence' ), 'Some Value' );
    
  3. or download this
    --MySQL
    INSERT INTO my_table( seq_field, val_field )
    ...
    INSERT INTO my_table( val_field )
    VALUES ( 'Some Value' );
    SELECT SCOPE_IDENTITY();
    
  4. or download this
    my $newRecord = db::Table->create( { val_field => 'Some Value' } );
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://400024]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (2)
As of 2024-06-16 08:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.