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 /lib/PublicInbox/Xapcmd.pm | |
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 'lib/PublicInbox/Xapcmd.pm')
-rw-r--r-- | lib/PublicInbox/Xapcmd.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/Xapcmd.pm b/lib/PublicInbox/Xapcmd.pm index fffac99c..6a74daf9 100644 --- a/lib/PublicInbox/Xapcmd.pm +++ b/lib/PublicInbox/Xapcmd.pm @@ -37,7 +37,7 @@ sub commit_changes ($$$$) { defined $new or die "BUG: $over exists when culling v2"; $over = PublicInbox::Over->new($over); my $tmp_over = "$new/over.sqlite3"; - $over->connect->sqlite_backup_to_file($tmp_over); + $over->dbh->sqlite_backup_to_file($tmp_over); $over = undef; $over_chg = 1; } |