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

NAME

Ambrosia::DataProvider::DBIDriver - an abstract class that realize Ambrosia::DataProvider::BaseDriver and provide connection to data bases throw DBI.

VERSION

version 0.010

DESCRIPTION

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

For more information see:

Ambrosia::DataProvider::Engine::DB::mysql
Ambrosia::DataProvider::Engine::DB::pg

PUBLIC METHODS

open_connection

Opens a connection. Returns handler.

close_connection

Closes a connection and clears a cache.

begin_transaction

Begins a transaction.

save_transaction

Saves a transaction.

cancel_transaction

Canceled a transaction (rollback) and clear cache.

reset

Converts an object to its initial state.

execute

Executes a request. Use for insert, update, delete.

next

Returns a next record from data source.

count

Returns a number of rows in data source with specific condition.

insert

Prepares an object for insert data into source.

last_insert_id

Returns a last inserted id.

delete

Prepares an object for delete record from source.

update

Prepares an object for update record in source.

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)