pub enum CreateAggregateOption {
Show 21 variants
Sfunc(ObjectName),
Stype(DataType),
Sspace(u64),
Finalfunc(ObjectName),
FinalfuncExtra,
FinalfuncModify(AggregateModifyKind),
Combinefunc(ObjectName),
Serialfunc(ObjectName),
Deserialfunc(ObjectName),
Initcond(Value),
Msfunc(ObjectName),
Minvfunc(ObjectName),
Mstype(DataType),
Msspace(u64),
Mfinalfunc(ObjectName),
MfinalfuncExtra,
MfinalfuncModify(AggregateModifyKind),
Minitcond(Value),
Sortop(ObjectName),
Parallel(FunctionParallel),
Hypothetical,
}Expand description
A single option in a CREATE AGGREGATE options list.
See https://www.postgresql.org/docs/current/sql-createaggregate.html
Variants§
Sfunc(ObjectName)
SFUNC = state_transition_function
Stype(DataType)
STYPE = state_data_type
Sspace(u64)
SSPACE = state_data_size (in bytes)
Finalfunc(ObjectName)
FINALFUNC = final_function
FinalfuncExtra
FINALFUNC_EXTRA — pass extra dummy arguments to the final function.
FinalfuncModify(AggregateModifyKind)
FINALFUNC_MODIFY = { READ_ONLY | SHAREABLE | READ_WRITE }
Combinefunc(ObjectName)
COMBINEFUNC = combine_function
Serialfunc(ObjectName)
SERIALFUNC = serial_function
Deserialfunc(ObjectName)
DESERIALFUNC = deserial_function
Initcond(Value)
INITCOND = initial_condition (a string literal)
Msfunc(ObjectName)
MSFUNC = moving_state_transition_function
Minvfunc(ObjectName)
MINVFUNC = moving_inverse_transition_function
Mstype(DataType)
MSTYPE = moving_state_data_type
Msspace(u64)
MSSPACE = moving_state_data_size (in bytes)
Mfinalfunc(ObjectName)
MFINALFUNC = moving_final_function
MfinalfuncExtra
MFINALFUNC_EXTRA
MfinalfuncModify(AggregateModifyKind)
MFINALFUNC_MODIFY = { READ_ONLY | SHAREABLE | READ_WRITE }
Minitcond(Value)
MINITCOND = moving_initial_condition (a string literal)
Sortop(ObjectName)
SORTOP = sort_operator
Parallel(FunctionParallel)
PARALLEL = { SAFE | RESTRICTED | UNSAFE }
Hypothetical
HYPOTHETICAL — marks the aggregate as hypothetical-set.
Trait Implementations§
Source§impl Clone for CreateAggregateOption
impl Clone for CreateAggregateOption
Source§fn clone(&self) -> CreateAggregateOption
fn clone(&self) -> CreateAggregateOption
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CreateAggregateOption
impl Debug for CreateAggregateOption
Source§impl<'de> Deserialize<'de> for CreateAggregateOption
impl<'de> Deserialize<'de> for CreateAggregateOption
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 Display for CreateAggregateOption
impl Display for CreateAggregateOption
Source§impl Hash for CreateAggregateOption
impl Hash for CreateAggregateOption
Source§impl Ord for CreateAggregateOption
impl Ord for CreateAggregateOption
Source§fn cmp(&self, other: &CreateAggregateOption) -> Ordering
fn cmp(&self, other: &CreateAggregateOption) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for CreateAggregateOption
impl PartialEq for CreateAggregateOption
Source§impl PartialOrd for CreateAggregateOption
impl PartialOrd for CreateAggregateOption
Source§impl Serialize for CreateAggregateOption
impl Serialize for CreateAggregateOption
Source§impl Visit for CreateAggregateOption
impl Visit for CreateAggregateOption
Source§impl VisitMut for CreateAggregateOption
impl VisitMut for CreateAggregateOption
Source§fn visit<V: VisitorMut>(&mut self, visitor: &mut V) -> ControlFlow<V::Break>
fn visit<V: VisitorMut>(&mut self, visitor: &mut V) -> ControlFlow<V::Break>
VisitorMut. Read more