// SPDX-License-Identifier: BUSL-1.1
//! Protocol-neutral DDL dispatch.
//!
//! Yields a protocol-neutral [`DdlResult`] / [`DdlError`] instead of pgwire
//! `Response` types, so native, http, and pgwire entrypoints share one router
//! with no pgwire dependency in the routing layer.
use crateAuthenticatedIdentity;
use crateDmlTxnCtx;
use crateSharedState;
use crateDatabaseId;
use ;
/// Try to handle a SQL statement as a Control Plane DDL command, returning a
/// protocol-neutral result.
///
/// `txn_ctx` carries the connection's session store + address so that
/// write-shaped DML reached through this router (UPSERT/INSERT, `COPY FROM`)
/// can route in-transaction writes through the same staging gate pgwire-SQL
/// and native already use.
///
/// Returns `None` when the statement is not a recognized DDL command (the
/// caller falls through to the SQL planner).
pub async