NAME

DBIx::QuickORM::Role::Type - Role defining the inflate/deflate type contract.

DESCRIPTION

Type classes (for example DBIx::QuickORM::Type::JSON and DBIx::QuickORM::Type::UUID) consume this role to convert column values between their database form and their inflated Perl form.

REQUIRED METHODS

$perl = $type->qorm_inflate(...)

Convert a raw database value into its inflated Perl form.

$raw = $type->qorm_deflate(...)

Convert an inflated value back to the form stored in the database.

$bool = $type->qorm_compare($a, $b)

Compare two values for equality.

$affinity = $type->qorm_affinity(...)

Return the storage affinity (string, numeric, binary, boolean).

$sql_type = $type->qorm_sql_type($dialect)

Return the SQL column type to use for the given dialect.

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/