Type Definition diesel::sql_types::VarChar [−][src]
type VarChar = Text;
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.
Trait Implementations
impl FromSql<VarChar, Sqlite> for *const str
[src]
impl FromSql<VarChar, Sqlite> for *const str
The returned pointer is only valid for the lifetime to the argument of
from_sql
. This impl is intended for uses where you want to write a new
impl in terms of String
, but don't want to allocate. We have to return a
raw pointer instead of a reference with a lifetime due to the structure of
FromSql