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§

source

fn fmt<W>(&self, f: &mut AstFormatter<W>)
where W: Write,

Provided Methods§

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl AstDisplay for i64

source§

fn fmt<W>(&self, f: &mut AstFormatter<W>)
where W: Write,

source§

impl AstDisplay for u32

source§

fn fmt<W>(&self, f: &mut AstFormatter<W>)
where W: Write,

source§

impl AstDisplay for u64

source§

fn fmt<W>(&self, f: &mut AstFormatter<W>)
where W: Write,

source§

impl<T> AstDisplay for &Box<T>
where T: AstDisplay,

source§

fn fmt<W>(&self, f: &mut AstFormatter<W>)
where W: Write,

source§

impl<T> AstDisplay for Box<T>
where T: AstDisplay,

source§

fn fmt<W>(&self, f: &mut AstFormatter<W>)
where W: Write,

Implementors§

source§

impl AstDisplay for &UnresolvedItemName

source§

impl AstDisplay for ResolvedColumnReference

source§

impl AstDisplay for ResolvedDataType

source§

impl AstDisplay for ResolvedDatabaseName

source§

impl AstDisplay for ResolvedDatabaseSpecifier

source§

impl AstDisplay for ResolvedItemName

source§

impl AstDisplay for ResolvedObjectName

source§

impl AstDisplay for ResolvedSchemaName

source§

impl AstDisplay for SchemaSpecifier

source§

impl AstDisplay for AlterConnectionOptionName

source§

impl AstDisplay for AlterRoleOption

source§

impl AstDisplay for AlterSourceAddSubsourceOptionName

source§

impl AstDisplay for AvroSchemaOptionName

source§

impl AstDisplay for ClusterAlterOptionName

source§

impl AstDisplay for ClusterAlterUntilReadyOptionName

source§

impl AstDisplay for ClusterFeatureName

source§

impl AstDisplay for ClusterOptionName

source§

impl AstDisplay for ClusterScheduleOptionValue

source§

impl AstDisplay for ColumnVersioned

source§

impl AstDisplay for ConnectionOptionName

source§

impl AstDisplay for ContinualTaskOptionName

source§

impl AstDisplay for CopyDirection

source§

impl AstDisplay for CopyOptionName

source§

impl AstDisplay for CreateConnectionOptionName

source§

impl AstDisplay for CreateConnectionType

source§

impl AstDisplay for CreateSinkOptionName

source§

impl AstDisplay for CreateSourceOptionName

source§

impl AstDisplay for CreateSubsourceOptionName

source§

impl AstDisplay for CreateTypeListOptionName

source§

impl AstDisplay for CreateTypeMapOptionName

source§

impl AstDisplay for CsvColumns

source§

impl AstDisplay for DiscardTarget

source§

impl AstDisplay for ExplainFormat

source§

impl AstDisplay for ExplainPlanOptionName

source§

impl AstDisplay for ExplainStage

source§

impl AstDisplay for ExternalReferences

source§

impl AstDisplay for FetchDirection

source§

impl AstDisplay for FetchOptionName

source§

impl AstDisplay for HomogenizingFunction

source§

impl AstDisplay for IndexOptionName

source§

impl AstDisplay for KafkaBrokerAwsPrivatelinkOptionName

source§

impl AstDisplay for KafkaSinkConfigOptionName

source§

impl AstDisplay for KafkaSourceConfigOptionName

source§

impl AstDisplay for KeyConstraint

source§

impl AstDisplay for LoadGenerator

source§

impl AstDisplay for LoadGeneratorOptionName

source§

impl AstDisplay for MaterializedViewOptionName

source§

impl AstDisplay for MutRecBlockOptionName

source§

impl AstDisplay for MySqlConfigOptionName

source§

impl AstDisplay for NetworkPolicyOptionName

source§

impl AstDisplay for NetworkPolicyRuleOptionName

source§

impl AstDisplay for NoticeSeverity

source§

impl AstDisplay for ObjectType

source§

impl AstDisplay for PgConfigOptionName

source§

impl AstDisplay for Privilege

source§

impl AstDisplay for PrivilegeSpecification

source§

impl AstDisplay for RawClusterName

source§

impl AstDisplay for RawDataType

source§

impl AstDisplay for RawItemName

source§

impl AstDisplay for RawNetworkPolicyName

source§

impl AstDisplay for ReplicaOptionName

source§

impl AstDisplay for RoleAttribute

source§

impl AstDisplay for SelectOptionName

source§

impl AstDisplay for SetOperator

source§

impl AstDisplay for SetRoleVar

source§

impl AstDisplay for SetVariableTo

source§

impl AstDisplay for SetVariableValue

source§

impl AstDisplay for SinkEnvelope

source§

impl AstDisplay for SourceEnvelope

source§

impl AstDisplay for SourceErrorPolicy

source§

impl AstDisplay for SourceIncludeMetadata

source§

impl AstDisplay for SubscribeOptionName

source§

impl AstDisplay for SystemObjectType

source§

impl AstDisplay for TableFromSourceOptionName

source§

impl AstDisplay for TableOptionName

source§

impl AstDisplay for TransactionAccessMode

source§

impl AstDisplay for TransactionIsolationLevel

source§

impl AstDisplay for TransactionMode

source§

impl AstDisplay for UnresolvedObjectName

source§

impl AstDisplay for Value

source§

impl AstDisplay for WindowFrameBound

source§

impl AstDisplay for WindowFrameUnits

source§

impl AstDisplay for ResolvedClusterName

source§

impl AstDisplay for ResolvedClusterReplicaName

source§

impl AstDisplay for ResolvedNetworkPolicyName

source§

impl AstDisplay for ResolvedRoleName

source§

impl AstDisplay for AlterObjectRenameStatement

source§

impl AstDisplay for AlterObjectSwapStatement

source§

impl AstDisplay for AlterSystemResetAllStatement

source§

impl AstDisplay for AlterSystemResetStatement

source§

impl AstDisplay for AlterSystemSetStatement

source§

impl AstDisplay for CloseStatement

source§

impl AstDisplay for CommitStatement

source§

impl AstDisplay for CreateDatabaseStatement

source§

impl AstDisplay for CreateRoleStatement

source§

impl AstDisplay for CreateSchemaStatement

source§

impl AstDisplay for CreateWebhookSourceBody

source§

impl AstDisplay for CreateWebhookSourceFilterHeader

source§

impl AstDisplay for CreateWebhookSourceHeader

source§

impl AstDisplay for CreateWebhookSourceIncludeHeaders

source§

impl AstDisplay for CreateWebhookSourceMapHeader

source§

impl AstDisplay for CsrSeedAvro

source§

impl AstDisplay for CsrSeedProtobuf

source§

impl AstDisplay for CsrSeedProtobufSchema

source§

impl AstDisplay for DeallocateStatement

source§

impl AstDisplay for DiscardStatement

source§

impl AstDisplay for DropObjectsStatement

source§

impl AstDisplay for ExternalReferenceExport

source§

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.

source§

impl AstDisplay for InspectShardStatement

source§

impl AstDisplay for IntervalValue

source§

impl AstDisplay for KafkaSinkKey

source§

impl AstDisplay for Op

source§

impl AstDisplay for QualifiedReplica

source§

impl AstDisplay for RaiseStatement

source§

impl AstDisplay for ResetVariableStatement

source§

impl AstDisplay for RollbackStatement

source§

impl AstDisplay for Schema

source§

impl AstDisplay for SetTransactionStatement

source§

impl AstDisplay for SetVariableStatement

source§

impl AstDisplay for ShowVariableStatement

source§

impl AstDisplay for StartTransactionStatement

source§

impl AstDisplay for TableAlias

source§

impl AstDisplay for UnresolvedDatabaseName

source§

impl AstDisplay for UnresolvedItemName

source§

impl AstDisplay for UnresolvedSchemaName

source§

impl AstDisplay for Version

source§

impl<'a> AstDisplay for EscapeSingleQuoteString<'a>

source§

impl<'a> AstDisplay for EscapedStringLiteral<'a>

source§

impl<'a, T> AstDisplay for DisplaySeparated<'a, T>
where T: AstDisplay,

source§

impl<T> AstDisplay for AbbreviatedGrantOrRevokeStatement<T>
where T: AstInfo,

source§

impl<T> AstDisplay for AlterConnectionAction<T>
where T: AstInfo,

source§

impl<T> AstDisplay for AlterSourceAction<T>
where T: AstInfo,

source§

impl<T> AstDisplay for AsOf<T>
where T: AstInfo,

source§

impl<T> AstDisplay for AvroSchema<T>
where T: AstInfo,

source§

impl<T> AstDisplay for ClusterAlterOptionValue<T>
where T: AstInfo,

source§

impl<T> AstDisplay for ColumnOption<T>
where T: AstInfo,

source§

impl<T> AstDisplay for CommentObjectType<T>
where T: AstInfo,

source§

impl<T> AstDisplay for ContinualTaskStmt<T>
where T: AstInfo,

source§

impl<T> AstDisplay for CopyTarget<T>
where T: AstInfo,

source§

impl<T> AstDisplay for CreateSinkConnection<T>
where T: AstInfo,

source§

impl<T> AstDisplay for CreateSourceConnection<T>
where T: AstInfo,

source§

impl<T> AstDisplay for CreateTypeAs<T>
where T: AstInfo,

source§

impl<T> AstDisplay for CsrConfigOptionName<T>
where T: AstInfo,

source§

impl<T> AstDisplay for CteBlock<T>
where T: AstInfo,

source§

impl<T> AstDisplay for DeferredItemName<T>
where T: AstInfo,

source§

impl<T> AstDisplay for Distinct<T>
where T: AstInfo,

source§

impl<T> AstDisplay for Explainee<T>
where T: AstInfo,

source§

impl<T> AstDisplay for Expr<T>
where T: AstInfo,

source§

impl<T> AstDisplay for Format<T>
where T: AstInfo,

source§

impl<T> AstDisplay for FormatSpecifier<T>
where T: AstInfo,

source§

impl<T> AstDisplay for FunctionArgs<T>
where T: AstInfo,

source§

impl<T> AstDisplay for GrantTargetSpecification<T>
where T: AstInfo,

source§

impl<T> AstDisplay for InsertSource<T>
where T: AstInfo,

source§

impl<T> AstDisplay for IsExprConstruct<T>
where T: AstInfo,

source§

impl<T> AstDisplay for KafkaBrokerTunnel<T>
where T: AstInfo,

source§

impl<T> AstDisplay for ProtobufSchema<T>
where T: AstInfo,

source§

impl<T> AstDisplay for RefreshOptionValue<T>
where T: AstInfo,

source§

impl<T> AstDisplay for SelectItem<T>
where T: AstInfo,

source§

impl<T> AstDisplay for SetExpr<T>
where T: AstInfo,

source§

impl<T> AstDisplay for ShowStatement<T>
where T: AstInfo,

source§

impl<T> AstDisplay for ShowStatementFilter<T>
where T: AstInfo,

source§

impl<T> AstDisplay for Statement<T>
where T: AstInfo,

source§

impl<T> AstDisplay for SubscribeOutput<T>
where T: AstInfo,

source§

impl<T> AstDisplay for SubscribeRelation<T>
where T: AstInfo,

source§

impl<T> AstDisplay for TableConstraint<T>
where T: AstInfo,

source§

impl<T> AstDisplay for TableFactor<T>
where T: AstInfo,

source§

impl<T> AstDisplay for TargetRoleSpecification<T>
where T: AstInfo,

source§

impl<T> AstDisplay for WithOptionValue<T>
where T: AstInfo,

source§

impl<T> AstDisplay for AbbreviatedGrantStatement<T>
where T: AstInfo,

source§

impl<T> AstDisplay for AbbreviatedRevokeStatement<T>
where T: AstInfo,

source§

impl<T> AstDisplay for AlterClusterStatement<T>
where T: AstInfo,

source§

impl<T> AstDisplay for AlterConnectionOption<T>
where T: AstInfo,

source§

impl<T> AstDisplay for AlterConnectionStatement<T>
where T: AstInfo,

source§

impl<T> AstDisplay for AlterDefaultPrivilegesStatement<T>
where T: AstInfo,

source§

impl<T> AstDisplay for AlterIndexStatement<T>
where T: AstInfo,

source§

impl<T> AstDisplay for AlterNetworkPolicyStatement<T>
where T: AstInfo,

source§

impl<T> AstDisplay for AlterOwnerStatement<T>
where T: AstInfo,

source§

impl<T> AstDisplay for AlterRetainHistoryStatement<T>
where T: AstInfo,

source§

impl<T> AstDisplay for AlterRoleStatement<T>
where T: AstInfo,

source§

impl<T> AstDisplay for AlterSecretStatement<T>
where T: AstInfo,

source§

impl<T> AstDisplay for AlterSetClusterStatement<T>
where T: AstInfo,

source§

impl<T> AstDisplay for AlterSinkStatement<T>
where T: AstInfo,

source§

impl<T> AstDisplay for AlterSourceAddSubsourceOption<T>
where T: AstInfo,

source§

impl<T> AstDisplay for AlterSourceStatement<T>
where T: AstInfo,

source§

impl<T> AstDisplay for AlterTableAddColumnStatement<T>
where T: AstInfo,

source§

impl<T> AstDisplay for Assignment<T>
where T: AstInfo,

source§

impl<T> AstDisplay for AvroDocOn<T>
where T: AstInfo,

source§

impl<T> AstDisplay for AvroSchemaOption<T>
where T: AstInfo,

source§

impl<T> AstDisplay for ClusterAlterOption<T>
where T: AstInfo,

source§

impl<T> AstDisplay for ClusterAlterUntilReadyOption<T>
where T: AstInfo,

source§

impl<T> AstDisplay for ClusterFeature<T>
where T: AstInfo,

source§

impl<T> AstDisplay for ClusterOption<T>
where T: AstInfo,

source§

impl<T> AstDisplay for ColumnDef<T>
where T: AstInfo,

source§

impl<T> AstDisplay for ColumnName<T>
where T: AstInfo,

source§

impl<T> AstDisplay for ColumnOptionDef<T>
where T: AstInfo,

source§

impl<T> AstDisplay for CommentStatement<T>
where T: AstInfo,

source§

impl<T> AstDisplay for ConnectionDefaultAwsPrivatelink<T>
where T: AstInfo,

source§

impl<T> AstDisplay for ConnectionOption<T>
where T: AstInfo,

source§

impl<T> AstDisplay for ContinualTaskOption<T>
where T: AstInfo,

source§

impl<T> AstDisplay for CopyOption<T>
where T: AstInfo,

source§

impl<T> AstDisplay for CopyStatement<T>
where T: AstInfo,

source§

impl<T> AstDisplay for CreateClusterReplicaStatement<T>
where T: AstInfo,

source§

impl<T> AstDisplay for CreateClusterStatement<T>
where T: AstInfo,

source§

impl<T> AstDisplay for CreateConnectionOption<T>
where T: AstInfo,

source§

impl<T> AstDisplay for CreateConnectionStatement<T>
where T: AstInfo,

source§

impl<T> AstDisplay for CreateContinualTaskStatement<T>
where T: AstInfo,

source§

impl<T> AstDisplay for CreateIndexStatement<T>
where T: AstInfo,

source§

impl<T> AstDisplay for CreateMaterializedViewStatement<T>
where T: AstInfo,

source§

impl<T> AstDisplay for CreateNetworkPolicyStatement<T>
where T: AstInfo,

source§

impl<T> AstDisplay for CreateSecretStatement<T>
where T: AstInfo,

source§

impl<T> AstDisplay for CreateSinkOption<T>
where T: AstInfo,

source§

impl<T> AstDisplay for CreateSinkStatement<T>
where T: AstInfo,

source§

impl<T> AstDisplay for CreateSourceOption<T>
where T: AstInfo,

source§

impl<T> AstDisplay for CreateSourceStatement<T>
where T: AstInfo,

source§

impl<T> AstDisplay for CreateSubsourceOption<T>
where T: AstInfo,

source§

impl<T> AstDisplay for CreateSubsourceStatement<T>
where T: AstInfo,

source§

impl<T> AstDisplay for CreateTableFromSourceStatement<T>
where T: AstInfo,

source§

impl<T> AstDisplay for CreateTableStatement<T>
where T: AstInfo,

source§

impl<T> AstDisplay for CreateTypeListOption<T>
where T: AstInfo,

source§

impl<T> AstDisplay for CreateTypeMapOption<T>
where T: AstInfo,

source§

impl<T> AstDisplay for CreateTypeStatement<T>
where T: AstInfo,

source§

impl<T> AstDisplay for CreateViewStatement<T>
where T: AstInfo,

source§

impl<T> AstDisplay for CreateWebhookSourceCheck<T>
where T: AstInfo,

source§

impl<T> AstDisplay for CreateWebhookSourceCheckOptions<T>
where T: AstInfo,

source§

impl<T> AstDisplay for CreateWebhookSourceSecret<T>
where T: AstInfo,

source§

impl<T> AstDisplay for CreateWebhookSourceStatement<T>
where T: AstInfo,

source§

impl<T> AstDisplay for CsrConfigOption<T>
where T: AstInfo,

source§

impl<T> AstDisplay for CsrConnection<T>
where T: AstInfo,

source§

impl<T> AstDisplay for CsrConnectionAvro<T>
where T: AstInfo,

source§

impl<T> AstDisplay for CsrConnectionProtobuf<T>
where T: AstInfo,

source§

impl<T> AstDisplay for Cte<T>
where T: AstInfo,

source§

impl<T> AstDisplay for CteMutRec<T>
where T: AstInfo,

source§

impl<T> AstDisplay for CteMutRecColumnDef<T>
where T: AstInfo,

source§

impl<T> AstDisplay for DeclareStatement<T>
where T: AstInfo,

source§

impl<T> AstDisplay for DeleteStatement<T>
where T: AstInfo,

source§

impl<T> AstDisplay for DropOwnedStatement<T>
where T: AstInfo,

source§

impl<T> AstDisplay for ExecuteStatement<T>
where T: AstInfo,

source§

impl<T> AstDisplay for ExplainPlanOption<T>
where T: AstInfo,

source§

impl<T> AstDisplay for ExplainPlanStatement<T>
where T: AstInfo,

source§

impl<T> AstDisplay for ExplainPushdownStatement<T>
where T: AstInfo,

source§

impl<T> AstDisplay for ExplainSinkSchemaStatement<T>
where T: AstInfo,

source§

impl<T> AstDisplay for ExplainTimestampStatement<T>
where T: AstInfo,

source§

impl<T> AstDisplay for FetchOption<T>
where T: AstInfo,

source§

impl<T> AstDisplay for FetchStatement<T>
where T: AstInfo,

source§

impl<T> AstDisplay for Function<T>
where T: AstInfo,

source§

impl<T> AstDisplay for GrantPrivilegesStatement<T>
where T: AstInfo,

source§

impl<T> AstDisplay for GrantRoleStatement<T>
where T: AstInfo,

source§

impl<T> AstDisplay for IndexOption<T>
where T: AstInfo,

source§

impl<T> AstDisplay for InsertStatement<T>
where T: AstInfo,

source§

impl<T> AstDisplay for Join<T>
where T: AstInfo,

source§

impl<T> AstDisplay for KafkaBroker<T>
where T: AstInfo,

source§

impl<T> AstDisplay for KafkaBrokerAwsPrivatelink<T>
where T: AstInfo,

source§

impl<T> AstDisplay for KafkaBrokerAwsPrivatelinkOption<T>
where T: AstInfo,

source§

impl<T> AstDisplay for KafkaSinkConfigOption<T>
where T: AstInfo,

source§

impl<T> AstDisplay for KafkaSourceConfigOption<T>
where T: AstInfo,

source§

impl<T> AstDisplay for LoadGeneratorOption<T>
where T: AstInfo,

source§

impl<T> AstDisplay for MapEntry<T>
where T: AstInfo,

source§

impl<T> AstDisplay for MaterializedViewOption<T>
where T: AstInfo,

source§

impl<T> AstDisplay for MutRecBlockOption<T>
where T: AstInfo,

source§

impl<T> AstDisplay for MySqlConfigOption<T>
where T: AstInfo,

source§

impl<T> AstDisplay for NetworkPolicyOption<T>
where T: AstInfo,

source§

impl<T> AstDisplay for NetworkPolicyRuleDefinition<T>
where T: AstInfo,

source§

impl<T> AstDisplay for NetworkPolicyRuleOption<T>
where T: AstInfo,

source§

impl<T> AstDisplay for OrderByExpr<T>
where T: AstInfo,

source§

impl<T> AstDisplay for PgConfigOption<T>
where T: AstInfo,

source§

impl<T> AstDisplay for PrepareStatement<T>
where T: AstInfo,

source§

impl<T> AstDisplay for Query<T>
where T: AstInfo,

source§

impl<T> AstDisplay for ReassignOwnedStatement<T>
where T: AstInfo,

source§

impl<T> AstDisplay for ReplicaDefinition<T>
where T: AstInfo,

source§

impl<T> AstDisplay for ReplicaOption<T>
where T: AstInfo,

source§

impl<T> AstDisplay for RevokePrivilegesStatement<T>
where T: AstInfo,

source§

impl<T> AstDisplay for RevokeRoleStatement<T>
where T: AstInfo,

source§

impl<T> AstDisplay for Select<T>
where T: AstInfo,

source§

impl<T> AstDisplay for SelectOption<T>
where T: AstInfo,

source§

impl<T> AstDisplay for SelectStatement<T>
where T: AstInfo,

source§

impl<T> AstDisplay for ShowColumnsStatement<T>
where T: AstInfo,

source§

impl<T> AstDisplay for ShowCreateClusterStatement<T>
where T: AstInfo,

source§

impl<T> AstDisplay for ShowCreateConnectionStatement<T>
where T: AstInfo,

source§

impl<T> AstDisplay for ShowCreateIndexStatement<T>
where T: AstInfo,

source§

impl<T> AstDisplay for ShowCreateMaterializedViewStatement<T>
where T: AstInfo,

source§

impl<T> AstDisplay for ShowCreateSinkStatement<T>
where T: AstInfo,

source§

impl<T> AstDisplay for ShowCreateSourceStatement<T>
where T: AstInfo,

source§

impl<T> AstDisplay for ShowCreateTableStatement<T>
where T: AstInfo,

source§

impl<T> AstDisplay for ShowCreateViewStatement<T>
where T: AstInfo,

source§

impl<T> AstDisplay for ShowObjectsStatement<T>
where T: AstInfo,

source§

impl<T> AstDisplay for SubscribeOption<T>
where T: AstInfo,

source§

impl<T> AstDisplay for SubscribeStatement<T>
where T: AstInfo,

source§

impl<T> AstDisplay for SubscriptPosition<T>
where T: AstInfo,

source§

impl<T> AstDisplay for TableFromSourceOption<T>
where T: AstInfo,

source§

impl<T> AstDisplay for TableOption<T>
where T: AstInfo,

source§

impl<T> AstDisplay for TableWithJoins<T>
where T: AstInfo,

source§

impl<T> AstDisplay for UpdateStatement<T>
where T: AstInfo,

source§

impl<T> AstDisplay for ValidateConnectionStatement<T>
where T: AstInfo,

source§

impl<T> AstDisplay for Values<T>
where T: AstInfo,

source§

impl<T> AstDisplay for ViewDefinition<T>
where T: AstInfo,

source§

impl<T> AstDisplay for WindowSpec<T>
where T: AstInfo,