Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Background
I've been using pg-mem with TypeOrm and there are some functions required by TypeOrm which pg-mem does not implement:
exists
andobj_description
, I've implemented them on my project withregisterFunction
but since they are required by the ORM and there's an adapter for it I though it would be nice to upstream it so that others don't have to implement them.I've also included the built-in
timezone
function, which is not required by the ORM but I was also using it on my project.I've included the moment-timezone package as the project already included the moment package, if you are against it let me know and I can remove it.
What this pull request does
exists
functionobj_description
function (I'm simply returningnull
, with the reason being that the comments won't affect the database, if you disagree I can implement the full functionality of storing/updating/removing comments)timezone
function (includes themoment-timezone
package to assist with timezone manipulation)