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

Function readFile

src/Backups/BackupEntryFromSmallFile.cpp:14–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12namespace
13{
14 String readFile(const String & file_path, const ReadSettings & read_settings)
15 {
16 auto buf = createReadBufferFromFileBase(file_path, read_settings);
17 String s;
18 readStringUntilEOF(s, *buf);
19 return s;
20 }
21
22 String readFile(const DiskPtr & disk, const String & file_path, const ReadSettings & read_settings, bool copy_encrypted)
23 {

Callers 5

copyFileToDiskMethod · 0.70
copyFileToDiskMethod · 0.70
fileContentsEqualMethod · 0.70
readFileMethod · 0.70

Calls 4

readStringUntilEOFFunction · 0.85
readEncryptedFileMethod · 0.45
readFileMethod · 0.45

Tested by

no test coverage detected