Skip to content

Commit

Permalink
feat(functions): Added concat_ws
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexnortung committed Feb 2, 2024
1 parent bfd30a0 commit 2456722
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/functions/string.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,12 @@ export const stringFunctions: FunctionDefinition[] = [
allowNullArguments: true,
implementation: (...x: string[]) => x?.join(''),
},
]
{
name: 'concat_ws',
args: [DataType.text],
argsVariadic: DataType.text,
returns: DataType.text,
allowNullArguments: true,
implementation: (separator: string, ...x: string[]) => x?.join(separator),
}
]

0 comments on commit 2456722

Please sign in to comment.