mirror of
https://github.com/launchbadge/sqlx.git
synced 2026-04-16 17:34:33 +00:00
Add additional docs to Query::bind
This commit is contained in:
@@ -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>,
|
||||
|
||||
Reference in New Issue
Block a user