Skip to main content

execute_raw

Function execute_raw 

Source
pub async fn execute_raw(sql: &str) -> Result<(), DBError>
Expand description

Runs a multi-statement SQL script against the admin pool via the simple query protocol. Executed against the shared pool reference (not a &mut PgConnection) so the future stays Send/spawnable — the &mut executor form trips a higher-ranked-lifetime bound once boot() is spawned.