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.
Aliased Type§
struct VarChar;
Trait Implementations§
source§impl QueryId for Text
impl QueryId for Text
source§const HAS_STATIC_QUERY_ID: bool = true
const HAS_STATIC_QUERY_ID: bool = true
Can the SQL generated by
Self
be uniquely identified by its type? Read more