Module tests

Module tests 

Source
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_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
embed_enum_data
embed_enum_filter
embed_enum_filter_comparison
embed_enum_filter_variant_field
embed_enum_index
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
infra_connection_per_clone
infra_missing_registrations
infra_reset_db
infra_sync_send
key_unsigned
query_count
record_not_found
relation_belongs_to_configured
relation_belongs_to_one_way
relation_belongs_to_self_referential
relation_has_many_batch_create
relation_has_many_boxed_fk
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_scoped_query
Test scoped queries on has_many associations
relation_has_one_crud
relation_preload
tx_atomic_stmt
tx_interactive
type_bigdecimal
type_decimal
type_jiff
type_primitives
type_serialize