mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 07:31:57 +00:00
Addition to prev. revision [#METR-2944].
This commit is contained in:
parent
3a6208c6d0
commit
03ed8fc58e
@ -28,6 +28,7 @@ public:
|
||||
FunctionPtr get(const String & name, const Context & context) const; /// Throws an exception if not found.
|
||||
FunctionPtr tryGet(const String & name, const Context & context) const; /// Returns nullptr if not found.
|
||||
|
||||
/// No locking, you must register all functions before usage of get, tryGet.
|
||||
template <typename F> void registerFunction()
|
||||
{
|
||||
static_assert(std::is_same<decltype(&F::create), Creator>::value, "F::create has incorrect type");
|
||||
|
Loading…
Reference in New Issue
Block a user