NAME

DBIx::QuickORM::Type::UUID - UUID inflate/deflate type.

DESCRIPTION

A DBIx::QuickORM::Role::Type implementation for UUID columns. Values inflate to the canonical hyphenated string form. Deflation honors the column affinity: string produces the hyphenated form, binary produces the packed 16-byte form.

qorm_affinity picks string for native uuid types (and by default), binary for binary/blob storage. qorm_sql_type uses a native uuid type when available, otherwise VARCHAR(36). When registered for autofill this type claims the uuid SQL type and any column whose name contains "uuid".

new returns a fresh v7 UUID string; it is handy as a Perl default for a UUID column.

SOURCE

The source code repository for DBIx::QuickORM can be found at https://github.com/exodist/DBIx-QuickORM.

MAINTAINERS

Chad Granum <exodist@cpan.org>

AUTHORS

Chad Granum <exodist@cpan.org>

COPYRIGHT

Copyright Chad Granum <exodist7@gmail.com>.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

See https://dev.perl.org/licenses/