use Identifier;
use ;
/// Extension trait that adds `.as_alias()` to any [`Expressive<T>`] type.
///
/// Wraps the expression as `expr AS <quoted_alias>`, using [`Identifier`]
/// for backend-aware quoting.
///
/// ```ignore
/// use vantage_sql::primitives::alias::AliasExt;
///
/// Fx::new("count", [mysql_expr!("*")]).as_alias("cnt")
/// // → COUNT(*) AS `cnt` (MySQL)
/// // → COUNT(*) AS "cnt" (PostgreSQL)
/// ```