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
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§fn eq(&self, other: &SqlGraphEntity) -> bool
fn eq(&self, other: &SqlGraphEntity) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for SqlGraphEntity
impl PartialOrd for SqlGraphEntity
source§fn partial_cmp(&self, other: &SqlGraphEntity) -> Option<Ordering>
fn partial_cmp(&self, other: &SqlGraphEntity) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§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<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.