// SPDX-License-Identifier: BUSL-1.1
//! Shared helpers for the `sql_index_naming` test binary.
// Not every sub-file uses every helper.
use TestServer;
/// Return all rows of EXPLAIN <sql> concatenated, lowercased.
///
/// Used to assert that the chosen physical plan references an index lookup
/// rather than a full scan when a WHERE predicate lands on an indexed field.
pub async
/// Return all rows of EXPLAIN <sql> concatenated, preserving case.
///
/// The pgwire EXPLAIN handler emits the `PhysicalPlan` via `{:?}` debug
/// format, so structural fields like `filters: [..]`, `projection: [..]`,
/// `limit: N`, etc. appear verbatim. Plan-shape assertions use this
/// form; `explain_lower` is only for case-insensitive plan-variant
/// name checks.
pub async