[][src]Struct postgres_parser::sys::FieldStore

#[repr(C)]pub struct FieldStore {
    pub xpr: Expr,
    pub arg: *mut Expr,
    pub newvals: *mut List,
    pub fieldnums: *mut List,
    pub resulttype: Oid,
}

FieldStore

FieldStore represents the operation of modifying one field in a tuple value, yielding a new tuple value (the input is not touched!). Like the assign case of SubscriptingRef, this is used to implement UPDATE of a portion of a column.

resulttype is always a named composite type (not a domain). To update a composite domain value, apply CoerceToDomain to the FieldStore.

A single FieldStore can actually represent updates of several different fields. The parser only generates FieldStores with singleelement lists, but the planner will collapse multiple updates of the same base column into one FieldStore.

Fields

xpr: Exprarg: *mut Exprnewvals: *mut List

input tuple value

fieldnums: *mut List

new value(s) for field(s)

resulttype: Oid

integer list of field attnums

Trait Implementations

impl Debug for FieldStore[src]

impl Default for FieldStore[src]

impl Eq for FieldStore[src]

impl Hash for FieldStore[src]

impl PartialEq<FieldStore> for FieldStore[src]

impl StructuralEq for FieldStore[src]

impl StructuralPartialEq for FieldStore[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, 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.