sqlx::any::AnyTypeInfoKind
is private, cannot implement Type<Any>
#3599
Labels
sqlx::any::AnyTypeInfoKind
is private, cannot implement Type<Any>
#3599
Bug Description
Hello !
When using the
Any
driver, we run into some issues when creating custom decoders.#[derive(sqlx::Type)]
only generate Decode implementations for specific drivers (Type<Postgres>
,Type<Sqlite>
,Decode<Postgres>
,Decode<Sqlite>
etc...). It does not generate implementations for theAny
driver.Implementing a custom
Decode
can be done for theAny
driver. However, it seems like it is impossible to write aType
implementation since there are no ways to return aAnyTypeInfo
from outside thesqlx
crate.The reason is that
sqlx::any::AnyTypeInfoKind
is not exported within the library.Is there a workaround that ?
Thank you...
Info
["tls-rustls", "runtime-tokio", "postgres", "sqlite", "uuid", "chrono"]
rustc --version
: 1.81.0The text was updated successfully, but these errors were encountered: