From 9acc3e7b74f2ab6d2580bf5d66ec3dc593c0de4e 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..b5fb3a89 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), + }, +]