Replies: 1 comment 3 replies
-
You might be able to use the $modify query operator with arg (e.g. geom) and using KnexJS to change the query to your needs before it runs. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'd like to take an incoming value, and wrap it in a postgres function when a value gets inserted in the database. Use case for this is to perform the heavy lifting of converting values in the database itself rather than my app.
Example:
What I'd like sql to look like:
Is there a good way to do this in objection? Or would this be something perhaps I'd need on to add as a database trigger?
Beta Was this translation helpful? Give feedback.
All reactions