stablekernel / aqueduct

Dart HTTP server framework for building REST APIs. Includes PostgreSQL ORM and OAuth2 provider.
https://aqueduct.io
BSD 2-Clause "Simplified" License
2.4k stars 279 forks source link

Support to type POINT #634

Open rullyalves opened 5 years ago

rullyalves commented 5 years ago

I was wondering if it is possible to add point type support to create geospatial queries in postgreesql

I'm willing to do this, but I need a way, where should I start?

itsjoeconway commented 5 years ago

Sure. The database driver would first need to support that data type and it doesn't currently. Here is a good issue in the driver for getting acquainted with adding new types: https://github.com/stablekernel/postgresql-dart/issues/11. Then, the Aqueduct ORM would need to support that type which is a matter of capturing the type in ManagedType.