You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@sushantdhiman So I put that PR together but realized there are probably quite a few places that I would be missing potentially important pieces. I extracted the core values into two packages and published them to npm and tested.
Specifically around how to handle the new BINARY type (I played with using UUIDV1.BINARY as the default value for this which seems to work then having a BINARY type as the module below defines.
I wasn't sure how to best handle the virtual field in this case in a way that works similar to precedent. It's fairly important IMO to be able to still get the human-readable values. Seems some kind of transform hook would be good to always provide to the user as a string but always save to db as the binary. This may already be available that I may be missing.
Activity
sushantdhiman commentedon Dec 14, 2018
Yes
bradennapier commentedon Dec 21, 2018
@sushantdhiman So I put that PR together but realized there are probably quite a few places that I would be missing potentially important pieces. I extracted the core values into two packages and published them to npm and tested.
Specifically around how to handle the new
BINARYtype (I played with usingUUIDV1.BINARYas the default value for this which seems to work then having aBINARYtype as the module below defines.I wasn't sure how to best handle the
virtualfield in this case in a way that works similar to precedent. It's fairly important IMO to be able to still get the human-readable values. Seems some kind of transform hook would be good to always provide to the user as a string but always save to db as the binary. This may already be available that I may be missing.https://github.com/odo-network/binary-uuid
https://github.com/odo-network/sequelize-binary-uuid