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
If we could receive bigint as SonyflakeID types from the RDB, we could easily use them with ORM.
To receive SonyflakeID types from the RDB, we need to implement the sql.Scanner interface and the driver.Vuler interface.
If we could receive bigint as SonyflakeID types from the RDB, we could easily use them with ORM.
To receive SonyflakeID types from the RDB, we need to implement the sql.Scanner interface and the driver.Vuler interface.
Scanner Interface
https://pkg.go.dev/database/sql#Scanner
Valuer Interface
https://pkg.go.dev/database/sql/driver#Valuer
uuid Scan
https://github.com/google/uuid/blob/v1.6.0/sql.go#L15-L52
ulid Scan
https://github.com/oklog/ulid/blob/main/ulid.go#L499-L547