ObjectDBI
view release on metacpan or search on metacpan
lib/ObjectDBI.pm view on Meta::CPAN
'dbiuri' => DBI database connection URI.
'dbiuser' => DBI database connection user.
'dbipass' => DBI database connection password.
'dbioptions' => DBI database connection options.
'table' => Table name used ('perlobjects' is the default).
'sequence' => Sequence name for easily retrieving new IDs.
'sequencesql' => Sequence SQL for retrieving a new ID.
'sequencefnc' => A function ref to be used to retrieve a new ID.
'overwrite' => Overwrite objects of the same type and name.
'chunksize' => A number defining at what length values will get split.
'debug' => Setting it at anything will make STDERR a busy stream.
About sequences: the first available method given will be used. So please
do yourself a favour, avoid confusion, and use only one of the available
methods out of 'sequence', 'sequencesql' and 'sequencefnc'.
About chunksize: the default value is 255. If you set it to zero, that'll
be interpreted as 'infinite'. If you set it to anything else, make sure
it matches the storage size of the 'obj_value' field in the RDBMS.
Also about both sequences and chunksize: in the case of postgres and oracle,
( run in 0.301 second using v1.01-cache-2.11-cpan-87723dcf8b7 )