mz_sql_parser::ast::display

Trait 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§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so 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 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 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 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 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 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 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>