pub enum SpecialFunctionKeyword {
Show 15 variants
CurrentCatalog,
CurrentDate,
CurrentRole,
CurrentSchema,
CurrentTime,
CurrentTimestamp,
CurrentUser,
LocalTime,
LocalTimestamp,
SessionUser,
SystemUser,
User,
UtcDate,
UtcTime,
UtcTimestamp,
}Expand description
A SQL special value function keyword (PostgreSQL SQLValueFunction).
Each names a dedicated grammar production whose whole spelling is the keyword;
the four temporal forms additionally accept a parenthesized precision, carried
on Expr::SpecialFunction rather than here so the keyword stays a copy tag.
Variants§
CurrentCatalog
CURRENT_CATALOG — the current database/catalog name.
CurrentDate
CURRENT_DATE — the current date.
CurrentRole
CURRENT_ROLE — the current role name.
CurrentSchema
CURRENT_SCHEMA — the current schema name.
CurrentTime
CURRENT_TIME — the current time of day (optional precision).
CurrentTimestamp
CURRENT_TIMESTAMP — the current date and time (optional precision).
CurrentUser
CURRENT_USER — the current authorization identifier.
LocalTime
LOCALTIME — the current local time of day (optional precision).
LocalTimestamp
LOCALTIMESTAMP — the current local date and time (optional precision).
SessionUser
SESSION_USER — the session authorization identifier.
SystemUser
SYSTEM_USER — the operating-system-level user identifier.
User
USER — synonym for CURRENT_USER.
UtcDate
MySQL UTC_DATE — the UTC-clock analogue of CURRENT_DATE. Nullary.
UtcTime
MySQL UTC_TIME — the UTC-clock analogue of CURRENT_TIME; takes an optional
fractional-seconds precision (UTC_TIME(6)).
UtcTimestamp
MySQL UTC_TIMESTAMP — the UTC-clock analogue of CURRENT_TIMESTAMP; takes an
optional fractional-seconds precision (UTC_TIMESTAMP(6)).
Trait Implementations§
Source§impl Clone for SpecialFunctionKeyword
impl Clone for SpecialFunctionKeyword
Source§fn clone(&self) -> SpecialFunctionKeyword
fn clone(&self) -> SpecialFunctionKeyword
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more