pub enum GrantObject<'a> {
Show 16 variants
Tables {
table_kw: Option<Span>,
names: Vec<QualifiedName<'a>>,
},
AllTablesInSchema {
span: Span,
schemas: Vec<QualifiedName<'a>>,
},
Sequences {
sequence_kw: Span,
names: Vec<QualifiedName<'a>>,
},
AllSequencesInSchema {
span: Span,
schemas: Vec<QualifiedName<'a>>,
},
Databases {
database_kw: Span,
names: Vec<QualifiedName<'a>>,
},
Domains {
domain_kw: Span,
names: Vec<QualifiedName<'a>>,
},
ForeignDataWrappers {
span: Span,
names: Vec<QualifiedName<'a>>,
},
ForeignServers {
span: Span,
names: Vec<QualifiedName<'a>>,
},
Routines {
kind: RoutineKind,
names: Vec<RoutineName<'a>>,
},
AllRoutinesInSchema {
all_span: Span,
kind: AllRoutineKind,
in_schema_span: Span,
schemas: Vec<QualifiedName<'a>>,
},
Languages {
language_kw: Span,
names: Vec<QualifiedName<'a>>,
},
LargeObjects {
span: Span,
oids: Vec<Expression<'a>>,
},
Parameters {
parameter_kw: Span,
names: Vec<QualifiedName<'a>>,
},
Schemas {
schema_kw: Span,
names: Vec<QualifiedName<'a>>,
},
Tablespaces {
tablespace_kw: Span,
names: Vec<QualifiedName<'a>>,
},
Types {
type_kw: Span,
names: Vec<QualifiedName<'a>>,
},
}Expand description
The object (or set of objects) to which privileges are being granted.
Variants§
Tables
[ TABLE ] table_name [, ...]
AllTablesInSchema
ALL TABLES IN SCHEMA schema_name [, ...]
Sequences
SEQUENCE sequence_name [, ...]
AllSequencesInSchema
ALL SEQUENCES IN SCHEMA schema_name [, ...]
Databases
DATABASE database_name [, ...]
Domains
DOMAIN domain_name [, ...]
ForeignDataWrappers
FOREIGN DATA WRAPPER fdw_name [, ...]
ForeignServers
FOREIGN SERVER server_name [, ...]
Routines
{ FUNCTION | PROCEDURE | ROUTINE } name[(args)] [, ...]
AllRoutinesInSchema
ALL { FUNCTIONS | PROCEDURES | ROUTINES } IN SCHEMA schema_name [, ...]
Languages
LANGUAGE lang_name [, ...]
LargeObjects
LARGE OBJECT loid [, ...]
Parameters
PARAMETER configuration_parameter [, ...]
Schemas
SCHEMA schema_name [, ...]
Tablespaces
TABLESPACE tablespace_name [, ...]
Types
TYPE type_name [, ...]
Trait Implementations§
Source§impl<'a> Clone for GrantObject<'a>
impl<'a> Clone for GrantObject<'a>
Source§fn clone(&self) -> GrantObject<'a>
fn clone(&self) -> GrantObject<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for GrantObject<'a>
impl<'a> Debug for GrantObject<'a>
Auto Trait Implementations§
impl<'a> Freeze for GrantObject<'a>
impl<'a> RefUnwindSafe for GrantObject<'a>
impl<'a> Send for GrantObject<'a>
impl<'a> Sync for GrantObject<'a>
impl<'a> Unpin for GrantObject<'a>
impl<'a> UnsafeUnpin for GrantObject<'a>
impl<'a> UnwindSafe for GrantObject<'a>
Blanket Implementations§
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