Trait diesel::sql_types::TypeMetadata [−][src]
pub trait TypeMetadata { type TypeMetadata; type MetadataLookup; }
Information about how a backend stores metadata about given SQL types
Associated Types
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.
type MetadataLookup
The type used for runtime lookup of metadata.
For most backends, which don't support user defined types, this will
be ()
.
Implementors
impl TypeMetadata for Mysql type TypeMetadata = MysqlType; type MetadataLookup = ();
impl TypeMetadata for Pg type TypeMetadata = PgTypeMetadata; type MetadataLookup = PgMetadataLookup;
impl TypeMetadata for Sqlite type TypeMetadata = SqliteType; type MetadataLookup = ();