From 3feb164c75dc3d2168c38c07505a11c40988497f Mon Sep 17 00:00:00 2001 From: Nikolay Degterinsky Date: Tue, 14 Feb 2023 22:54:30 +0000 Subject: [PATCH] Add doc --- src/Functions/generateULID.cpp | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/Functions/generateULID.cpp b/src/Functions/generateULID.cpp index 648754ddaa2..a8a2a2174cb 100644 --- a/src/Functions/generateULID.cpp +++ b/src/Functions/generateULID.cpp @@ -74,7 +74,19 @@ public: REGISTER_FUNCTION(GenerateULID) { - factory.registerFunction(); + factory.registerFunction( + { + R"( +Generates a Universally Unique Lexicographically Sortable Identifier (ULID). +This function takes an optional argument, the value of which is discarded to generate different values in case the function is called multiple times. +The function returns a value of type FixedString(26). +)", + Documentation::Examples{ + {"ulid", "SELECT generateULID()"}, + {"multiple", "SELECT generateULID(1), generateULID(2)"}}, + Documentation::Categories{"ULID"} + }, + FunctionFactory::CaseSensitive); } }