Trait mz_sql::ast::display::AstDisplay
source · pub trait AstDisplay {
// Required method
fn fmt<W>(&self, f: &mut AstFormatter<W>)
where W: Write;
// Provided methods
fn to_ast_string(&self) -> String { ... }
fn to_ast_string_stable(&self) -> String { ... }
fn to_ast_string_redacted(&self) -> String { ... }
}
Required Methods§
fn fmt<W>(&self, f: &mut AstFormatter<W>)where
W: Write,
Provided Methods§
fn to_ast_string(&self) -> String
fn to_ast_string_stable(&self) -> String
fn to_ast_string_redacted(&self) -> String
Object Safety§
This trait is not object safe.
Implementations on Foreign Types§
source§impl AstDisplay for i64
impl AstDisplay for i64
fn fmt<W>(&self, f: &mut AstFormatter<W>)where
W: Write,
source§impl AstDisplay for u32
impl AstDisplay for u32
fn fmt<W>(&self, f: &mut AstFormatter<W>)where
W: Write,
source§impl AstDisplay for u64
impl AstDisplay for u64
fn fmt<W>(&self, f: &mut AstFormatter<W>)where
W: Write,
source§impl<T> AstDisplay for &Box<T>where
T: AstDisplay,
impl<T> AstDisplay for &Box<T>where
T: AstDisplay,
fn fmt<W>(&self, f: &mut AstFormatter<W>)where
W: Write,
source§impl<T> AstDisplay for Box<T>where
T: AstDisplay,
impl<T> AstDisplay for Box<T>where
T: AstDisplay,
fn fmt<W>(&self, f: &mut AstFormatter<W>)where
W: Write,
Implementors§
impl AstDisplay for &UnresolvedItemName
impl AstDisplay for ResolvedColumnReference
impl AstDisplay for ResolvedDataType
impl AstDisplay for ResolvedDatabaseName
impl AstDisplay for ResolvedDatabaseSpecifier
impl AstDisplay for ResolvedItemName
impl AstDisplay for ResolvedObjectName
impl AstDisplay for ResolvedSchemaName
impl AstDisplay for SchemaSpecifier
impl AstDisplay for AlterConnectionOptionName
impl AstDisplay for AlterRoleOption
impl AstDisplay for AlterSourceAddSubsourceOptionName
impl AstDisplay for AvroSchemaOptionName
impl AstDisplay for ClusterAlterOptionName
impl AstDisplay for ClusterAlterUntilReadyOptionName
impl AstDisplay for ClusterFeatureName
impl AstDisplay for ClusterOptionName
impl AstDisplay for ClusterScheduleOptionValue
impl AstDisplay for ColumnVersioned
impl AstDisplay for ConnectionOptionName
impl AstDisplay for ContinualTaskOptionName
impl AstDisplay for CopyDirection
impl AstDisplay for CopyOptionName
impl AstDisplay for CreateConnectionOptionName
impl AstDisplay for CreateConnectionType
impl AstDisplay for CreateSinkOptionName
impl AstDisplay for CreateSourceOptionName
impl AstDisplay for CreateSubsourceOptionName
impl AstDisplay for CreateTypeListOptionName
impl AstDisplay for CreateTypeMapOptionName
impl AstDisplay for CsvColumns
impl AstDisplay for DiscardTarget
impl AstDisplay for ExplainFormat
impl AstDisplay for ExplainPlanOptionName
impl AstDisplay for ExplainStage
impl AstDisplay for ExternalReferences
impl AstDisplay for FetchDirection
impl AstDisplay for FetchOptionName
impl AstDisplay for HomogenizingFunction
impl AstDisplay for IndexOptionName
impl AstDisplay for KafkaBrokerAwsPrivatelinkOptionName
impl AstDisplay for KafkaSinkConfigOptionName
impl AstDisplay for KafkaSourceConfigOptionName
impl AstDisplay for KeyConstraint
impl AstDisplay for LoadGenerator
impl AstDisplay for LoadGeneratorOptionName
impl AstDisplay for MaterializedViewOptionName
impl AstDisplay for MutRecBlockOptionName
impl AstDisplay for MySqlConfigOptionName
impl AstDisplay for NetworkPolicyOptionName
impl AstDisplay for NetworkPolicyRuleOptionName
impl AstDisplay for NoticeSeverity
impl AstDisplay for ObjectType
impl AstDisplay for PgConfigOptionName
impl AstDisplay for Privilege
impl AstDisplay for PrivilegeSpecification
impl AstDisplay for RawClusterName
impl AstDisplay for RawDataType
impl AstDisplay for RawItemName
impl AstDisplay for RawNetworkPolicyName
impl AstDisplay for ReplicaOptionName
impl AstDisplay for RoleAttribute
impl AstDisplay for SelectOptionName
impl AstDisplay for SetOperator
impl AstDisplay for SetRoleVar
impl AstDisplay for SetVariableTo
impl AstDisplay for SetVariableValue
impl AstDisplay for SinkEnvelope
impl AstDisplay for SourceEnvelope
impl AstDisplay for SourceErrorPolicy
impl AstDisplay for SourceIncludeMetadata
impl AstDisplay for SubscribeOptionName
impl AstDisplay for SystemObjectType
impl AstDisplay for TableFromSourceOptionName
impl AstDisplay for TableOptionName
impl AstDisplay for TransactionAccessMode
impl AstDisplay for TransactionIsolationLevel
impl AstDisplay for TransactionMode
impl AstDisplay for UnresolvedObjectName
impl AstDisplay for Value
impl AstDisplay for WindowFrameBound
impl AstDisplay for WindowFrameUnits
impl AstDisplay for ResolvedClusterName
impl AstDisplay for ResolvedClusterReplicaName
impl AstDisplay for ResolvedNetworkPolicyName
impl AstDisplay for ResolvedRoleName
impl AstDisplay for AlterObjectRenameStatement
impl AstDisplay for AlterObjectSwapStatement
impl AstDisplay for AlterSystemResetAllStatement
impl AstDisplay for AlterSystemResetStatement
impl AstDisplay for AlterSystemSetStatement
impl AstDisplay for CloseStatement
impl AstDisplay for CommitStatement
impl AstDisplay for CreateDatabaseStatement
impl AstDisplay for CreateRoleStatement
impl AstDisplay for CreateSchemaStatement
impl AstDisplay for CreateWebhookSourceBody
impl AstDisplay for CreateWebhookSourceFilterHeader
impl AstDisplay for CreateWebhookSourceHeader
impl AstDisplay for CreateWebhookSourceIncludeHeaders
impl AstDisplay for CreateWebhookSourceMapHeader
impl AstDisplay for CsrSeedAvro
impl AstDisplay for CsrSeedProtobuf
impl AstDisplay for CsrSeedProtobufSchema
impl AstDisplay for DeallocateStatement
impl AstDisplay for DiscardStatement
impl AstDisplay for DropObjectsStatement
impl AstDisplay for ExternalReferenceExport
impl AstDisplay for Ident
More-or-less a direct translation of the Postgres function for doing the same thing:
https://github.com/postgres/postgres/blob/master/src/backend/utils/adt/ruleutils.c#L10730-L10812
Quotation is forced when printing in Stable mode.