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

Method lives_in_schema

src/sql-parser/src/ast/defs/statement.rs:4312–4332  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

4310
4311impl ObjectType {
4312 pub fn lives_in_schema(&self) -> bool {
4313 match self {
4314 ObjectType::Table
4315 | ObjectType::View
4316 | ObjectType::MaterializedView
4317 | ObjectType::Source
4318 | ObjectType::Sink
4319 | ObjectType::Index
4320 | ObjectType::Type
4321 | ObjectType::Secret
4322 | ObjectType::Connection
4323 | ObjectType::Func
4324 | ObjectType::Subsource => true,
4325 ObjectType::Database
4326 | ObjectType::Schema
4327 | ObjectType::Cluster
4328 | ObjectType::ClusterReplica
4329 | ObjectType::Role
4330 | ObjectType::NetworkPolicy => false,
4331 }
4332 }
4333}
4334
4335impl AstDisplay for ObjectType {

Callers 2

parse_showMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected