Skip to content

Commit

Permalink
feat(functions): Added concat_ws (#378)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexnortung authored Jul 31, 2024
1 parent 22424d5 commit fd2e3e3
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 fd2e3e3

Please sign in to comment.