PostGIS support #5535
-
Hi, I'm using SQLDelight with PostgreSQL in my project and love the type-safe query generation. However, I've hit a limitation - I need to work with location data and PostGIS would be perfect for this. I have a few questions:
Thanks! :) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I don't have any experience with PostGIS and SQLDelight doesn't know about extensions
There are two ways:
I don't think that would happen in any time frame that would be useful to you - there are still many native built-in PostgreSql features e.g CREATE Trigger, CREATE Function, that are not implemented yet |
Beta Was this translation helpful? Give feedback.
I don't have any experience with PostGIS and SQLDelight doesn't know about extensions
There are two ways:
Simpler: You can try extending the existing PostgreSql dialect with delegation e.g https://github.com/griffio/sqldelight-custom-dialect.
This maybe the quickest way to get some minimally useful functions working
Complex: Create an entirely new PostgreSql dialect where you can add custom language features in the grammar e.g https://github.com/Faire/sqldelight-cockroachdb-dialect