From 2456722ac536c3fd8f1898d4a40bba2416a79255 Mon Sep 17 00:00:00 2001 From: Alexander Nortung Date: Fri, 2 Feb 2024 15:14:39 +0100 Subject: [PATCH] feat(functions): Added concat_ws --- src/functions/string.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/functions/string.ts b/src/functions/string.ts index f695410b..e2961d35 100644 --- a/src/functions/string.ts +++ b/src/functions/string.ts @@ -21,4 +21,12 @@ export const stringFunctions: FunctionDefinition[] = [ allowNullArguments: true, implementation: (...x: string[]) => x?.join(''), }, -] \ No newline at end of file + { + name: 'concat_ws', + args: [DataType.text], + argsVariadic: DataType.text, + returns: DataType.text, + allowNullArguments: true, + implementation: (separator: string, ...x: string[]) => x?.join(separator), + } +]