1Workflow::Persister::DBUIs:e:rAuCtoonGterniebruWatoteredkdfIPldeo(rw3l:):DPoecrusmiesntteart:i:oDnBI::AutoGeneratedId(3)
2
3
4
6 Workflow::Persister::DBI::AutoGeneratedId - Pull IDs from databases
7 that autogenerate them
8
10 <persister name="MyPersister"
11 dsn="DBI:mysql:database=foo"
12 ...
13
15 Be able to pull an ID from a database or statement handle, or call a
16 DBI function to get the value.
17
18 Properties
19
20 from_handle
21
22 If you want to pull the value from a handle specify either 'database'
23 or 'statement' to specify what handle to pull it from. You must also
24 specify a value for 'handle_property'. For example, if you are using
25 MySQL this would be 'database'.
26
27 handle_property
28
29 Property to pull from handle specified in 'from_handle'. For example,
30 if you are using MySQL this would be 'mysql_insertid'.
31
32 func_property
33
34 Property to pass to the DBI 'func()' call to return the ID value. For
35 example, if you are using SQLite this would be 'last_insert_rowid'.
36
37 METHODS
38
39 #=head3 new
40
41 #=head3 pre_fetch_id
42
43 #=head3 post_fetch_id
44
46 Copyright (c) 2003-2004 Chris Winters. All rights reserved.
47
48 This library is free software; you can redistribute it and/or modify it
49 under the same terms as Perl itself.
50
52 Chris Winters <chris@cwinters.com>
53
54
55
56perl v5.8.8 2W0o0r7k-f0l4o-w2:5:Persister::DBI::AutoGeneratedId(3)