diff options
author | Eric Wong <e@yhbt.net> | 2020-08-26 08:17:38 +0000 |
---|---|---|
committer | Eric Wong <e@yhbt.net> | 2020-08-27 10:57:24 +0000 |
commit | 1814b1a0b78770c8ba9e7a0adef56c4c324d4064 (patch) | |
tree | 8bf80366cc71b199f9a99a4cc5cb6a0d8d223dff /scripts | |
parent | 71a27b7f45140194566e945ee7957e81abbc67bf (diff) | |
download | public-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 'scripts')
-rw-r--r-- | scripts/dupe-finder | 2 |
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 ($) { |