about summary refs log tree commit homepage
path: root/scripts
diff options
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 /scripts
parent71a27b7f45140194566e945ee7957e81abbc67bf (diff)
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 'scripts')
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/dupe-finder b/scripts/dupe-finder
index 6f873b6e..04714cbd 100644
--- a/scripts/dupe-finder
+++ b/scripts/dupe-finder
@@ -21,7 +21,7 @@ if (index($repo, '@') > 0) {
 $ibx or die "No inbox";
 $ibx->search or die "search not available for inbox";
-my $dbh = $ibx->search->{over_ro}->connect;
+my $dbh = $ibx->search->{over_ro}->dbh;
 my $over = PublicInbox::Over->new($dbh->sqlite_db_filename);
 sub emit ($) {