MCPcopy Create free account
hub / github.com/activeloopai/deeplake / split_table_name

Function split_table_name

cpp/deeplake_pg/table_storage.cpp:65–72  ·  view source on GitHub ↗

Helper function to split schema.table_name

Source from the content-addressed store, hash-verified

63
64// Helper function to split schema.table_name
65std::pair<std::string, std::string> split_table_name(const std::string& full_name)
66{
67 auto dot_pos = full_name.find('.');
68 if (dot_pos == std::string::npos) {
69 return {"public", full_name}; // Default to public schema if not specified
70 }
71 return {full_name.substr(0, dot_pos), full_name.substr(dot_pos + 1)};
72}
73
74// Helper function to get default value for NULL numeric/scalar columns
75nd::array get_default_value_for_null(Oid base_typeid)

Callers 4

save_table_metadataMethod · 0.85
load_table_metadataMethod · 0.85
create_tableMethod · 0.85
drop_tableMethod · 0.85

Calls 1

findMethod · 0.45

Tested by

no test coverage detected