Enum libpgquery_sys::Token[][src]

#[repr(i32)]
pub enum Token {
Show 494 variants Nul, Ascii37, Ascii40, Ascii41, Ascii42, Ascii43, Ascii44, Ascii45, Ascii46, Ascii47, Ascii58, Ascii59, Ascii60, Ascii61, Ascii62, Ascii63, Ascii91, Ascii92, Ascii93, Ascii94, Ident, Uident, Fconst, Sconst, Usconst, Bconst, Xconst, Op, Iconst, Param, Typecast, DotDot, ColonEquals, EqualsGreater, LessEquals, GreaterEquals, NotEquals, SqlComment, CComment, AbortP, AbsoluteP, Access, Action, AddP, Admin, After, Aggregate, All, Also, Alter, Always, Analyse, Analyze, And, Any, Array, As, Asc, Assertion, Assignment, Asymmetric, At, Attach, Attribute, Authorization, Backward, Before, BeginP, Between, Bigint, Binary, Bit, BooleanP, Both, By, Cache, Call, Called, Cascade, Cascaded, Case, Cast, CatalogP, Chain, CharP, Character, Characteristics, Check, Checkpoint, Class, Close, Cluster, Coalesce, Collate, Collation, Column, Columns, Comment, Comments, Commit, Committed, Concurrently, Configuration, Conflict, Connection, Constraint, Constraints, ContentP, ContinueP, ConversionP, Copy, Cost, Create, Cross, Csv, Cube, CurrentP, CurrentCatalog, CurrentDate, CurrentRole, CurrentSchema, CurrentTime, CurrentTimestamp, CurrentUser, Cursor, Cycle, DataP, Database, DayP, Deallocate, Dec, DecimalP, Declare, Default, Defaults, Deferrable, Deferred, Definer, DeleteP, Delimiter, Delimiters, Depends, Desc, Detach, Dictionary, DisableP, Discard, Distinct, Do, DocumentP, DomainP, DoubleP, Drop, Each, Else, EnableP, Encoding, Encrypted, EndP, EnumP, Escape, Event, Except, Exclude, Excluding, Exclusive, Execute, Exists, Explain, Expression, Extension, External, Extract, FalseP, Family, Fetch, Filter, FirstP, FloatP, Following, For, Force, Foreign, Forward, Freeze, From, Full, Function, Functions, Generated, Global, Grant, Granted, Greatest, GroupP, Grouping, Groups, Handler, Having, HeaderP, Hold, HourP, IdentityP, IfP, Ilike, Immediate, Immutable, ImplicitP, ImportP, InP, Include, Including, Increment, Index, Indexes, Inherit, Inherits, Initially, InlineP, InnerP, Inout, InputP, Insensitive, Insert, Instead, IntP, Integer, Intersect, Interval, Into, Invoker, Is, Isnull, Isolation, Join, Key, Label, Language, LargeP, LastP, LateralP, Leading, Leakproof, Least, Left, Level, Like, Limit, Listen, Load, Local, Localtime, Localtimestamp, Location, LockP, Locked, Logged, Mapping, Match, Materialized, Maxvalue, Method, MinuteP, Minvalue, Mode, MonthP, Move, NameP, Names, National, Natural, Nchar, New, Next, Nfc, Nfd, Nfkc, Nfkd, No, None, Normalize, Normalized, Not, Nothing, Notify, Notnull, Nowait, NullP, Nullif, NullsP, Numeric, ObjectP, Of, Off, Offset, Oids, Old, On, Only, Operator, Option, Options, Or, Order, Ordinality, Others, OutP, OuterP, Over, Overlaps, Overlay, Overriding, Owned, Owner, Parallel, Parser, Partial, Partition, Passing, Password, Placing, Plans, Policy, Position, Preceding, Precision, Preserve, Prepare, Prepared, Primary, Prior, Privileges, Procedural, Procedure, Procedures, Program, Publication, Quote, Range, Read, Real, Reassign, Recheck, Recursive, Ref, References, Referencing, Refresh, Reindex, RelativeP, Release, Rename, Repeatable, Replace, Replica, Reset, Restart, Restrict, Returning, Returns, Revoke, Right, Role, Rollback, Rollup, Routine, Routines, Row, Rows, Rule, Savepoint, Schema, Schemas, Scroll, Search, SecondP, Security, Select, Sequence, Sequences, Serializable, Server, Session, SessionUser, Set, Sets, Setof, Share, Show, Similar, Simple, Skip, Smallint, Snapshot, Some, SqlP, Stable, StandaloneP, Start, Statement, Statistics, Stdin, Stdout, Storage, Stored, StrictP, StripP, Subscription, Substring, Support, Symmetric, Sysid, SystemP, Table, Tables, Tablesample, Tablespace, Temp, Template, Temporary, TextP, Then, Ties, Time, Timestamp, To, Trailing, Transaction, Transform, Treat, Trigger, Trim, TrueP, Truncate, Trusted, TypeP, TypesP, Uescape, Unbounded, Uncommitted, Unencrypted, Union, Unique, Unknown, Unlisten, Unlogged, Until, Update, User, Using, Vacuum, Valid, Validate, Validator, ValueP, Values, Varchar, Variadic, Varying, Verbose, VersionP, View, Views, Volatile, When, Where, WhitespaceP, Window, With, Within, Without, Work, Wrapper, Write, XmlP, Xmlattributes, Xmlconcat, Xmlelement, Xmlexists, Xmlforest, Xmlnamespaces, Xmlparse, Xmlpi, Xmlroot, Xmlserialize, Xmltable, YearP, YesP, Zone, NotLa, NullsLa, WithLa, Postfixop, Uminus,
}

Variants

Nul
Ascii37

Single-character tokens that are returned 1:1 (identical with “self” list in scan.l) Either supporting syntax, or single-character operators (some can be both) Also see https://www.postgresql.org/docs/12/sql-syntax-lexical.html#SQL-SYNTAX-SPECIAL-CHARS

“%”

Ascii40

“(”

Ascii41

“)”

Ascii42

“*”

Ascii43

“+”

Ascii44

“,”

Ascii45

“-”

Ascii46

“.”

Ascii47

“/”

Ascii58

“:”

Ascii59

“;”

Ascii60

“<”

Ascii61

“=”

Ascii62

“>”

Ascii63

“?”

Ascii91

“[”

Ascii92

“"

Ascii93

“]”

Ascii94

“^”

Ident

Named tokens in scan.l

Uident
Fconst
Sconst
Usconst
Bconst
Xconst
Op
Iconst
Param
Typecast
DotDot
ColonEquals
EqualsGreater
LessEquals
GreaterEquals
NotEquals
SqlComment
CComment
AbortP
AbsoluteP
Access
Action
AddP
Admin
After
Aggregate
All
Also
Alter
Always
Analyse
Analyze
And
Any
Array
As
Asc
Assertion
Assignment
Asymmetric
At
Attach
Attribute
Authorization
Backward
Before
BeginP
Between
Bigint
Binary
Bit
BooleanP
Both
By
Cache
Call
Called
Cascade
Cascaded
Case
Cast
CatalogP
Chain
CharP
Character
Characteristics
Check
Checkpoint
Class
Close
Cluster
Coalesce
Collate
Collation
Column
Columns
Comment
Comments
Commit
Committed
Concurrently
Configuration
Conflict
Connection
Constraint
Constraints
ContentP
ContinueP
ConversionP
Copy
Cost
Create
Cross
Csv
Cube
CurrentP
CurrentCatalog
CurrentDate
CurrentRole
CurrentSchema
CurrentTime
CurrentTimestamp
CurrentUser
Cursor
Cycle
DataP
Database
DayP
Deallocate
Dec
DecimalP
Declare
Default
Defaults
Deferrable
Deferred
Definer
DeleteP
Delimiter
Delimiters
Depends
Desc
Detach
Dictionary
DisableP
Discard
Distinct
Do
DocumentP
DomainP
DoubleP
Drop
Each
Else
EnableP
Encoding
Encrypted
EndP
EnumP
Escape
Event
Except
Exclude
Excluding
Exclusive
Execute
Exists
Explain
Expression
Extension
External
Extract
FalseP
Family
Fetch
Filter
FirstP
FloatP
Following
For
Force
Foreign
Forward
Freeze
From
Full
Function
Functions
Generated
Global
Grant
Granted
Greatest
GroupP
Grouping
Groups
Handler
Having
HeaderP
Hold
HourP
IdentityP
IfP
Ilike
Immediate
Immutable
ImplicitP
ImportP
InP
Include
Including
Increment
Index
Indexes
Inherit
Inherits
Initially
InlineP
InnerP
Inout
InputP
Insensitive
Insert
Instead
IntP
Integer
Intersect
Interval
Into
Invoker
Is
Isnull
Isolation
Join
Key
Label
Language
LargeP
LastP
LateralP
Leading
Leakproof
Least
Left
Level
Like
Limit
Listen
Load
Local
Localtime
Localtimestamp
Location
LockP
Locked
Logged
Mapping
Match
Materialized
Maxvalue
Method
MinuteP
Minvalue
Mode
MonthP
Move
NameP
Names
National
Natural
Nchar
New
Next
Nfc
Nfd
Nfkc
Nfkd
No
None
Normalize
Normalized
Not
Nothing
Notify
Notnull
Nowait
NullP
Nullif
NullsP
Numeric
ObjectP
Of
Off
Offset
Oids
Old
On
Only
Operator
Option
Options
Or
Order
Ordinality
Others
OutP
OuterP
Over
Overlaps
Overlay
Overriding
Owned
Owner
Parallel
Parser
Partial
Partition
Passing
Password
Placing
Plans
Policy
Position
Preceding
Precision
Preserve
Prepare
Prepared
Primary
Prior
Privileges
Procedural
Procedure
Procedures
Program
Publication
Quote
Range
Read
Real
Reassign
Recheck
Recursive
Ref
References
Referencing
Refresh
Reindex
RelativeP
Release
Rename
Repeatable
Replace
Replica
Reset
Restart
Restrict
Returning
Returns
Revoke
Right
Role
Rollback
Rollup
Routine
Routines
Row
Rows
Rule
Savepoint
Schema
Schemas
Scroll
Search
SecondP
Security
Select
Sequence
Sequences
Serializable
Server
Session
SessionUser
Set
Sets
Setof
Share
Show
Similar
Simple
Skip
Smallint
Snapshot
Some
SqlP
Stable
StandaloneP
Start
Statement
Statistics
Stdin
Stdout
Storage
Stored
StrictP
StripP
Subscription
Substring
Support
Symmetric
Sysid
SystemP
Table
Tables
Tablesample
Tablespace
Temp
Template
Temporary
TextP
Then
Ties
Time
Timestamp
To
Trailing
Transaction
Transform
Treat
Trigger
Trim
TrueP
Truncate
Trusted
TypeP
TypesP
Uescape
Unbounded
Uncommitted
Unencrypted
Union
Unique
Unknown
Unlisten
Unlogged
Until
Update
User
Using
Vacuum
Valid
Validate
Validator
ValueP
Values
Varchar
Variadic
Varying
Verbose
VersionP
View
Views
Volatile
When
Where
WhitespaceP
Window
With
Within
Without
Work
Wrapper
Write
XmlP
Xmlattributes
Xmlconcat
Xmlelement
Xmlexists
Xmlforest
Xmlnamespaces
Xmlparse
Xmlpi
Xmlroot
Xmlserialize
Xmltable
YearP
YesP
Zone
NotLa
NullsLa
WithLa
Postfixop
Uminus

Implementations

Returns true if value is a variant of Token.

Converts an i32 to a Token, or None if value is not a valid variant.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Performs the conversion.

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

Restrict a value to a certain interval. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.