pub enum SqlGraphEntity<'a> {
ExtensionRoot(ControlFile),
Schema(SchemaEntity<'a>),
CustomSql(ExtensionSqlEntity<'a>),
Function(PgExternEntity<'a>),
Type(PostgresTypeEntity<'a>),
BuiltinType(String),
Enum(PostgresEnumEntity<'a>),
Ord(PostgresOrdEntity<'a>),
Hash(PostgresHashEntity<'a>),
Aggregate(PgAggregateEntity<'a>),
Trigger(PgTriggerEntity<'a>),
}Expand description
An entity corresponding to some SQL required by the extension.
Variants§
ExtensionRoot(ControlFile)
Schema(SchemaEntity<'a>)
CustomSql(ExtensionSqlEntity<'a>)
Function(PgExternEntity<'a>)
Type(PostgresTypeEntity<'a>)
BuiltinType(String)
Enum(PostgresEnumEntity<'a>)
Ord(PostgresOrdEntity<'a>)
Hash(PostgresHashEntity<'a>)
Aggregate(PgAggregateEntity<'a>)
Trigger(PgTriggerEntity<'a>)
Implementations§
Source§impl SqlGraphEntity<'_>
impl SqlGraphEntity<'_>
pub fn sql_anchor_comment(&self) -> String
pub fn type_ident_matches(&self, type_ident: &str) -> bool
pub fn type_matches(&self, arg: &dyn TypeIdentifiable) -> bool
Trait Implementations§
Source§impl<'a> Clone for SqlGraphEntity<'a>
impl<'a> Clone for SqlGraphEntity<'a>
Source§fn clone(&self) -> SqlGraphEntity<'a>
fn clone(&self) -> SqlGraphEntity<'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 SqlGraphEntity<'a>
impl<'a> Debug for SqlGraphEntity<'a>
Source§impl From<ControlFile> for SqlGraphEntity<'_>
impl From<ControlFile> for SqlGraphEntity<'_>
Source§fn from(val: ControlFile) -> Self
fn from(val: ControlFile) -> Self
Converts to this type from the input type.
Source§impl<'a> From<ExtensionSqlEntity<'a>> for SqlGraphEntity<'a>
impl<'a> From<ExtensionSqlEntity<'a>> for SqlGraphEntity<'a>
Source§fn from(val: ExtensionSqlEntity<'a>) -> Self
fn from(val: ExtensionSqlEntity<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<PgAggregateEntity<'a>> for SqlGraphEntity<'a>
impl<'a> From<PgAggregateEntity<'a>> for SqlGraphEntity<'a>
Source§fn from(val: PgAggregateEntity<'a>) -> Self
fn from(val: PgAggregateEntity<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<PgExternEntity<'a>> for SqlGraphEntity<'a>
impl<'a> From<PgExternEntity<'a>> for SqlGraphEntity<'a>
Source§fn from(val: PgExternEntity<'a>) -> Self
fn from(val: PgExternEntity<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<PgTriggerEntity<'a>> for SqlGraphEntity<'a>
impl<'a> From<PgTriggerEntity<'a>> for SqlGraphEntity<'a>
Source§fn from(val: PgTriggerEntity<'a>) -> Self
fn from(val: PgTriggerEntity<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<PostgresEnumEntity<'a>> for SqlGraphEntity<'a>
impl<'a> From<PostgresEnumEntity<'a>> for SqlGraphEntity<'a>
Source§fn from(val: PostgresEnumEntity<'a>) -> Self
fn from(val: PostgresEnumEntity<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<PostgresHashEntity<'a>> for SqlGraphEntity<'a>
impl<'a> From<PostgresHashEntity<'a>> for SqlGraphEntity<'a>
Source§fn from(val: PostgresHashEntity<'a>) -> Self
fn from(val: PostgresHashEntity<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<PostgresOrdEntity<'a>> for SqlGraphEntity<'a>
impl<'a> From<PostgresOrdEntity<'a>> for SqlGraphEntity<'a>
Source§fn from(val: PostgresOrdEntity<'a>) -> Self
fn from(val: PostgresOrdEntity<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<PostgresTypeEntity<'a>> for SqlGraphEntity<'a>
impl<'a> From<PostgresTypeEntity<'a>> for SqlGraphEntity<'a>
Source§fn from(val: PostgresTypeEntity<'a>) -> Self
fn from(val: PostgresTypeEntity<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<SchemaEntity<'a>> for SqlGraphEntity<'a>
impl<'a> From<SchemaEntity<'a>> for SqlGraphEntity<'a>
Source§fn from(val: SchemaEntity<'a>) -> Self
fn from(val: SchemaEntity<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> Hash for SqlGraphEntity<'a>
impl<'a> Hash for SqlGraphEntity<'a>
Source§impl<'a> Ord for SqlGraphEntity<'a>
impl<'a> Ord for SqlGraphEntity<'a>
Source§fn cmp(&self, other: &SqlGraphEntity<'a>) -> Ordering
fn cmp(&self, other: &SqlGraphEntity<'a>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<'a> PartialEq for SqlGraphEntity<'a>
impl<'a> PartialEq for SqlGraphEntity<'a>
Source§impl<'a> PartialOrd for SqlGraphEntity<'a>
impl<'a> PartialOrd for SqlGraphEntity<'a>
Source§impl SqlGraphIdentifier for SqlGraphEntity<'_>
impl SqlGraphIdentifier for SqlGraphEntity<'_>
Source§impl ToSql for SqlGraphEntity<'_>
impl ToSql for SqlGraphEntity<'_>
impl<'a> Eq for SqlGraphEntity<'a>
impl<'a> StructuralPartialEq for SqlGraphEntity<'a>
Auto Trait Implementations§
impl<'a> Freeze for SqlGraphEntity<'a>
impl<'a> RefUnwindSafe for SqlGraphEntity<'a>
impl<'a> Send for SqlGraphEntity<'a>
impl<'a> Sync for SqlGraphEntity<'a>
impl<'a> Unpin for SqlGraphEntity<'a>
impl<'a> UnsafeUnpin for SqlGraphEntity<'a>
impl<'a> UnwindSafe for SqlGraphEntity<'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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<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.