DBIx::Class::Storage::DBI::UniqueIdentifier(3) | User Contributed Perl Documentation | DBIx::Class::Storage::DBI::UniqueIdentifier(3) |
DBIx::Class::Storage::DBI::UniqueIdentifier - Storage component for RDBMSes supporting GUID types
This is a storage component for databases that support GUID types such as "uniqueidentifier", "uniqueidentifierstr" or "guid".
GUIDs are generated automatically for PK columns with a supported data_type, as well as non-PK with auto_nextval set.
The composing class must set "new_guid" to the method used to generate a new GUID. It can also set it to "undef", in which case the user is required to set it, or a runtime error will be thrown. It can be:
For example:
$schema->storage->new_guid(sub { Data::GUID->new->as_string });
Check the list of additional DBIC resources.
This module is free software copyright by the DBIx::Class (DBIC) authors. You can redistribute it and/or modify it under the same terms as the DBIx::Class library.
2017-12-08 | perl v5.34.0 |