raw

Function raw 

Source
pub fn raw<'a, V, T>(sql: &'a str) -> SQLExpr<'a, V, T, Null, Scalar>
where V: SQLParam + 'a, T: DataType,
Expand description

Create a raw SQL expression with a specified type.

Use this for dialect-specific features or when the type system can’t infer the correct type.

§Safety

This bypasses type checking. Use sparingly and only when necessary.

§Example

use drizzle_core::expr::raw;
use drizzle_core::types::Int;

let expr = raw::<_, Int>("RANDOM()");