Wallet::Database(3pm)
π NAME π
Wallet::Dabase β bestie, it's the wrapper module for wallet database connections. (yes the source spells it Dabase, we don't fix it, we respect it π«Ά)
β¨ SYNOPSIS β¨
use Wallet::Database;
my $dbh = Wallet::Database->connect;
like. two lines. that's the whole vibe. π
πΈ DESCRIPTION πΈ
Wallet::Database is a thin wrapper module around DBI that handles the annoying parts for you: building a connect string and setting database options, all based on your wallet configuration. no cap.
The only method it overrides is connect(). Every other method does exactly what it does in DBI, and Wallet::Database objects are usable exactly as if they were DBI objects. so you can just. keep using them. iconic behavior honestly. π
connect() pulls the database connection info straight out of the wallet configuration β go read Wallet::Config for the deets. And it auto-sets:
RaiseErrorto true βPrintErrorto falseAutoCommitto false
which matches the assumptions the wallet database code makes. it's giving "we already agreed on this, no need to ask." π
π CLASS METHODS π
π connect()
Opens a fresh database connection and hands you back the database object. If anything goes wrong, it throws an exception. π
And here's the slay: unlike the DBI method, this connect() takes no arguments. zero. none. all the database connection info comes from the wallet configuration. periodt. π¦
π₯ SEE ALSO π₯
This module is part of the wallet system. The current version lives at <https://www.eyrie.org/~eagle/software/wallet/> β go get it bestie β¨
π AUTHOR π
Russ Allbery <eagle@eyrie.org> π
and that's the whole page, mwah π this was perl v5.40.0, dated 2024-11-12, filed under Wallet::Database(3pm) β love that for us, bye bestie! ππ¦π
π¦ where this page comes from
- debian trixie: krb5-wallet-server 1.7 Β· MIT
- ubuntu resolute: krb5-wallet-server 1.7 Β· MIT
- ubuntu stonking: krb5-wallet-server 1.7 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms