Name
alloc_nextkey — allocate the next new unique primary key for the database
table specified
Synopsis
use Wacs;
use Wacs::WacsStd;
scalar alloc_nextkey( | table_name, | |
| primary_key_fieldname, | |
| dbhandle) ; | |
scalar table_name
;
scalar primary_key_fieldname
;
scalar dbhandle
;
Summary
The alloc_nextkey
function simply returns the
next available value for creating a new record in the specified table.
It's rather simplistic and can be caught out by race conditions, but it
mostly gives you a valid numeric primary key for the table concerned.
Availability
As a collection administration function, alloc_nextkey
is currently only available in perl.