pub enum SqlGraphEntity {
ExtensionRoot(ControlFile),
Schema(SchemaEntity),
CustomSql(ExtensionSqlEntity),
Function(PgExternEntity),
Type(PostgresTypeEntity),
BuiltinType(String),
Enum(PostgresEnumEntity),
Ord(PostgresOrdEntity),
Hash(PostgresHashEntity),
Aggregate(PgAggregateEntity),
Trigger(PgTriggerEntity),
}
Expand description
An entity corresponding to some SQL required by the extension.
Variants§
ExtensionRoot(ControlFile)
Schema(SchemaEntity)
CustomSql(ExtensionSqlEntity)
Function(PgExternEntity)
Type(PostgresTypeEntity)
BuiltinType(String)
Enum(PostgresEnumEntity)
Ord(PostgresOrdEntity)
Hash(PostgresHashEntity)
Aggregate(PgAggregateEntity)
Trigger(PgTriggerEntity)
Implementations§
Source§impl SqlGraphEntity
impl SqlGraphEntity
pub fn sql_anchor_comment(&self) -> String
pub fn id_or_name_matches(&self, ty_id: &TypeId, name: &str) -> bool
pub fn type_matches(&self, arg: &dyn TypeIdentifiable) -> bool
Trait Implementations§
Source§impl Clone for SqlGraphEntity
impl Clone for SqlGraphEntity
Source§fn clone(&self) -> SqlGraphEntity
fn clone(&self) -> SqlGraphEntity
Returns a copy 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 Debug for SqlGraphEntity
impl Debug for SqlGraphEntity
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 From<ExtensionSqlEntity> for SqlGraphEntity
impl From<ExtensionSqlEntity> for SqlGraphEntity
Source§fn from(val: ExtensionSqlEntity) -> Self
fn from(val: ExtensionSqlEntity) -> Self
Converts to this type from the input type.
Source§impl From<PgAggregateEntity> for SqlGraphEntity
impl From<PgAggregateEntity> for SqlGraphEntity
Source§fn from(val: PgAggregateEntity) -> Self
fn from(val: PgAggregateEntity) -> Self
Converts to this type from the input type.
Source§impl From<PgExternEntity> for SqlGraphEntity
impl From<PgExternEntity> for SqlGraphEntity
Source§fn from(val: PgExternEntity) -> Self
fn from(val: PgExternEntity) -> Self
Converts to this type from the input type.
Source§impl From<PgTriggerEntity> for SqlGraphEntity
impl From<PgTriggerEntity> for SqlGraphEntity
Source§fn from(val: PgTriggerEntity) -> Self
fn from(val: PgTriggerEntity) -> Self
Converts to this type from the input type.
Source§impl From<PostgresEnumEntity> for SqlGraphEntity
impl From<PostgresEnumEntity> for SqlGraphEntity
Source§fn from(val: PostgresEnumEntity) -> Self
fn from(val: PostgresEnumEntity) -> Self
Converts to this type from the input type.
Source§impl From<PostgresHashEntity> for SqlGraphEntity
impl From<PostgresHashEntity> for SqlGraphEntity
Source§fn from(val: PostgresHashEntity) -> Self
fn from(val: PostgresHashEntity) -> Self
Converts to this type from the input type.
Source§impl From<PostgresOrdEntity> for SqlGraphEntity
impl From<PostgresOrdEntity> for SqlGraphEntity
Source§fn from(val: PostgresOrdEntity) -> Self
fn from(val: PostgresOrdEntity) -> Self
Converts to this type from the input type.
Source§impl From<PostgresTypeEntity> for SqlGraphEntity
impl From<PostgresTypeEntity> for SqlGraphEntity
Source§fn from(val: PostgresTypeEntity) -> Self
fn from(val: PostgresTypeEntity) -> Self
Converts to this type from the input type.
Source§impl From<SchemaEntity> for SqlGraphEntity
impl From<SchemaEntity> for SqlGraphEntity
Source§fn from(val: SchemaEntity) -> Self
fn from(val: SchemaEntity) -> Self
Converts to this type from the input type.
Source§impl Hash for SqlGraphEntity
impl Hash for SqlGraphEntity
Source§impl Ord for SqlGraphEntity
impl Ord for SqlGraphEntity
Source§fn cmp(&self, other: &SqlGraphEntity) -> Ordering
fn cmp(&self, other: &SqlGraphEntity) -> 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 PartialEq for SqlGraphEntity
impl PartialEq for SqlGraphEntity
Source§impl PartialOrd for SqlGraphEntity
impl PartialOrd for SqlGraphEntity
Source§impl SqlGraphIdentifier for SqlGraphEntity
impl SqlGraphIdentifier for SqlGraphEntity
Source§impl ToSql for SqlGraphEntity
impl ToSql for SqlGraphEntity
impl Eq for SqlGraphEntity
impl StructuralPartialEq for SqlGraphEntity
Auto Trait Implementations§
impl Freeze for SqlGraphEntity
impl RefUnwindSafe for SqlGraphEntity
impl Send for SqlGraphEntity
impl Sync for SqlGraphEntity
impl Unpin for SqlGraphEntity
impl UnwindSafe for SqlGraphEntity
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.