#pragma once

#include <yandex/maps/wiki/revision/common.h>
#include <maps/libs/pgpool/include/pgpool3.h>
#include <string>
#include <memory>

namespace maps::wiki::common {

using LogFunc = std::function<void (const std::string &)>;

pgpool3::TransactionHandle
getReadTransactionForCommit(
    pgpool3::Pool& pool,
    revision::DBID branchId,
    revision::DBID commitId,
    const LogFunc& logFunc);

} // namespace maps::wiki::common
