[][src]Struct postgres_querybuilder::UpdateBuilder

pub struct UpdateBuilder { /* fields omitted */ }

Implementations

impl UpdateBuilder[src]

pub fn new(from: &str) -> Self[src]

Create a new update builder for a given table

Examples

use postgres_querybuilder::UpdateBuilder;
use postgres_querybuilder::prelude::{QueryBuilder, QueryBuilderWithSet, QueryBuilderWithWhere};

let user_password = "password".to_string();
let mut builder = UpdateBuilder::new("users");
builder.set("username", "rick".to_string());
builder.where_eq("id", 42);

assert_eq!(builder.get_query(), "UPDATE users SET username = $1 WHERE id = $2");

Trait Implementations

impl QueryBuilder for UpdateBuilder[src]

impl QueryBuilderWithQueries for UpdateBuilder[src]

impl QueryBuilderWithSet for UpdateBuilder[src]

impl QueryBuilderWithWhere for UpdateBuilder[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,