NAME

Document::Transform::Role::Backend - Interface role to be consumed by backends

VERSION

version 1.110400

SYNOPSIS

package MyBackend;
use Moose;

sub fetch_document { }
sub fetch_transform { }
sub store_document { }
sub store_transform { }

with 'Document::Transform::Role::Backend';
1;

DESCRIPTION

Want to manage the backend to some other NoSQL database? Then you'll want to consume this role and implement the needed functions. Generally, the store functions should take data structures that conform the Types listed in Document::Transform::Types and the fetch methods should return those as well.

ROLE_REQUIRES

fetch_transform

This method must accept a string key and should return a "Transform" in Document::Transform::Types

fetch_document

This method must accept a string key and should return a "Document" in Document::Transform::Types

store_transform

This method should accept a "Transform" in Document::Transform::Types and store it in the backend.

store_document

This method should accept a "Document" in Document::Transform::Types and store it in the backend.

AUTHOR

Nicholas R. Perez <nperez@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2010 by Infinity Interactive.

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