Trait mz_sql_parser::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: Write>(&self, f: &mut AstFormatter<W>)

source§

impl AstDisplay for u32

source§

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

source§

impl AstDisplay for u64

source§

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

source§

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

source§

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

source§

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

source§

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

Implementors§

source§

impl AstDisplay for &UnresolvedItemName

source§

impl AstDisplay for AvroSchemaOptionName

source§

impl AstDisplay for ColumnVersioned

source§

impl AstDisplay for ConnectionOptionName

source§

impl AstDisplay for ContinualTaskOptionName

source§

impl AstDisplay for CreateConnectionOptionName

source§

impl AstDisplay for CreateConnectionType

source§

impl AstDisplay for CreateSourceOptionName

source§

impl AstDisplay for CsvColumns

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 MySqlConfigOptionName

source§

impl AstDisplay for PgConfigOptionName

source§

impl AstDisplay for SinkEnvelope

source§

impl AstDisplay for SourceEnvelope

source§

impl AstDisplay for SourceErrorPolicy

source§

impl AstDisplay for SourceIncludeMetadata

source§

impl AstDisplay for HomogenizingFunction

source§

impl AstDisplay for WindowFrameBound

source§

impl AstDisplay for WindowFrameUnits

source§

impl AstDisplay for UnresolvedObjectName

source§

impl AstDisplay for MutRecBlockOptionName

source§

impl AstDisplay for SelectOptionName

source§

impl AstDisplay for SetOperator

source§

impl AstDisplay for AlterConnectionOptionName

source§

impl AstDisplay for AlterRoleOption

source§

impl AstDisplay for AlterSourceAddSubsourceOptionName

source§

impl AstDisplay for ClusterAlterOptionName

source§

impl AstDisplay for ClusterAlterUntilReadyOptionName

§

impl AstDisplay for ClusterFeatureName

source§

impl AstDisplay for ClusterOptionName

source§

impl AstDisplay for ClusterScheduleOptionValue

source§

impl AstDisplay for CopyDirection

source§

impl AstDisplay for CopyOptionName

source§

impl AstDisplay for CreateSinkOptionName

source§

impl AstDisplay for CreateSubsourceOptionName

source§

impl AstDisplay for CreateTypeListOptionName

source§

impl AstDisplay for CreateTypeMapOptionName

source§

impl AstDisplay for DiscardTarget

source§

impl AstDisplay for ExplainFormat

§

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 IndexOptionName

source§

impl AstDisplay for KafkaBrokerAwsPrivatelinkOptionName

source§

impl AstDisplay for NetworkPolicyOptionName

source§

impl AstDisplay for NetworkPolicyRuleOptionName

source§

impl AstDisplay for NoticeSeverity

source§

impl AstDisplay for ObjectType

source§

impl AstDisplay for Privilege

source§

impl AstDisplay for PrivilegeSpecification

source§

impl AstDisplay for ReplicaOptionName

source§

impl AstDisplay for RoleAttribute

source§

impl AstDisplay for SetRoleVar

source§

impl AstDisplay for SetVariableTo

source§

impl AstDisplay for SetVariableValue

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 Value

source§

impl AstDisplay for RawClusterName

source§

impl AstDisplay for RawDataType

source§

impl AstDisplay for RawItemName

source§

impl AstDisplay for RawNetworkPolicyName

source§

impl AstDisplay for CsrSeedAvro

source§

impl AstDisplay for CsrSeedProtobuf

source§

impl AstDisplay for CsrSeedProtobufSchema

source§

impl AstDisplay for KafkaSinkKey

source§

impl AstDisplay for Schema

source§

impl AstDisplay for Op

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 UnresolvedDatabaseName

source§

impl AstDisplay for UnresolvedItemName

source§

impl AstDisplay for UnresolvedSchemaName

source§

impl AstDisplay for TableAlias

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 DeallocateStatement

source§

impl AstDisplay for DiscardStatement

source§

impl AstDisplay for DropObjectsStatement

source§

impl AstDisplay for ExternalReferenceExport

source§

impl AstDisplay for InspectShardStatement

source§

impl AstDisplay for QualifiedReplica

source§

impl AstDisplay for RaiseStatement

source§

impl AstDisplay for ResetVariableStatement

source§

impl AstDisplay for RollbackStatement

source§

impl AstDisplay for SetTransactionStatement

source§

impl AstDisplay for SetVariableStatement

source§

impl AstDisplay for ShowVariableStatement

source§

impl AstDisplay for StartTransactionStatement

source§

impl AstDisplay for IntervalValue

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: AstInfo> AstDisplay for AvroSchema<T>

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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