ClickHouse/src/Common/ShellCommandSettings.h

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

27 lines
705 B
C++
Raw Normal View History

#pragma once
#include <string>
namespace DB
{
enum class ExternalCommandStderrReaction
{
NONE, /// Do nothing.
2023-08-05 15:13:16 +00:00
LOG, /// Try to log all outputs of stderr from the external command.
THROW /// Throw exception when the external command outputs something to its stderr.
};
ExternalCommandStderrReaction parseExternalCommandStderrReaction(const std::string & config);
2023-08-05 15:13:16 +00:00
enum class ExternalCommandErrorExitReaction
{
NONE, /// Do nothing.
LOG_FIRST, /// Try to log first 1_KiB outputs of stderr from the external command.
LOG_LAST /// Same as above, but log last 1_KiB outputs.
};
ExternalCommandErrorExitReaction parseExternalCommandErrorExitReaction(const std::string & config);
}