MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / fmt

Method fmt

src/sql-parser/src/ast/defs/ddl.rs:42–49  ·  view source on GitHub ↗
(&self, f: &mut AstFormatter<W>)

Source from the content-addressed store, hash-verified

40
41impl AstDisplay for MaterializedViewOptionName {
42 fn fmt<W: fmt::Write>(&self, f: &mut AstFormatter<W>) {
43 match self {
44 MaterializedViewOptionName::AssertNotNull => f.write_str("ASSERT NOT NULL"),
45 MaterializedViewOptionName::PartitionBy => f.write_str("PARTITION BY"),
46 MaterializedViewOptionName::RetainHistory => f.write_str("RETAIN HISTORY"),
47 MaterializedViewOptionName::Refresh => f.write_str("REFRESH"),
48 }
49 }
50}
51
52impl WithOptionName for MaterializedViewOptionName {

Callers

nothing calls this directly

Calls 11

display_constraint_nameFunction · 0.85
write_nodeMethod · 0.80
enumerateMethod · 0.80
comma_separatedFunction · 0.50
write_strMethod · 0.45
is_emptyMethod · 0.45
iterMethod · 0.45
cloneMethod · 0.45
to_stringMethod · 0.45
as_refMethod · 0.45

Tested by

no test coverage detected