Trait diesel::sql_types::TypeMetadata
source · pub trait TypeMetadata {
type TypeMetadata;
type MetadataLookup: ?Sized;
}
Expand description
Information about how a backend stores metadata about given SQL types
Required Associated Types§
sourcetype TypeMetadata
type TypeMetadata
The actual type used to represent metadata.
On PostgreSQL, this is the type’s OID. On MySQL and SQLite, this is an enum representing all storage classes they support.
sourcetype MetadataLookup: ?Sized
type MetadataLookup: ?Sized
The type used for runtime lookup of metadata.
For most backends, which don’t support user defined types, this will
be ()
.
Implementors§
source§impl TypeMetadata for Mysql
Available on crate feature mysql_backend
only.
impl TypeMetadata for Mysql
Available on crate feature
mysql_backend
only.type TypeMetadata = MysqlType
type MetadataLookup = ()
source§impl TypeMetadata for Pg
Available on crate feature postgres_backend
only.
impl TypeMetadata for Pg
Available on crate feature
postgres_backend
only.type TypeMetadata = PgTypeMetadata
type MetadataLookup = dyn PgMetadataLookup
source§impl TypeMetadata for Sqlite
Available on crate feature sqlite
only.
impl TypeMetadata for Sqlite
Available on crate feature
sqlite
only.