From 1814b1a0b78770c8ba9e7a0adef56c4c324d4064 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 26 Aug 2020 08:17:38 +0000 Subject: 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. --- scripts/dupe-finder | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') 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 ($) { -- cgit v1.2.3-24-ge0c7