Helper function to split schema.table_name
| 63 | |
| 64 | // Helper function to split schema.table_name |
| 65 | std::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 |
| 75 | nd::array get_default_value_for_null(Oid base_typeid) |
no test coverage detected