rustango 0.27.9

Django-shaped batteries-included web framework for Rust: ORM + migrations + auto-admin + multi-tenancy + audit log + auth (sessions, JWT, OAuth2/OIDC, HMAC) + APIs (ViewSet, OpenAPI auto-derive, JSON:API) + jobs (in-mem + Postgres) + email + media (S3 / R2 / B2 / MinIO + presigned uploads + collections + tags) + production middleware (CSRF, CSP, rate-limiting, compression, idempotency, etc.).
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>,
}