Chris Winters > Workflow-0.17 > Workflow::Persister::DBI::AutoGeneratedId

Download:
Workflow-0.17.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  6
Open  1
View/Report Bugs
Module Version: 1.05   Source   Latest Release: Workflow-1.40

NAME ^

Workflow::Persister::DBI::AutoGeneratedId - Pull IDs from databases that autogenerate them

SYNOPSIS ^

 <persister name="MyPersister"
            dsn="DBI:mysql:database=foo"
            ...

DESCRIPTION ^

Be able to pull an ID from a database or statement handle, or call a DBI function to get the value.

Properties

from_handle

If you want to pull the value from a handle specify either 'database' or 'statement' to specify what handle to pull it from. You must also specify a value for 'handle_property'. For example, if you are using MySQL this would be 'database'.

handle_property

Property to pull from handle specified in 'from_handle'. For example, if you are using MySQL this would be 'mysql_insertid'.

func_property

Property to pass to the DBI 'func()' call to return the ID value. For example, if you are using SQLite this would be 'last_insert_rowid'.

COPYRIGHT ^

Copyright (c) 2003-2004 Chris Winters. All rights reserved.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

AUTHORS ^

Chris Winters <chris@cwinters.com>

syntax highlighting: