2-Way transforming of types

My front-end wants UUIDs in a shortened format (i.e. base-64'd encode of the uuid bytes). In order to minimize workload, I was hoping I could write some sort of transformer that I could plug into kysely that would inflate shortened UUIDs when going into the DB and deflate them to the shortened format when they go out. I can't see anything obvious that would serve me to this end. Any suggestions?
1 Reply
Igal
Igal4mo ago
Hey 👋🏻 A plugin.

Did you find this page helpful?