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

Function readFile

src/Server/GRPCServer.cpp:171–177  ·  view source on GitHub ↗

Gets file's contents as a string, throws an exception if failed.

Source from the content-addressed store, hash-verified

169
170 /// Gets file's contents as a string, throws an exception if failed.
171 String readFile(const String & filepath)
172 {
173 Poco::FileInputStream ifs(filepath);
174 String res;
175 Poco::StreamCopier::copyToString(ifs, res);
176 return res;
177 }
178
179 /// Makes credentials based on the server config.
180 std::shared_ptr<grpc::ServerCredentials> makeCredentials(const Poco::Util::AbstractConfiguration & config)

Callers 13

makeCredentialsFunction · 0.70
readFileIfExistsMethod · 0.50
loadIndexMethod · 0.50
loadRowsCountMethod · 0.50
copyFileMethod · 0.50
readFileIfExistsMethod · 0.50
checkAccessImplMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected