-
Notifications
You must be signed in to change notification settings - Fork 2
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
Add geo types support #30
base: main
Are you sure you want to change the base?
Conversation
|
||
// add macro for creating circles | ||
|
||
#[derive(Eq, PartialEq, Clone, Copy, Debug, Hash)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you really need all these traits?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was focused on implementation that would look like other interfaces from geo types.
So it`s why i have this traits.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't completely understand, could you please explain it a bit more clearly?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For implementation geometric types in PostgreSQL I use geo_types module in Rust.
Mostly geometric types are already realised in module, so while making Circle interface i referred to implementation of ready geometric types interfaces in geo_types module.
Btw. Looks great! Hope to see the final version soon! |
Today will update on using exceptions that changed after main branch merge |
@@ -569,6 +648,70 @@ fn postgres_bytes_to_py( | |||
Ok(py.None().to_object(py)) | |||
} | |||
} | |||
// ---------- Geo Types ---------- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Commented code
Add tests, please |
Added geo types support from PostgreSQL and geo_types module in Rust.
Description
Motivation and Context
How has this been tested?
Screenshots (if appropriate):
Types of changes
Checklist: