Skip to main content

cratestack_sqlx/query/
write.rs

1//! Write primitives — single-row `Create`/`Update`/`Delete`/`Upsert`
2//! and predicate-driven bulk `UpdateMany`/`DeleteMany`. Every path
3//! emits audit + event-outbox rows inside the same transaction as the
4//! mutation, so a committed row always has its audit entry too.
5
6mod create;
7mod create_exec;
8mod delete;
9mod delete_exec;
10mod delete_many;
11mod delete_many_exec;
12mod preview;
13mod update;
14mod update_exec;
15mod update_many;
16mod update_many_exec;
17mod update_run;
18mod upsert;
19mod upsert_exec;
20mod upsert_sql;
21
22pub use create::CreateRecord;
23pub use create_exec::create_record_with_executor;
24pub use delete::DeleteRecord;
25pub use delete_many::DeleteMany;
26pub use preview::{render_update_many_preview_sql, render_update_preview_sql};
27pub use update::{UpdateRecord, UpdateRecordSet};
28pub use update_exec::update_record_with_executor;
29pub use update_many::{UpdateMany, UpdateManySet};
30pub use upsert::UpsertRecord;