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

Function plan_create_database

src/sql/src/plan/statement/ddl.rs:225–236  ·  view source on GitHub ↗
(
    _: &StatementContext,
    CreateDatabaseStatement {
        name,
        if_not_exists,
    }: CreateDatabaseStatement,
)

Source from the content-addressed store, hash-verified

223}
224
225pub fn plan_create_database(
226 _: &StatementContext,
227 CreateDatabaseStatement {
228 name,
229 if_not_exists,
230 }: CreateDatabaseStatement,
231) -> Result<Plan, PlanError> {
232 Ok(Plan::CreateDatabase(CreateDatabasePlan {
233 name: normalize::ident(name.0),
234 if_not_exists,
235 }))
236}
237
238pub fn describe_create_schema(
239 _: &StatementContext,

Callers 1

planFunction · 0.85

Calls 1

identFunction · 0.85

Tested by

no test coverage detected