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

Function readFile

src/Server/GRPCServer.cpp:146–152  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

144
145 /// Gets file's contents as a string, throws an exception if failed.
146 String readFile(const String & filepath)
147 {
148 Poco::FileInputStream ifs(filepath);
149 String res;
150 Poco::StreamCopier::copyToString(ifs, res);
151 return res;
152 }
153
154 /// Makes credentials based on the server config.
155 std::shared_ptr<grpc::ServerCredentials> makeCredentials(const Poco::Util::AbstractConfiguration & config)

Callers 8

makeCredentialsFunction · 0.70
numRowsMethod · 0.50
getReaderMethod · 0.50
numRowsMethod · 0.50
getReaderMethod · 0.50
getReaderMethod · 0.50
readFileMethod · 0.50
readFileMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected