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

Method as_str

src/sql-parser/src/ast/defs/ddl.rs:1034–1048  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

1032
1033impl CreateConnectionType {
1034 pub fn as_str(&self) -> &'static str {
1035 match self {
1036 Self::Kafka => "kafka",
1037 Self::Csr => "confluent-schema-registry",
1038 Self::Postgres => "postgres",
1039 Self::Aws => "aws",
1040 Self::AwsPrivatelink => "aws-privatelink",
1041 Self::GlueSchemaRegistry => "glue-schema-registry",
1042 Self::Gcp => "gcp",
1043 Self::Ssh => "ssh-tunnel",
1044 Self::MySql => "mysql",
1045 Self::SqlServer => "sql-server",
1046 Self::IcebergCatalog => "iceberg-catalog",
1047 }
1048 }
1049}
1050
1051impl AstDisplay for CreateConnectionType {

Callers 15

doc_create_indexMethod · 0.45
doc_functionMethod · 0.45
test_parserFunction · 0.45
fmtMethod · 0.45
lex_opFunction · 0.45
fmtMethod · 0.45
test_datadrivenFunction · 0.45
fromMethod · 0.45
parse_normalize_exprMethod · 0.45
parse_interval_valueMethod · 0.45
get_next_precedenceMethod · 0.45

Calls

no outgoing calls

Tested by 6

test_parserFunction · 0.36
test_datadrivenFunction · 0.36
visit_identMethod · 0.36
visit_item_nameMethod · 0.36