The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Yancy::Backend::Role::MojoAsync - A role to give a relational backend relational capabilities

VERSION

version 1.029

SYNOPSIS

    package Yancy::Backend::RDBMS;
    with 'Yancy::Backend::Role::MojoAsync';

DESCRIPTION

This role provides utility methods to give backend classes, that compose in Yancy::Backend::Role::Relational, implementing asynchronous database-access methods.

It is separate from that role in order to be available only for classes that do not use Yancy::Backend::Role::Sync, avoiding clashes.

REQUIRED METHODS

The composing class must implement the following methods either as constants or attributes:

mojodb

The value must be a relative of Mojo::Pg et al.

METHODS

delete_p

Implements "delete_p" in Yancy::Backend.

get_p

Implements "get_p" in Yancy::Backend.

list_p

Implements "list_p" in Yancy::Backend.

set_p

Implements "set_p" in Yancy::Backend.

SEE ALSO

Yancy::Backend

AUTHOR

Doug Bell <preaction@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2019 by Doug Bell.

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