Enum pgx_utils::sql_entity_graph::SqlGraphEntity
source · [−]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
sourceimpl SqlGraphEntity
impl SqlGraphEntity
pub fn sql_anchor_comment(&self) -> String
Trait Implementations
sourceimpl Clone for SqlGraphEntity
impl Clone for SqlGraphEntity
sourcefn clone(&self) -> SqlGraphEntity
fn clone(&self) -> SqlGraphEntity
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for SqlGraphEntity
impl Debug for SqlGraphEntity
sourceimpl From<ControlFile> for SqlGraphEntity
impl From<ControlFile> for SqlGraphEntity
sourcefn from(val: ControlFile) -> Self
fn from(val: ControlFile) -> Self
Converts to this type from the input type.
sourceimpl From<ExtensionSqlEntity> for SqlGraphEntity
impl From<ExtensionSqlEntity> for SqlGraphEntity
sourcefn from(val: ExtensionSqlEntity) -> Self
fn from(val: ExtensionSqlEntity) -> Self
Converts to this type from the input type.
sourceimpl From<PgAggregateEntity> for SqlGraphEntity
impl From<PgAggregateEntity> for SqlGraphEntity
sourcefn from(val: PgAggregateEntity) -> Self
fn from(val: PgAggregateEntity) -> Self
Converts to this type from the input type.
sourceimpl From<PgExternEntity> for SqlGraphEntity
impl From<PgExternEntity> for SqlGraphEntity
sourcefn from(val: PgExternEntity) -> Self
fn from(val: PgExternEntity) -> Self
Converts to this type from the input type.
sourceimpl From<PgTriggerEntity> for SqlGraphEntity
impl From<PgTriggerEntity> for SqlGraphEntity
sourcefn from(val: PgTriggerEntity) -> Self
fn from(val: PgTriggerEntity) -> Self
Converts to this type from the input type.
sourceimpl From<PostgresEnumEntity> for SqlGraphEntity
impl From<PostgresEnumEntity> for SqlGraphEntity
sourcefn from(val: PostgresEnumEntity) -> Self
fn from(val: PostgresEnumEntity) -> Self
Converts to this type from the input type.
sourceimpl From<PostgresHashEntity> for SqlGraphEntity
impl From<PostgresHashEntity> for SqlGraphEntity
sourcefn from(val: PostgresHashEntity) -> Self
fn from(val: PostgresHashEntity) -> Self
Converts to this type from the input type.
sourceimpl From<PostgresOrdEntity> for SqlGraphEntity
impl From<PostgresOrdEntity> for SqlGraphEntity
sourcefn from(val: PostgresOrdEntity) -> Self
fn from(val: PostgresOrdEntity) -> Self
Converts to this type from the input type.
sourceimpl From<PostgresTypeEntity> for SqlGraphEntity
impl From<PostgresTypeEntity> for SqlGraphEntity
sourcefn from(val: PostgresTypeEntity) -> Self
fn from(val: PostgresTypeEntity) -> Self
Converts to this type from the input type.
sourceimpl From<SchemaEntity> for SqlGraphEntity
impl From<SchemaEntity> for SqlGraphEntity
sourcefn from(val: SchemaEntity) -> Self
fn from(val: SchemaEntity) -> Self
Converts to this type from the input type.
sourceimpl Hash for SqlGraphEntity
impl Hash for SqlGraphEntity
sourceimpl Ord for SqlGraphEntity
impl Ord for SqlGraphEntity
sourcefn cmp(&self, other: &SqlGraphEntity) -> Ordering
fn cmp(&self, other: &SqlGraphEntity) -> Ordering
1.21.0 · sourceconst fn max(self, other: Self) -> Self
const fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourceconst fn min(self, other: Self) -> Self
const fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourceconst fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
const fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<SqlGraphEntity> for SqlGraphEntity
impl PartialEq<SqlGraphEntity> for SqlGraphEntity
sourcefn eq(&self, other: &SqlGraphEntity) -> bool
fn eq(&self, other: &SqlGraphEntity) -> bool
sourceimpl PartialOrd<SqlGraphEntity> for SqlGraphEntity
impl PartialOrd<SqlGraphEntity> for SqlGraphEntity
sourcefn partial_cmp(&self, other: &SqlGraphEntity) -> Option<Ordering>
fn partial_cmp(&self, other: &SqlGraphEntity) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const 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 moresourceimpl SqlGraphIdentifier for SqlGraphEntity
impl SqlGraphIdentifier for SqlGraphEntity
sourceimpl ToSql for SqlGraphEntity
impl ToSql for SqlGraphEntity
impl Eq for SqlGraphEntity
impl StructuralEq for SqlGraphEntity
impl StructuralPartialEq for SqlGraphEntity
Auto Trait Implementations
impl RefUnwindSafe for SqlGraphEntity
impl Send for SqlGraphEntity
impl Sync for SqlGraphEntity
impl Unpin for SqlGraphEntity
impl UnwindSafe for SqlGraphEntity
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.