rustango 0.17.4

Django-shaped web framework for Rust: ORM, migrations, auto-admin, multi-tenancy, audit log.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! `CompiledStatement` — the result of writing a query to a specific dialect.

use crate::core::SqlValue;

/// A parameterized statement ready to hand to a driver.
///
/// `sql` uses dialect-specific placeholder syntax (e.g. `$1` for Postgres).
/// `params` is in placeholder order: `params[i - 1]` binds `$i`.
#[derive(Debug, Clone, PartialEq)]
pub struct CompiledStatement {
    pub sql: String,
    pub params: Vec<SqlValue>,
}