Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
database/sql: should copy into byte by default; add RawBytes type for speed #2698
Row.Scan into a *byte does a copy. Rows.Scan into a *byte does NOT. (our original plan was speed) for paranoia and consistency, Rows.Scan should also do a copy. if the caller wants to minimize allocations, they can use a new named byte type, RawBytes type RawBytes byte ... and only Rows.Scan will permit that.