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
Function
test_psycopg_index_unsafe
()
tests/schema/test_generate_schema.py:1866
Function
test_psycopg_m2m_no_auto_create
()
tests/schema/test_generate_schema.py:1932
Function
test_psycopg_noid
()
tests/schema/test_generate_schema.py:1561
Function
test_psycopg_pgfields_safe
()
tests/schema/test_generate_schema.py:2014
Function
test_psycopg_pgfields_unsafe
()
tests/schema/test_generate_schema.py:1992
Function
test_psycopg_schema
()
tests/schema/test_generate_schema.py:1646
Function
test_psycopg_schema_no_db_constraint
()
tests/schema/test_generate_schema.py:1589
Function
test_psycopg_schema_qualified_safe
Postgres (psycopg) should produce schema-qualified names with CREATE SCHEMA.
tests/schema/test_generate_schema.py:2088
Function
test_psycopg_schema_qualified_unsafe
Postgres (psycopg) unsafe should produce CREATE SCHEMA without IF NOT EXISTS.
tests/schema/test_generate_schema.py:2109
Function
test_psycopg_schema_safe
()
tests/schema/test_generate_schema.py:1756
Function
test_psycopg_table_and_row_comment_generation
()
tests/schema/test_generate_schema.py:1573
Method
test_pydantic_no_fetch_requires_refresh
(self, db)
tests/test_db_default_insert.py:258
Function
test_q_bad_join_type
()
tests/test_q.py:91
Function
test_q_basic
()
tests/test_q.py:15
Function
test_q_call_annotations_resolved
(db)
tests/test_q.py:286
Function
test_q_call_basic
(int_fields_context)
tests/test_q.py:159
Function
test_q_call_basic_and
(int_fields_context)
tests/test_q.py:165
Function
test_q_call_basic_or
(int_fields_context)
tests/test_q.py:171
Function
test_q_call_complex_char
(char_fields_context)
tests/test_q.py:219
Function
test_q_call_complex_char2
(char_fields_context)
tests/test_q.py:228
Function
test_q_call_complex_char3
(char_fields_context)
tests/test_q.py:241
Function
test_q_call_complex_int
(int_fields_context)
tests/test_q.py:201
Function
test_q_call_complex_int2
(int_fields_context)
tests/test_q.py:207
Function
test_q_call_complex_int3
(int_fields_context)
tests/test_q.py:213
Function
test_q_call_multiple_and
(int_fields_context)
tests/test_q.py:177
Function
test_q_call_multiple_and2
(int_fields_context)
tests/test_q.py:189
Function
test_q_call_multiple_or
(int_fields_context)
tests/test_q.py:183
Function
test_q_call_multiple_or2
(int_fields_context)
tests/test_q.py:195
Function
test_q_call_with_blank_and
(char_fields_context)
tests/test_q.py:250
Function
test_q_call_with_blank_and2
(char_fields_context)
tests/test_q.py:262
Function
test_q_call_with_blank_and3
(char_fields_context)
tests/test_q.py:274
Function
test_q_call_with_blank_or
(char_fields_context)
tests/test_q.py:256
Function
test_q_call_with_blank_or2
(char_fields_context)
tests/test_q.py:268
Function
test_q_call_with_blank_or3
(char_fields_context)
tests/test_q.py:280
Function
test_q_compound
()
tests/test_q.py:22
Function
test_q_compound_and
()
tests/test_q.py:58
Function
test_q_compound_and_notq
()
tests/test_q.py:81
Function
test_q_compound_or
()
tests/test_q.py:40
Function
test_q_compound_or_notq
()
tests/test_q.py:76
Function
test_q_equality
()
tests/test_q.py:110
Function
test_q_notq
()
tests/test_q.py:86
Function
test_q_object_backward_related_query
(db)
tests/test_filtering.py:73
Function
test_q_object_related_query
(db)
tests/test_filtering.py:85
Function
test_q_object_when
(db, intfields_data)
tests/test_case_when.py:56
Function
test_q_partial_and
()
tests/test_q.py:96
Function
test_q_partial_or
()
tests/test_q.py:103
Function
test_query_parameterization
(query_api_db)
tests/test_query_api.py:98
Function
test_query_user
(db)
examples/pytest/test_example.py:14
Function
test_query_without_app
()
examples/fastapi/_tests.py:182
Function
test_random_hex_produces_dialect_specific_sql
RandomHex should produce different SQL for each dialect.
tests/migrations/test_schema_editor_backends.py:514
Function
test_raw
(db)
tests/test_model_methods.py:495
Function
test_raw_sql_count
(db)
tests/test_queryset.py:789
Function
test_raw_sql_filter
(db)
tests/test_queryset.py:806
Function
test_raw_sql_select
(db)
tests/test_queryset.py:797
Function
test_rawsql_annotation_referenced_in_annotation
(db)
tests/test_queryset.py:843
Function
test_reconnect
Test reconnection after connection expiry.
tests/backends/test_reconnect.py:11
Function
test_reconnect_transaction_start
Test reconnection at transaction start.
tests/backends/test_reconnect.py:28
Function
test_recorder_quotes_mssql_identifiers
()
tests/migrations/test_recorder.py:37
Function
test_recorder_quotes_mysql_identifiers
()
tests/migrations/test_recorder.py:22
Function
test_recorder_reads_and_writes
()
tests/migrations/test_runtime_migrations.py:388
Function
test_recursive
(db)
tests/test_relations.py:599
Function
test_refresh_from_db
(db)
tests/test_update.py:204
Function
test_regex_filter
(db)
tests/test_posix_regex_filter.py:9
Function
test_regex_filter_works_with_null_field_postgres
(db)
tests/test_posix_regex_filter.py:20
Function
test_regex_filter_works_with_null_field_sqlite
(db)
tests/test_posix_regex_filter.py:35
Function
test_regular_field_describe
Test that regular fields have both flags as False.
tests/test_datetime_migration_integration.py:44
Function
test_relation_with_unique
(db)
tests/test_relations_with_unique.py:8
Function
test_relations
(db)
tests/test_relations.py:37
Function
test_relations_values_related_m2m
(benchmark, create_team_with_participants)
tests/benchmarks/test_relations.py:6
Function
test_remove_check_constraint_generates_sql
remove_constraint with CheckConstraint generates DROP CONSTRAINT SQL.
tests/migrations/test_schema_editor_constraints.py:485
Function
test_remove_constraint_fallback_with_fakeclient
With FakeClient (no introspection) falls back to deterministic uid_ name.
tests/migrations/test_schema_editor_constraints.py:185
Function
test_remove_constraint_resolves_fk_for_introspection
remove_constraint with FK field name resolves to DB column for introspection query.
tests/migrations/test_schema_editor_constraints.py:389
Function
test_remove_constraint_uses_introspected_name
remove_constraint should use the introspected name instead of uid_.
tests/migrations/test_schema_editor_constraints.py:145
Function
test_remove_field
RemoveField drops a column from a real table.
tests/migrations/test_operations_real_db.py:317
Function
test_remove_field
(state_with_model: State)
tests/migrations/test_operations_state.py:393
Function
test_remove_field_error_message_includes_field_name
RemoveField.state_forward() error should include the missing field name.
tests/migrations/test_operations_database.py:406
Function
test_remove_field_generates_drop_column_sql
()
tests/migrations/test_schema_editor_sql.py:70
Function
test_remove_field_generates_sql
RemoveField should generate ALTER TABLE ... DROP COLUMN SQL.
tests/migrations/test_operations_database.py:425
Function
test_remove_field_relational
( state_with_two_models: State, field_class: type[ForeignKeyFieldInstance | OneToOneFieldInstance | Ma
tests/migrations/test_operations_state.py:411
Function
test_remove_index_operation_runs_sql
()
tests/migrations/test_operations_database.py:142
Function
test_rename_constraint_backward_runs_sql
()
tests/migrations/test_operations_database.py:256
Function
test_rename_constraint_resolves_fk_fields
rename_constraint on FK model uses resolved column names.
tests/migrations/test_schema_editor_constraints.py:407
Function
test_rename_index_operation_runs_sql
()
tests/migrations/test_operations_database.py:163
Function
test_rename_model
RenameModel renames a table in the real database. Uses default table names (lowercased model name) because RenameModel only renames the under
tests/migrations/test_operations_real_db.py:368
Function
test_rename_model_generates_sql
RenameModel should generate ALTER TABLE ... RENAME TO SQL when table name changes.
tests/migrations/test_operations_database.py:444
Function
test_rename_model_unregisters_old_state
()
tests/migrations/test_operations_rename_model_state.py:9
Function
test_rename_with_fk
( state_with_model: State, field_class: type[ForeignKeyFieldInstance | OneToOneFieldInstance | ManyToM
tests/migrations/test_operations_state.py:229
Function
test_render_value_now_still_works
render_value() still serializes Now correctly (regression check).
tests/fields/test_db_default.py:820
Function
test_render_value_random_hex
render_value() serializes RandomHex as RandomHex(), not as SqlDefault(...).
tests/fields/test_db_default.py:794
Function
test_render_value_sql_default_still_works
render_value() still serializes plain SqlDefault correctly (regression check).
tests/fields/test_db_default.py:807
Function
test_render_value_with_now
render_value() preserves Now() in migration files.
tests/fields/test_db_default.py:770
Function
test_render_value_with_sql_default
render_value() preserves SqlDefault in migration files.
tests/fields/test_db_default.py:782
Function
test_repr
(tournament_model, tournament_model_unsaved)
tests/test_model_methods.py:206
Method
test_repr
(self)
tests/test_db_default_insert.py:29
Method
test_require_context_raises_when_no_context
require_context raises when no context is active. Note: With the new architecture, Tortoise.init() creates a default context, so this
tests/test_context.py:97
Method
test_require_context_returns_active_context
require_context returns the active context when one exists.
tests/test_context.py:116
Function
test_required_by_default
()
tests/fields/test_common.py:8
Method
test_required_false_with_db_default
(self)
tests/test_db_default_insert.py:47
Function
test_reset
(conn_handler)
tests/test_connection.py:242
Function
test_reset_queryset_on_query
(db)
tests/test_relations.py:92
← previous
next →
3,301–3,400 of 3,850, ranked by callers