GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Amon2::DBI(3) User Contributed Perl Documentation Amon2::DBI(3)

Amon2::DBI - Simple DBI wrapper

    use Amon2::DBI;

    my $dbh = Amon2::DBI->connect(...);

Amon2::DBI is a simple DBI wrapper. It provides better usability for you.

Set AutoInactiveDestroy to true.
If your DBI version is higher than 1.614, Amon2::DBI set AutoInactiveDestroy as true.
Set sqlite_unicode and mysql_enable_utf8 and pg_enable_utf8 automatically
Amon2::DBI set sqlite_unicode and mysql_enable_utf8 automatically. If using DBD::Pg version less than 2.99, pg_enable_utf8 too.
Nested transaction management.
Amon2::DBI supports nested transaction management based on RAII like DBIx::Class or DBIx::Skinny. It uses DBIx::TransactionManager internally.
Raising error when you occurred.
Amon2::DBI raises exception if your $dbh occurred exception.

Amon2::DBI is-a DBI. And Amon2::DBI provides some additional methods.
"$dbh->do_i(@args);"
Amon2::DBI uses SQL::Interp as a SQL generator. Amon2::DBI generate SQL using @args and do it.
"$dbh->insert($table, \%row);"
It's equivalent to following statement:

    $dbh->do_i(qq{INSERT INTO $table }, \%row);
    

Tokuhiro Matsuno <tokuhirom AAJKLFJEF@ GMAIL COM>

Copyright (C) Tokuhiro Matsuno

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

2022-04-09 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.