Add additional docs to Query::bind

This commit is contained in:
Ryan Leckey 2020-02-29 17:11:55 -08:00
parent 817d07c081
commit e0fa55f241

View file

@ -65,6 +65,13 @@ where
DB: Database,
{
/// Bind a value for use with this SQL query.
///
/// If the number of times this is called does not match the number of bind parameters that
/// appear in the query (`?` for most SQL flavors, `$1 .. $N` for Postgres) then an error
/// will be returned when this query is executed.
///
/// There is no validation that the value is of the type expected by the query. Most SQL
/// flavors will perform type coercion (Postgres will return a database error).s
pub fn bind<T>(mut self, value: T) -> Self
where
T: Type<DB>,