The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

TaskPipe::Task_Record - record a record to the database

DESCRIPTION

TaskPipe::Task_Record extends TaskPipe::Task. It is the standard task which records a record to the database for TaskPipe. You specify can this task in your plan in the following way:

    # (tree format):

    task:
        _name: Record
        mode: insert
        values:
            column1: value1
            column2: value2

            # ...

mode is optional. If mode is omitted, records where the primary key exists will be updated, and will be inserted new otherwise (ie "update or create"). If mode is insert an error will be produced in the duplicate record situation.

AUTHOR

Tom Gracey <tomgracey@gmail.com>

COPYRIGHT AND LICENSE

Copyright (c) Tom Gracey 2018

TaskPipe is free software, licensed under

    The GNU Public License Version 3