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

NAME

Ambrosia::DataProvider::ResourceDriver - a class realize Ambrosia::DataProvider::BaseDriver and provide connection to resources storage.

VERSION

version 0.010

SYNOPSIS

    use Ambrosia::DataProvider;
    my $confDS = {
        Resource => [
            {
                engine_name => 'Resource::Hash',
                source_name  => 'application_name',
                engine_params => {
                    path => $PATH_ROOT . '/Application/Resource/Resources.pm'
                }
            },
        ]
    };

    instance Ambrosia::Storage(application_name => $confDS);
    Ambrosia::DataProvider::assign 'application_name';

DESCRIPTION

Ambrosia::DataProvider::DBIDriver is a class realize Ambrosia::DataProvider::BaseDriver and provide connection to data bases throw DBI.

For more information see:

Ambrosia::DataProvider::Engine::Resource::Hash

SUBROUTINES/METHODS

cache

Returns cache.

open_connection (Wraper. Translate request to engine.)

Opens a connection. Returns a handler.

close_connection (Wraper. Translate request to engine.)

Closes a connection and clears a cache.

begin_transaction (Wraper. Translate request to engine.)

Begins a transaction and initializes a cache

save_transaction (Wraper. Translate request to engine.)

Saves a transaction.

cancel_transaction (Wraper. Translate request to engine.)

Canceled a transaction (rollback) and clears a cache.

CQL

Returns an adapter for Ambrosia::QL that can translate CQL to Resource request.

DEPENDENCIES

Ambrosia::CQL::toResource; Ambrosia::Util::Container;

THREADS

Not tested.

BUGS

Please report bugs relevant to Ambrosia to <knm[at]cpan.org>.

COPYRIGHT AND LICENSE

Copyright (C) 2010-2012 Nickolay Kuritsyn. All rights reserved.

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

AUTHOR

Nikolay Kuritsyn (knm[at]cpan.org)