]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/OverIdx.pm
over: rename ->connect method to ->dbh
[public-inbox.git] / lib / PublicInbox / OverIdx.pm
index 9f4a56fbd4861b9978a3a3146317a42d597a95f1..c521464a7447cc5725f7c5db11b6bde56493cd34 100644 (file)
@@ -443,7 +443,7 @@ sub commit_lazy {
 sub begin_lazy {
        my ($self) = @_;
        return if $self->{txn};
-       my $dbh = $self->connect or return;
+       my $dbh = $self->dbh or return;
        $dbh->begin_work;
        # $dbh->{Profile} = 2;
        $self->{txn} = 1;
@@ -469,7 +469,7 @@ sub create {
                File::Path::mkpath(File::Basename::dirname($self->{filename}));
        }
        # create the DB:
-       PublicInbox::Over::connect($self);
+       PublicInbox::Over::dbh($self);
        $self->disconnect;
 }