sqlx icon indicating copy to clipboard operation
sqlx copied to clipboard

Implement `Type` for `[u8; N]`

Open madadam opened this issue 3 years ago • 6 comments

I was trying to derive(Type) for a newtype containing [u8; 16] and it didn't work. It seems there is currently no impl for fixed-length arrays of u8. It would be useful to add them, especially now with const generics MVP landed one no longer has to write a separate impl for every array size.

madadam avatar Apr 19 '21 09:04 madadam

This will be part of 0.6

abonander avatar Jun 18 '21 09:06 abonander

Is there an ETA for this 0.6 release?

bin avatar Apr 08 '22 00:04 bin

v0.6.0 has been released but this feature wasn't part of it.

e00E avatar Jul 04 '22 11:07 e00E

Yeah, this is a backwards compatible change however, so if anyone wants to put in a PR for it we'd gladly have it.

abonander avatar Jul 04 '22 20:07 abonander

Closed by #1953

abonander avatar Jul 08 '22 23:07 abonander

My PR implements this for Postgres but not other database systems.

e00E avatar Jul 09 '22 09:07 e00E