++ed by:
YUUKI BINJOY KARUPA KEEDI DHOSS

11 PAUSE users
7 non-PAUSE users.

cho45 (さとう)
and 32 contributors

NAME

Teng::Plugin::BulkInsert - (DEPRECATED) Bulk insert helper

PROVIDED METHODS

$teng->bulk_insert($table_name, \@rows_data)

Accepts either an arrayref of hashrefs. each hashref should be a structure suitable for submitting to a Your::Model->insert(...) method.

insert many record by bulk.

example:

    Your::Model->bulk_insert('user',[
        {
            id   => 1,
            name => 'nekokak',
        },
        {
            id   => 2,
            name => 'yappo',
        },
        {
            id   => 3,
            name => 'walf443',
        },
    ]);