NAME

DBIx::Result::Convert::JSONSchema::Type::MySQL - Mapping of MySQL field type to JSON property type

VERSION

0.01

SYNOPSIS

use DBIx::Result::Convert::JSONSchema::Type::MySQL;
my $type_map = DBIx::Result::Convert::JSONSchema::Type::MySQL->get_type_map;

DESCRIPTION

This module defines mapping between DBIx MySQL field types to JSON schema property types.

get_type_map

Return mapping of DBIx::Class:Result field name => JSON Schema field name.

# { decimal => 'number', time => 'string', ... }
my $map = DBIx::Result::Convert::Type::MySQL->get_type_map;

AUTHOR

malishew - malishew@cpan.org

LICENSE

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. If you would like to contribute documentation or file a bug report then please raise an issue / pull request:

https://github.com/Humanstate/p5-dbix-result-convert-jsonschema