-
Notifications
You must be signed in to change notification settings - Fork 376
New issue
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
Allow property.select to override the property field name. #375
Conversation
This is a generic way to address dresende#273 Important: property.select can be a function, whose return value won't be escaped.
This sets a default 'select' for custom types, see: dresende#375
I would call it something like |
Yes, it kills two birds with one stone.
|
I haven't looked at any node-orm2 code so I can't comment on the content of this PR, but I am interested in getting this feature. |
@dxg I agree with you, I would prefer something like |
We have the concept of custom datatypes - which I think covers # 2. See this test. Point # 1 sounds like a definite one for the todo list. |
While i understand the "datastoreSelect" function looks a bit like a trick, the fact it allows more than just |
This sets a default 'select' for custom types, see: dresende#375
How can I upvote this commit? ;) Possibility of using above mentioned pair of ST_AsGeoJSON() and ST_GeomFromGeoJSON() functions over column in table is exactly what I need. It will be great to make it public. |
I've added this to the next milestone. |
@kapouer , @unibasil and any other PostGIS users out there, please install the
(you may need to There is a sample test showing the new functionality here: I need to know if this works with PostGIS, or if something else needs to be done. |
The PR has been merged. Basic PostGIS support should now be available, however I suspect more work will be needed for complete PostGIS support. |
it works quite nicely - thank you. |
Great, thank you. |
This is a generic way to address
#273
Important: property.select can be a function, whose
return value won't be escaped.
I'll happily add a test and modify readme.md if that PR is ok.