mirror of
https://github.com/launchbadge/sqlx
synced 2024-11-10 14:34:19 +00:00
Add additional docs to Query::bind
This commit is contained in:
parent
817d07c081
commit
e0fa55f241
1 changed files with 7 additions and 0 deletions
|
@ -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>,
|
||||
|
|
Loading…
Reference in a new issue