logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Wallet::Dabase - Wrapper module for wallet database connections

Author

       Russ Allbery <eagle@eyrie.org>

perl v5.40.0                                       2024-11-12                              Wallet::Database(3pm)

Class Methods

connect()
           Opens  a  new  database  connection  and  returns  the  database  object.   On any failure, throws an
           exception.  Unlike the DBI method, connect() takes no arguments; all database connection  information
           is derived from the wallet configuration.

Description

       Wallet::Database is a thin wrapper module around DBI that takes care of building a connect string and
       setting database options based on wallet configuration.  The only overridden method is connect().  All
       other methods should work the same as in DBI and Wallet::Database objects should be usable exactly as if
       they were DBI objects.

       connect() will obtain the database connection information from the wallet configuration; see
       Wallet::Config for more details.  It will also automatically set the RaiseError attribute to true and the
       PrintError and AutoCommit attributes to false, matching the assumptions made by the wallet database code.

Name

       Wallet::Dabase - Wrapper module for wallet database connections

See Also

DBI(3), Wallet::Config(3)

       This   module   is   part   of   the   wallet   system.    The   current   version   is   available  from
       <https://www.eyrie.org/~eagle/software/wallet/>.

Synopsis

           use Wallet::Database;
           my $dbh = Wallet::Database->connect;

See Also