Replies: 1 comment
-
I was able to get something working by doing this:
However this means that all UUIDs must be lowercased strings now and I lose the ability to customize it on a per table / per column basis. Hopefully there's a better solution to this that is escaping me at the moment. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm in the process of migrating UUID columns from being stored as a
BLOB
toTEXT
and noticed that the staticdatabaseUUIDEncodingStrategy
method on my record type wasn't being called. My record is declared like this:and I'd like to encode the UUIDs as lowercased strings, so I implemented:
However this method is never called. If I remove the use of
Tagged
and just markid
asUUID
, things work as expected. I'm not sure if this is expected behavior, and what if anything I could do to work around this.I'm integrating the Tagged library with GRDB like so:
Beta Was this translation helpful? Give feedback.
All reactions