We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
regexp_replace
Here's the implementation that worked for me. I am unsure if there are some other things to be aware of between postgres and js when doing regex.
I just think it would be nice to have it out of the box from pg-mem :)
pg-mem
db.public.registerFunction({ name: 'regexp_replace', args: [DataType.text, DataType.text, DataType.text, DataType.text], returns: DataType.text, implementation: (x: string, pattern: string, replacement: string, flags: string) => x?.replace(new RegExp(pattern, flags), replacement), });
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Here's the implementation that worked for me. I am unsure if there are some other things to be aware of between postgres and js when doing regex.
I just think it would be nice to have it out of the box from
pg-mem
:)The text was updated successfully, but these errors were encountered: