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

Method parse_drop_cluster_replicas

src/sql-parser/src/parser.rs:4967–4982  ·  view source on GitHub ↗
(
        &mut self,
        if_exists: bool,
    )

Source from the content-addressed store, hash-verified

4965 }
4966
4967 fn parse_drop_cluster_replicas(
4968 &mut self,
4969 if_exists: bool,
4970 ) -> Result<Statement<Raw>, ParserError> {
4971 let names = self.parse_comma_separated(|p| {
4972 Ok(UnresolvedObjectName::ClusterReplica(
4973 p.parse_cluster_replica_name()?,
4974 ))
4975 })?;
4976 Ok(Statement::DropObjects(DropObjectsStatement {
4977 object_type: ObjectType::ClusterReplica,
4978 if_exists,
4979 names,
4980 cascade: false,
4981 }))
4982 }
4983
4984 fn parse_drop_owned(&mut self) -> Result<Statement<Raw>, ParserError> {
4985 self.expect_keyword(BY)?;

Callers 1

parse_drop_objectsMethod · 0.80

Calls 3

parse_comma_separatedMethod · 0.80
ClusterReplicaClass · 0.50

Tested by

no test coverage detected