Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/tortoise/tortoise-orm
/ functions
Functions
3,850 in github.com/tortoise/tortoise-orm
⨍
Functions
3,850
◇
Types & classes
935
↳
Endpoints
102
Method
test_returns_database_default_when_has_db_default
(self)
tests/test_db_default_insert.py:53
Method
test_returns_none_when_no_db_default
(self)
tests/test_db_default_insert.py:59
Function
test_rev_fk
()
tests/test_model_methods.py:816
Function
test_rev_m2m
()
tests/test_model_methods.py:832
Function
test_rev_o2o
(db)
tests/test_model_methods.py:841
Function
test_reverse_relation_create_fk
(db)
tests/test_relations.py:572
Function
test_reverse_relation_create_fk_errors_for_unsaved_instance
(db)
tests/test_relations.py:587
Function
test_rollback_raising_exception
Tests that if a rollback raises an exception, the connection context is restored.
tests/test_transactions.py:407
Function
test_rows_affected_delete
(rows_affected_setup)
tests/test_query_api.py:258
Function
test_rows_affected_select_asyncpg
(rows_affected_setup)
tests/test_query_api.py:219
Function
test_rows_affected_select_driver_rowcount
(rows_affected_setup)
tests/test_query_api.py:231
Function
test_rows_affected_select_sqlite
(rows_affected_setup)
tests/test_query_api.py:210
Function
test_rows_affected_update
(rows_affected_setup)
tests/test_query_api.py:246
Function
test_run_async
Test that run_async properly cleans up after successful execution.
tests/utils/test_run_async.py:53
Function
test_run_async_raised
Test that run_async properly cleans up even when an exception is raised.
tests/utils/test_run_async.py:67
Function
test_run_python_operation_runs_callable
()
tests/migrations/test_operations_database.py:233
Function
test_run_sql_forward_and_backward
RunSQL should execute forward SQL and reverse SQL.
tests/migrations/test_operations_database.py:539
Function
test_runpython_historical_models_survive_schema_change
( tmp_path: Path, monkeypatch: pytest.MonkeyPatch )
tests/migrations/test_runtime_migrations.py:425
Function
test_safe_generation
Assert that the IF NOT EXISTS clause is included when safely generating schema.
tests/schema/test_generate_schema.py:208
Function
test_save
(signals_data)
tests/test_signals.py:80
Function
test_save
(db)
tests/test_validators.py:94
Function
test_save
(tournament_model)
tests/test_model_methods.py:131
Function
test_save_f_expression
(db)
tests/test_model_methods.py:139
Function
test_save_full
(tournament_model)
tests/test_model_methods.py:148
Function
test_save_generated
(db)
tests/test_model_methods.py:40
Function
test_save_generated_custom_id
(db)
tests/test_model_methods.py:55
Function
test_save_generated_duplicate_custom_id
(db)
tests/test_model_methods.py:74
Function
test_save_non_generated
(db)
tests/test_model_methods.py:47
Function
test_save_non_generated_custom_id
(db)
tests/test_model_methods.py:64
Function
test_save_non_generated_duplicate_custom_id
(db)
tests/test_model_methods.py:82
Function
test_save_partial
(tournament_model)
tests/test_model_methods.py:158
Function
test_save_partial_with_pk_update
(tournament_model)
tests/test_model_methods.py:168
Function
test_save_with_update_fields
(db)
tests/test_validators.py:104
Function
test_schema
(db_simple)
tests/backends/test_postgres.py:32
Function
test_schema
()
tests/schema/test_generate_schema.py:413
Function
test_schema_db_default_bool_false
()
tests/fields/test_db_default.py:298
Function
test_schema_db_default_bool_true
()
tests/fields/test_db_default.py:292
Function
test_schema_db_default_float
()
tests/fields/test_db_default.py:323
Function
test_schema_db_default_int
()
tests/fields/test_db_default.py:280
Function
test_schema_db_default_none
()
tests/fields/test_db_default.py:304
Function
test_schema_db_default_overrides_default
When both default and db_default are set, db_default controls the SQL.
tests/fields/test_db_default.py:310
Function
test_schema_db_default_str
()
tests/fields/test_db_default.py:286
Function
test_schema_editor_matches_schema_generator
( editor_cls: type[BaseSchemaEditor], generator_path: Path, generator_name: str, client_kwargs
tests/migrations/test_schema_editor_backend_parity.py:195
Function
test_schema_editor_matches_schema_generator_for_generated_column
()
tests/migrations/test_schema_editor_backend_parity.py:213
Function
test_schema_generation_literal_db_default_still_works
Literal db_default still works (no regression).
tests/fields/test_db_default.py:646
Function
test_schema_generation_with_custom_sql_expression
Schema generation with custom SQL expression.
tests/fields/test_db_default.py:637
Function
test_schema_generation_with_now
Schema generation with Now().
tests/fields/test_db_default.py:628
Function
test_schema_generation_with_sql_default
Schema generation with SqlDefault.
tests/fields/test_db_default.py:619
Function
test_schema_no_db_constraint
()
tests/schema/test_generate_schema.py:366
Function
test_schema_no_db_default_no_default
()
tests/fields/test_db_default.py:317
Function
test_schema_qualified_single_schema_creation
Only one CREATE SCHEMA per unique schema value.
tests/schema/test_generate_schema.py:2147
Function
test_schema_safe
()
tests/schema/test_generate_schema.py:508
Function
test_search_headline
Test SearchHeadline expression.
tests/contrib/postgres/test_search.py:149
Function
test_search_lookup_text
Test search lookup on text field.
tests/contrib/postgres/test_search.py:175
Function
test_search_lookup_text_searchquery
Test search lookup with SearchQuery on text field.
tests/contrib/postgres/test_search.py:189
Function
test_search_lookup_tsvector
Test search lookup on TSVector field.
tests/contrib/postgres/test_search.py:208
Function
test_search_lookup_tsvector_searchquery
Test search lookup with SearchQuery on TSVector field.
tests/contrib/postgres/test_search.py:223
Function
test_search_query_combine_and_invert
Test SearchQuery combine and invert operations.
tests/contrib/postgres/test_search.py:92
Function
test_search_query_lexeme
Test SearchQuery with Lexeme.
tests/contrib/postgres/test_search.py:115
Function
test_search_query_types
Test SearchQuery with different search types.
tests/contrib/postgres/test_search.py:73
Function
test_search_rank
Test SearchRank expression.
tests/contrib/postgres/test_search.py:130
Function
test_search_vector
Test SearchVector expression.
tests/contrib/postgres/test_search.py:40
Function
test_search_vector_config_weight
Test SearchVector with config and weight.
tests/contrib/postgres/test_search.py:54
Function
test_select_await_across_transaction_fail
Test select await across transaction that fails.
tests/test_transactions.py:377
Function
test_select_await_across_transaction_success
Test select await across transaction that succeeds.
tests/test_transactions.py:394
Function
test_select_for_update
(db, intfields_data)
tests/test_queryset.py:705
Function
test_select_related
(db)
tests/test_queryset.py:740
Function
test_select_related_100_rows
select_related with FK over 100 rows — column split cache + hydration.
tests/benchmarks/test_hydration.py:71
Function
test_select_related_sets_null_for_null_fk
Test that select related yields null for fields with nulled fk cols.
tests/test_relations.py:371
Function
test_select_related_sets_valid_nulls
When we select related objects, the data we get from db should be set to corresponding attribute.
tests/test_relations.py:383
Function
test_select_related_with_annotation
(db)
tests/test_relations.py:355
Function
test_select_related_with_two_same_models
(db)
tests/test_queryset.py:750
Function
test_select_subquery_with_group_by
(db, group_by_data)
tests/test_group_by.py:361
Function
test_self_ref
(db)
tests/test_relations.py:209
Function
test_self_ref_annotate
(db)
tests/test_relations.py:267
Function
test_self_ref_filter_both
(db)
tests/test_relations.py:257
Function
test_self_ref_filter_by_child
(db)
tests/test_relations.py:247
Function
test_sentinel_bool
()
tests/fields/test_db_default.py:225
Function
test_sentinel_is_singleton
Verify the sentinel instance is the module-level singleton.
tests/fields/test_db_default.py:229
Function
test_sentinel_repr
()
tests/fields/test_db_default.py:221
Method
test_sequential_contexts_isolated
Sequential contexts are isolated from each other.
tests/test_context.py:432
Function
test_set
(conn_handler)
tests/test_connection.py:228
Function
test_set_storage
(conn_handler)
tests/test_connection.py:56
Function
test_shorthand_init
()
tests/model_setup/test_init.py:357
Function
test_simple_delete_model
(state_with_model: State)
tests/migrations/test_operations_state.py:253
Function
test_simple_insert
Test simple INSERT via raw SQL.
tests/test_manual_sql.py:9
Function
test_simple_rename
(state_with_model: State)
tests/migrations/test_operations_state.py:207
Function
test_single_when
(db, intfields_data)
tests/test_case_when.py:18
Function
test_slicing_count
(db, intfields_data)
tests/test_queryset.py:113
Function
test_slicing_negative_values
(db)
tests/test_queryset.py:118
Function
test_slicing_only_limit
(db, intfields_data)
tests/test_queryset.py:99
Function
test_slicing_only_offset
(db, intfields_data)
tests/test_queryset.py:106
Function
test_slicing_start_and_stop
(db, intfields_data)
tests/test_queryset.py:92
Function
test_slicing_steps
(db, intfields_data)
tests/test_queryset.py:141
Function
test_slicing_stop_before_start
(db)
tests/test_queryset.py:132
Function
test_small_int_fields_create
(db)
tests/fields/test_int.py:94
Function
test_small_int_fields_empty
(db)
tests/fields/test_int.py:88
Function
test_small_int_fields_f_expression
(db)
tests/fields/test_int.py:130
Function
test_small_int_fields_min
(db)
tests/fields/test_int.py:105
Function
test_small_int_fields_values
(db)
tests/fields/test_int.py:116
← previous
next →
3,401–3,500 of 3,850, ranked by callers