Skip to main content

cratestack_sqlx/
delegate.rs

1//! `ModelDelegate` and its scoped (`bind(ctx)`-bound) sibling, plus
2//! the per-operation scoped builder wrappers. The unscoped delegate
3//! hands out `FindMany`/`CreateRecord`/etc. directly; the scoped
4//! delegate captures a `CoolContext` once at `bind` time and threads
5//! it into every `.run()` so call sites stay terse.
6
7mod model;
8mod model_authorize;
9mod model_batch;
10mod scoped;
11mod scoped_aggregate;
12mod scoped_batch;
13mod scoped_delete;
14mod scoped_find_many;
15mod scoped_find_many_projected;
16mod scoped_find_many_with;
17mod scoped_find_unique;
18mod scoped_update_many;
19mod scoped_writes;
20
21pub use model::ModelDelegate;
22pub use scoped::ScopedModelDelegate;
23pub use scoped_aggregate::{ScopedAggregate, ScopedAggregateColumn, ScopedAggregateCount};
24pub use scoped_batch::{
25    ScopedBatchCreate, ScopedBatchDelete, ScopedBatchGet, ScopedBatchUpdate, ScopedBatchUpsert,
26};
27pub use scoped_delete::{ScopedDeleteMany, ScopedDeleteRecord};
28pub use scoped_find_many::ScopedFindMany;
29pub use scoped_find_many_projected::ScopedProjectedFindMany;
30pub use scoped_find_many_with::ScopedFindManyWith;
31pub use scoped_find_unique::{ScopedFindUnique, ScopedProjectedFindUnique};
32pub use scoped_update_many::{ScopedUpdateMany, ScopedUpdateManySet};
33pub use scoped_writes::{
34    ScopedCreateRecord, ScopedUpdateRecord, ScopedUpdateRecordSet, ScopedUpsertRecord,
35};