| 170 | } |
| 171 | |
| 172 | StoredFunctionPtr FunctionDatabase::function(Json const& configOrName) const { |
| 173 | if (configOrName.type() == Json::Type::String) |
| 174 | return m_functions.get(configOrName.toString()); |
| 175 | else |
| 176 | return make_shared<StoredFunction>(parametricFunctionFromConfig(configOrName)); |
| 177 | } |
| 178 | |
| 179 | StoredFunction2Ptr FunctionDatabase::function2(Json const& configOrName) const { |
| 180 | if (configOrName.type() == Json::Type::String) |
no test coverage detected