version 0.02006
[dbsrgits/DBIx-Class-UUIDColumns.git] / lib / DBIx / Class / UUIDColumns / UUIDMaker / Win32API / GUID.pm
CommitLineData
773544fd 1package DBIx::Class::UUIDColumns::UUIDMaker::Win32API::GUID;
cb9fa024 2
3use strict;
4use warnings;
5
3469b243 6use base qw/DBIx::Class::UUIDColumns::UUIDMaker/;
cb9fa024 7use Win32API::GUID ();
8
9sub as_string {
10 return Win32API::GUID::CreateGuid();
11};
12
131;
14__END__
15
16=head1 NAME
17
773544fd 18DBIx::Class::UUIDColumns::UUIDMaker::Win32API::GUID - Create uuids using Win32API::GUID
cb9fa024 19
20=head1 SYNOPSIS
21
22 package Artist;
23 __PACKAGE__->load_components(qw/UUIDColumns Core DB/);
24 __PACKAGE__->uuid_columns( 'artist_id' );
25 __PACKAGE__->uuid_class('::Win32API::GUID');
26
27=head1 DESCRIPTION
28
773544fd 29This DBIx::Class::UUIDColumns::UUIDMaker subclass uses Win32API::GUID to
30generate uuid strings in the following format:
cb9fa024 31
32 098f2470-bae0-11cd-b579-08002b30bfeb
33
34=head1 METHODS
35
36=head2 as_string
37
38Returns the new uuid as a string.
39
40=head1 SEE ALSO
41
42L<Win32API::GUID>
43
44=head1 AUTHOR
45
46Chris Laco <claco@chrislaco.com>
47
48=head1 LICENSE
49
50You may distribute this code under the same terms as Perl itself.