#1427·bun

Go 1.27 uuid.UUID not supported: "bun: Scan(unsupported uuid.UUID)"

Author: matdibuCreated Aug 28, 2026Updated Aug 31, 2026
Labelsenhancement

The uuid.UUID type introduced with go 1.27 appears to be unsupported.

Tried with both the latest release, and latest commit on master.

Go's database/sql appears to support it: https://go-review.googlesource.com/c/go/+/819361

// Source values of type string and byte may be scanned into // values of type [*uuid.UUID]. The source may contain the string // representation of a UUID, or a 16-byte []byte.

https://cs.opensource.google/go/go/+/master:src/database/sql/sql.go;l=3377

It would be good to have support in bun as well