Dave Rolsky > Alzabo > Alzabo::Runtime::InsertHandle

Download:
Alzabo-0.92.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  4
Open  1
View/Report Bugs
Source  

NAME ^

Alzabo::Runtime::InsertHandle - A handle representing an insert

SYNOPSIS ^

 my $handle =
     $table->insert_handle
         ( columns => [ $table->columns( 'name', 'job' ) ] );

 my $faye_row =
     $handle->insert( values =>
                      { name => 'Faye',
                        job => 'HK Pop Chanteuse' } );

 my $guesch_row =
     $handle->insert( values =>
                      { name => 'Guesch',
                        job => 'French Chanteuse and Dancer' } );

DESCRIPTION ^

This object is analogous to a DBI statement handle, and can be used to insert multiple rows into a table more efficiently than repeatedly calling Alzabo::Runtime::Table->insert().

METHODS ^

Objects of this class provide one public method:

insert

This method is used to insert a new row into a table.

It accepts the following parameters:

This method returns a new Alzabo::Runtime::Row object.

Throws: Alzabo::Exception::Logic, Alzabo::Exception::Params

syntax highlighting: