feat(spectypes): add support for PostGIS and pgvector types

* Implement custom types: SqlGeometry, SqlGeography, SqlHalfVector, SqlSparseVector, SqlBitVector
* Add spatial filter operators and vector similarity operators
* Include metadata and OpenAPI reporting for geometry/vector column types
* Create tests for EWKB and WKT conversions
This commit is contained in:
2026-08-29 21:27:42 +02:00
parent 798bb47e71
commit f259df1258
22 changed files with 2886 additions and 9 deletions
+10 -2
View File
@@ -68,6 +68,14 @@ See [`resolvespec-python/todo.md`](./resolvespec-python/todo.md) for detailed Py
- [ ] Computed column improvements
- [ ] Recursive query support
3. **PostGIS & pgvector (PostgreSQL)**
- [x] Custom types: `SqlGeometry`/`SqlGeography` (GeoJSON I/O), `SqlHalfVector`, `SqlSparseVector`, `SqlBitVector`
- [x] Spatial filter operators (`st_dwithin`, `st_intersects`, `bbox`, …) in resolvespec + restheadspec
- [x] Vector similarity filter operators (`l2_within`, `cosine_within`, `ip_within`)
- [x] KNN structured option (`options.vector_search` / `X-Vector-Search-*` headers)
- [x] Metadata + OpenAPI report geometry/vector column types
- [ ] Integration tests against a PostGIS + pgvector database (needs test DB with extensions)
3. **Testing & Quality**
- [ ] Increase test coverage to 70%+
- [ ] Add integration tests for all ORMs
@@ -96,5 +104,5 @@ See [`resolvespec-python/todo.md`](./resolvespec-python/todo.md) for detailed Py
---
**Last Updated:** 2026-02-07
**Updated:** Added resolvespec-js client testing and implementation tasks
**Last Updated:** 2026-08-29
**Updated:** Added PostGIS + pgvector support (types, filter operators, KNN, metadata/OpenAPI)