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

Method close

src/Client/ReplxxLineReader.cpp:171–179  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

169 }
170
171 void close()
172 {
173 if (fd == -1)
174 return;
175
176 if (0 != ::close(fd))
177 throw std::runtime_error(fmt::format("Cannot close temporary file {}: {}", path, errnoToString()));
178 fd = -1;
179 }
180
181 void write(const std::string & data)
182 {

Callers 6

convertHistoryFileFunction · 0.45
openEditorMethod · 0.45
cancelMethod · 0.45
resetOutputMethod · 0.45

Calls 3

errnoToStringFunction · 0.85
closeFunction · 0.50
formatFunction · 0.50

Tested by

no test coverage detected