Skip to main content

LengthPolicy

Trait LengthPolicy 

Source
pub trait LengthPolicy<D>: DataType {
    type Output: DataType;
}
Expand description

Result type of length, char_length and octet_length for a text SQL type on dialect D: INTEGER on SQLite, int4 on PostgreSQL, BIGINT on MySQL.

Required Associated Types§

Source

type Output: DataType

Result type of the length functions.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl LengthPolicy<MySQLDialect> for Char

Source§

impl LengthPolicy<MySQLDialect> for Enum

Source§

impl LengthPolicy<MySQLDialect> for LongText

Source§

impl LengthPolicy<MySQLDialect> for MediumText

Source§

impl LengthPolicy<MySQLDialect> for Set

Source§

impl LengthPolicy<MySQLDialect> for Text

Source§

impl LengthPolicy<MySQLDialect> for TinyText

Source§

impl LengthPolicy<MySQLDialect> for Varchar

Source§

impl LengthPolicy<PostgresDialect> for Char

Source§

impl LengthPolicy<PostgresDialect> for Text

Source§

impl LengthPolicy<PostgresDialect> for Varchar

Source§

impl LengthPolicy<SQLiteDialect> for Any

Source§

impl LengthPolicy<SQLiteDialect> for Text

Implementors§