MCPcopy Create free account
hub / github.com/ClickHouse/ClickHouse / isStdinNotEmptyAndValid

Function isStdinNotEmptyAndValid

src/Client/ClientBase.cpp:1953–1965  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1951namespace
1952{
1953bool isStdinNotEmptyAndValid(ReadBuffer & std_in)
1954{
1955 try
1956 {
1957 return !std_in.eof();
1958 }
1959 catch (const Exception & e)
1960 {
1961 if (e.code() == ErrorCodes::CANNOT_READ_FROM_FILE_DESCRIPTOR)
1962 return false;
1963 throw;
1964 }
1965}
1966}
1967
1968

Callers 3

processInsertQueryMethod · 0.85
sendDataMethod · 0.85

Calls 2

eofMethod · 0.45
codeMethod · 0.45

Tested by

no test coverage detected