pub enum ObjectRefKind {
Show 24 variants
Table,
Sequence,
View,
MaterializedView,
Index,
ForeignTable,
Collation,
Conversion,
Statistics,
TextSearchParser,
TextSearchDictionary,
TextSearchTemplate,
TextSearchConfiguration,
AccessMethod,
EventTrigger,
Extension,
ForeignDataWrapper,
Language,
Publication,
Schema,
Server,
Database,
Role,
Tablespace,
}Expand description
A member-object kind naming an object by a bare or qualified name — the
name-only shapes of ObjectReference::Named, covering PostgreSQL’s
object_type_any_name and object_type_name productions.
Variants§
Table
TABLE.
Sequence
SEQUENCE.
View
VIEW.
MaterializedView
MATERIALIZED VIEW.
Index
INDEX.
ForeignTable
FOREIGN TABLE.
Collation
COLLATION.
Conversion
CONVERSION.
Statistics
STATISTICS.
TextSearchParser
TEXT SEARCH PARSER.
TextSearchDictionary
TEXT SEARCH DICTIONARY.
TextSearchTemplate
TEXT SEARCH TEMPLATE.
TextSearchConfiguration
TEXT SEARCH CONFIGURATION.
AccessMethod
ACCESS METHOD.
EventTrigger
EVENT TRIGGER.
Extension
EXTENSION.
ForeignDataWrapper
FOREIGN DATA WRAPPER.
Language
[PROCEDURAL] LANGUAGE. The optional PROCEDURAL keyword is exact-synonym sugar
(PostgreSQL’s opt_procedural); the canonical render emits LANGUAGE.
Publication
PUBLICATION.
Schema
SCHEMA.
Server
SERVER (a foreign server).
Database
DATABASE.
Role
ROLE.
Tablespace
TABLESPACE.
Implementations§
Source§impl ObjectRefKind
impl ObjectRefKind
Sourcepub fn schema_qualifiable(self) -> bool
pub fn schema_qualifiable(self) -> bool
Whether this kind names a schema-qualifiable object (PostgreSQL’s
object_type_any_name group), so its name may be a dotted any_name. The
remaining kinds are object_type_name, which take only a single name.
Trait Implementations§
Source§impl Clone for ObjectRefKind
impl Clone for ObjectRefKind
Source§fn clone(&self) -> ObjectRefKind
fn clone(&self) -> ObjectRefKind
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for ObjectRefKind
Source§impl Debug for ObjectRefKind
impl Debug for ObjectRefKind
Source§impl<'de> Deserialize<'de> for ObjectRefKind
impl<'de> Deserialize<'de> for ObjectRefKind
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>,
impl Eq for ObjectRefKind
Source§impl Hash for ObjectRefKind
impl Hash for ObjectRefKind
Source§impl PartialEq for ObjectRefKind
impl PartialEq for ObjectRefKind
Source§impl Render for ObjectRefKind
impl Render for ObjectRefKind
Source§fn render(&self, _ctx: &RenderCtx<'_>, f: &mut Formatter<'_>) -> Result
fn render(&self, _ctx: &RenderCtx<'_>, f: &mut Formatter<'_>) -> Result
Source§fn operand_binding_power(&self) -> Option<BindingPower>
fn operand_binding_power(&self) -> Option<BindingPower>
None (the default) for a self-delimiting node — an atom, call, or
constructor — that never needs parentheses. Read more