CUPUM / nplex

Plateforme de valorisation de petits projets d'architecture et d'aménagement à Montréal.
https://www.nplex.design
4 stars 0 forks source link

Task: Implement drizzle custom type and helpers for postgres cube #265

Closed iolyd closed 3 months ago

iolyd commented 5 months ago

Task description

At certain places in the app, image metadata are recorded to the database alongside a palette of extracted color. These colors are extracted at upload time and stored as 3d vectors, enabling color-based queries (e.g. proximity-based and containment-based filtering of projects based on their images). The postgres cube extension's data type is not part of drizzle-orm, we thus need to provide our own for to/from driver data mapping.

List of actions

iolyd commented 3 months ago

This is completed through the publication of https://github.com/iolyd/drizzle-orm-helpers.