Expand description
Test implementations
Modules§
- batch_
associations - Test batching association-scoped statements (create, query, update, delete)
through
toasty::batch(). - batch_
create_ statements - batch_
nested_ create - batch_
query - batch_
query_ dynamic - batch_
rollback - batch_
update_ delete - clone_
query - Test that generated query, create, and update structs implement Clone.
- crud_
basic - crud_
batch_ create - Test batch creation of models
- crud_
composite_ key_ in_ list - crud_
composite_ key_ pagination - Test pagination on composite-key models.
- crud_
create_ macro - crud_
driver_ ops - crud_
model_ find_ by_ primary_ key - crud_
model_ level_ key - crud_
option_ filter - Test filtering models by Option fields using is_some() and is_none().
- crud_
partitioned - crud_
query - Test querying models with various filters and constraints
- crud_
query_ macro - crud_
sort_ limit - Test sorting and pagination of query results
- crud_
update_ field_ order - deferred_
embed - deferred_
field - dynamodb_
update_ batch_ filter - Tests for the non-unique multi-key update path on DynamoDB.
- embed_
enum_ data - embed_
enum_ filter - embed_
enum_ filter_ comparison - embed_
enum_ filter_ variant_ field - embed_
enum_ index - embed_
enum_ native_ ops - embed_
enum_ shared_ type - embed_
enum_ string_ discriminant - embed_
enum_ unit - embed_
newtype - embed_
struct - embed_
struct_ index - field_
auto - field_
column_ name - field_
column_ type - field_
default_ and_ update - field_
version - field_
version_ newtype - filter_
ilike - filter_
like - float_
fields - index_
composite - index_
custom_ name - infra_
connection_ per_ clone - infra_
missing_ registrations - infra_
pool_ config - infra_
reset_ db - infra_
sync_ send - key_
unsigned - lift_
belongs_ to_ complex_ filter - Regression test for
lift_belongs_to_in_subquerysilently dropping filter constraints whose operands are neither side anExpr::Reference. - query_
count - query_
in_ list - Tests for
IN/NOT INlist filters. - raw_
identifier_ fields - record_
not_ found - relation_
belongs_ to_ configured - relation_
belongs_ to_ embed_ key - relation_
belongs_ to_ one_ way - relation_
belongs_ to_ self_ referential - relation_
chain - Chain relation methods on a
Manyhandle to traverse multi-step associations without declaring aviarelation on the schema. - relation_
chain_ composite_ key - Chain relation methods on
Manywhere one or more hops in the chain has a composite key. Parallelscrate::tests::relation_chainwhich covers the all-single-key case. - relation_
filter_ association - Tests for filtering models by conditions on associated (HasOne, BelongsTo) fields.
- relation_
has_ many_ batch_ create - relation_
has_ many_ boxed_ fk - relation_
has_ many_ composite_ key - Tests for
has_many/belongs_torelationships whose foreign key spans multiple columns. These parallel the single-key relation tests so we can make sure composite-key behavior matches. - relation_
has_ many_ crud - Test basic has_many associations without any preloading of associations during query time. All associations are accessed via queries on demand.
- relation_
has_ many_ filter - Test filtering parent models by conditions on has_many associations
- relation_
has_ many_ link_ unlink - Test linking and unlinking has_many associations
- relation_
has_ many_ multi - Test has_many associations with multiple relations to the same model
- relation_
has_ many_ n_ plus_ 1 - Test N+1 query behavior with has_many associations
- relation_
has_ many_ same_ target - Test has_many/belongs_to associations where multiple
belongs_tofields on the same child model target the same parent model, disambiguated by#[has_many(pair = <field>)]. - relation_
has_ many_ scoped_ query - Test scoped queries on has_many associations
- relation_
has_ many_ via - Multi-step (
via) has_many relations: ahas_manyreached by following a path of existing relations rather than a single foreign key. - relation_
has_ one_ crud - relation_
preload - scan_
no_ index - select_
projection - select_
projection_ belongs_ to .select(...)projection through aBelongsTorelation field.- select_
projection_ embed .select(...)projection through embedded sub-fields. Field paths into an embed flow through the existingPath<T, U>: IntoExpr<U>chain, so no production code change is required for this case to work end-to-end; this file is the integration coverage.- select_
projection_ has_ many .select(...)projection through aHasManyrelation field.- select_
projection_ has_ one .select(...)projection through aHasOnerelation field.- starts_
with - tx_
atomic_ stmt - tx_
interactive - tx_
lock_ mode - type_
bigdecimal - type_
collection - Tests for
Vec<scalar>model fields. Storage is backend-chosen (text[]on PostgreSQL, ListLon DynamoDB, JSON on MySQL/SQLite — the JSON paths are future work). Backends withoutVec<scalar>support are gated out at the#[driver_test]level viarequires(vec_scalar); the negative schema-build path is covered by a dedicatedrequires(not(vec_scalar))test. - type_
decimal - type_
jiff - type_
primitives - type_
serialize