about summary refs log tree commit homepage
path: root/lib/PublicInbox/Inbox.pm
diff options
context:
space:
mode:
authorEric Wong <e@yhbt.net>2020-08-26 08:17:38 +0000
committerEric Wong <e@yhbt.net>2020-08-27 10:57:24 +0000
commit1814b1a0b78770c8ba9e7a0adef56c4c324d4064 (patch)
tree8bf80366cc71b199f9a99a4cc5cb6a0d8d223dff /lib/PublicInbox/Inbox.pm
parent71a27b7f45140194566e945ee7957e81abbc67bf (diff)
downloadpublic-inbox-1814b1a0b78770c8ba9e7a0adef56c4c324d4064.tar.gz
over: rename ->connect method to ->dbh
`->connect' is confused with the perlfunc for the `connect(2)'
syscall, and also `DBI->connect'.  Since SQLite doesn't use
sockets, the word "connect" needlessly confuses me.  Give
it a short name to match the field name we use for it, which
also matches the variable name used by the DBI(3pm) and
DBD::SQLite(3pm) manpages.
Diffstat (limited to 'lib/PublicInbox/Inbox.pm')
-rw-r--r--lib/PublicInbox/Inbox.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/Inbox.pm b/lib/PublicInbox/Inbox.pm
index 55e546e1..241001d3 100644
--- a/lib/PublicInbox/Inbox.pm
+++ b/lib/PublicInbox/Inbox.pm
@@ -211,7 +211,7 @@ sub over ($) {
         my $srch = search($self, 1) or return;
         $self->{over} //= eval {
                 my $over = $srch->{over_ro};
-                $over->connect; # may fail
+                $over->dbh; # may fail
                 $over;
         }
 }