sea-orm
sea-orm copied to clipboard
feat: Add TypeScript type annotations for PgVector columns
- Add get_ts_type_attrs method to Column to generate #[ts(type = "number[]")] or #[specta(type = "number[]")] attributes for PgVector fields when ts_rs::TS or specta::Type derives are present
- Update all entity writers (compact, dense, expanded, frontend) to emit TS type attributes for vector columns
- Add regression tests to ensure TS attributes are generated correctly
- This fixes the issue where PgVector fields were not properly typed in generated TypeScript definitions
PR Info
- Closes
- Dependencies:
- Dependents:
New Features
- [ ]
Bug Fixes
- [ ]
Breaking Changes
- [ ]
Changes
- [ ]
Should this be fixed in codegen? Are there any limitations that prevent adding PgVector support in ts_rs and specta?