Type Definition diesel::sql_types::VarChar[][src]

pub type VarChar = Text;
Expand description

The SQL VARCHAR type

This type is generally interchangeable with TEXT, so Diesel has this as an alias rather than a separate type (Diesel does not currently support implicit coercions).

One notable exception to this is with arrays on PG. TEXT[] cannot be coerced to VARCHAR[]. It is recommended that you always use TEXT[] if you need a string array on PG.