pub struct Declare {
pub names: Vec<Ident>,
pub data_type: Option<DataType>,
pub assignment: Option<DeclareAssignment>,
pub declare_type: Option<DeclareType>,
pub binary: Option<bool>,
pub sensitive: Option<bool>,
pub scroll: Option<bool>,
pub hold: Option<bool>,
pub for_query: Option<Box<Query>>,
}
Expand description
Fields§
§names: Vec<Ident>
The name(s) being declared. Example: `DECLARE a, b, c DEFAULT 42;
data_type: Option<DataType>
Data-type assigned to the declared variable. Example: `DECLARE x INT64 DEFAULT 42;
assignment: Option<DeclareAssignment>
Expression being assigned to the declared variable.
declare_type: Option<DeclareType>
Represents the type of the declared variable.
binary: Option<bool>
Causes the cursor to return data in binary rather than in text format.
sensitive: Option<bool>
None = Not specified Some(true) = INSENSITIVE Some(false) = ASENSITIVE
scroll: Option<bool>
None = Not specified Some(true) = SCROLL Some(false) = NO SCROLL
hold: Option<bool>
None = Not specified Some(true) = WITH HOLD, specifies that the cursor can continue to be used after the transaction that created it successfully commits Some(false) = WITHOUT HOLD, specifies that the cursor cannot be used outside of the transaction that created it
for_query: Option<Box<Query>>
FOR <query>
clause in a CURSOR declaration.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Declare
impl<'de> Deserialize<'de> for Declare
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
source§impl Ord for Declare
impl Ord for Declare
source§impl PartialOrd for Declare
impl PartialOrd for Declare
source§impl VisitMut for Declare
impl VisitMut for Declare
fn visit<V: VisitorMut>(&mut self, visitor: &mut V) -> ControlFlow<V::Break>
impl Eq for Declare
impl StructuralPartialEq for Declare
Auto Trait Implementations§
impl Freeze for Declare
impl RefUnwindSafe for Declare
impl Send for Declare
impl Sync for Declare
impl Unpin for Declare
impl UnwindSafe for Declare
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)