1Workflow::Persister::DBUIs:e:rAuCtoonGterniebruWatoteredkdfIPldeo(rw3l:):DPoecrusmiesntteart:i:oDnBI::AutoGeneratedId(3)
2
3
4

NAME

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

VERSION

10       This documentation describes version 1.59 of this package
11

SYNOPSIS

13        <persister name="MyPersister"
14                   dsn="DBI:mysql:database=foo"
15                   ...
16

DESCRIPTION

18       Be able to pull an ID from a database or statement handle, or call a
19       DBI function to get the value.
20
21   Properties
22       from_handle
23
24       If you want to pull the value from a handle specify either 'database'
25       or 'statement' to specify what handle to pull it from. You must also
26       specify a value for 'handle_property'. For example, if you are using
27       MySQL this would be 'database'.
28
29       handle_property
30
31       Property to pull from handle specified in 'from_handle'. For example,
32       if you are using MySQL this would be 'mysql_insertid'.
33
34       func_property
35
36       Property to pass to the DBI 'func()' call to return the ID value. For
37       example, if you are using SQLite this would be 'last_insert_rowid'.
38
39   ATTRIBUTES
40       log
41
42       Contains the logger object associated with this instance.
43
44   METHODS
45       new ( \%params )
46
47       This method instantiates a class for retrieval of auto-generated ids
48       from a DBI based persistance entity.
49
50       It takes a hashref containing keys matching the properties outlines in
51       the section above or throws Workflow::Exceptions if these are not
52       defined.
53
54       Returns instantiated object upon success.
55
56       pre_fetch_id
57
58       This is a dummy method, use "post_fetch_id"
59
60       post_fetch_id
61
62       Returns a unique sequence id from a database.
63
64       Takes a two parameters, a DBI database handle and a statement handle
65
66       Returns a single value, a integer representing a sequence id from the
67       provided database handle, based on the statement handle.
68
70       Copyright (c) 2003-2022 Chris Winters. All rights reserved.
71
72       This library is free software; you can redistribute it and/or modify it
73       under the same terms as Perl itself.
74
75       Please see the LICENSE
76

AUTHORS

78       Please see Workflow
79
80
81
82perl v5.34.0                      2W0o2r2k-f0l2o-w0:6:Persister::DBI::AutoGeneratedId(3)
Impressum