pub enum TableFunctionKind {
Unnest,
UnnestWithOrdinality,
GenerateSeries,
JsonEach,
JsonTree,
FtsSearch,
}Expand description
FROM-clause table functions Alopex can plan (issue #151).
The registry is closed: a name outside this set is a planning error rather than a call into an open function namespace.
Variants§
Unnest
UNNEST(vector) — one row per element.
UnnestWithOrdinality
UNNEST(array) WITH ORDINALITY — element and one-based position.
GenerateSeries
GENERATE_SERIES(start, stop [, step]) over integers.
JsonEach
JSON_EACH(json [, path]) — immediate children of JSON TEXT.
JsonTree
JSON_TREE(json [, path]) — recursive JSON TEXT traversal.
FtsSearch
FTS_SEARCH(table, column, query [, config]) — ranked full-text matches.
Implementations§
Source§impl TableFunctionKind
impl TableFunctionKind
Sourcepub fn from_name(name: &str) -> Option<Self>
pub fn from_name(name: &str) -> Option<Self>
Resolve a FROM-clause function name, case-insensitively.
Sourcepub fn name(self) -> &'static str
pub fn name(self) -> &'static str
Canonical uppercase spelling used in messages and plan output.
Sourcepub fn default_relation_name(self) -> &'static str
pub fn default_relation_name(self) -> &'static str
Default relation name when the item carries no alias (PostgreSQL uses the lowercase function name).
Trait Implementations§
Source§impl Clone for TableFunctionKind
impl Clone for TableFunctionKind
Source§fn clone(&self) -> TableFunctionKind
fn clone(&self) -> TableFunctionKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TableFunctionKind
Source§impl Debug for TableFunctionKind
impl Debug for TableFunctionKind
impl Eq for TableFunctionKind
Source§impl PartialEq for TableFunctionKind
impl PartialEq for TableFunctionKind
impl StructuralPartialEq for TableFunctionKind
Auto Trait Implementations§
impl Freeze for TableFunctionKind
impl RefUnwindSafe for TableFunctionKind
impl Send for TableFunctionKind
impl Sync for TableFunctionKind
impl Unpin for TableFunctionKind
impl UnsafeUnpin for TableFunctionKind
impl UnwindSafe for TableFunctionKind
Blanket Implementations§
impl<T> Allocation for T
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.