OmniSciDB  a5dc49c757
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TableFunctionsFactory_linker Namespace Reference

Classes

class  BaseGenerateFiles
 
class  GenerateTemplateFiles
 
class  GenerateAddTableFunctionsFiles
 

Functions

def get_existing_file_content
 

Function Documentation

def TableFunctionsFactory_linker.get_existing_file_content (   filepath)

Definition at line 8 of file TableFunctionsFactory_linker.py.

References join(), and heavyai.open().

Referenced by TableFunctionsFactory_linker.BaseGenerateFiles._generate_files().

8 
9 def get_existing_file_content(filepath):
10  if not os.path.exists(filepath):
11  return ""
12 
13  with open(filepath, "r") as f:
14  return "".join(f.readlines())
15 
std::string join(T const &container, std::string const &delim)
int open(const char *path, int flags, int mode)
Definition: heavyai_fs.cpp:66

+ Here is the call graph for this function:

+ Here is the caller graph for this function: