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_uuid_pk
(self, db)
tests/test_primary_key.py:29
Method
test_uuid_pk_default
(self, db)
tests/test_primary_key.py:38
Method
test_uuid_pk_fk
(self, db)
tests/test_primary_key.py:48
Function
test_validate_catches_permanently_unresolved_relation
validate_relations_initialized should raise when a FK target model is never created, ensuring silent corruption cannot happen.
tests/migrations/test_operations_state.py:189
Function
test_validate_dict
Test JSON field with validate from dict.
tests/fields/test_json.py:355
Function
test_validate_list
Test JSON field with validate from list.
tests/fields/test_json.py:363
Function
test_validate_str
Test JSON field with validate from string.
tests/fields/test_json.py:347
Function
test_validator_comma_separated_integer_list
(db)
tests/test_validators.py:79
Function
test_validator_ipv4
(db)
tests/test_validators.py:57
Function
test_validator_ipv46
(db)
tests/test_validators.py:71
Function
test_validator_ipv6
(db)
tests/test_validators.py:64
Function
test_validator_max_length
(db)
tests/test_validators.py:17
Function
test_validator_max_value
(db)
tests/test_validators.py:44
Function
test_validator_min_length
(db)
tests/test_validators.py:24
Function
test_validator_min_value
(db)
tests/test_validators.py:31
Function
test_validator_regex
(db)
tests/test_validators.py:10
Function
test_values
(sql_context)
tests/test_sql.py:122
Function
test_values
(db)
tests/fields/test_char.py:52
Function
test_values
(db)
tests/fields/test_bool.py:34
Function
test_values
Test JSON field in values().
tests/fields/test_json.py:314
Function
test_values
(db)
tests/fields/test_binary.py:26
Function
test_values
(db)
tests/fields/test_text.py:26
Function
test_values
Test array field in values().
tests/fields/test_array.py:42
Function
test_values
(db)
tests/fields/test_decimal.py:90
Function
test_values
(db)
tests/fields/test_float.py:53
Function
test_values_100_rows_many_fields
values() over 100 rows with 8 selected fields.
tests/benchmarks/test_hydration.py:50
Function
test_values_annotations_length
(db)
tests/test_values.py:204
Function
test_values_annotations_trim
(db)
tests/test_values.py:230
Function
test_values_bad_key
(db)
tests/test_values.py:155
Method
test_values_by_fk
(self, db)
tests/test_source_field.py:289
Function
test_values_list
(sql_context)
tests/test_sql.py:137
Function
test_values_list
(db)
tests/fields/test_char.py:59
Function
test_values_list
(db)
tests/fields/test_bool.py:41
Function
test_values_list
Test JSON field in values_list().
tests/fields/test_json.py:322
Function
test_values_list
(db)
tests/fields/test_binary.py:36
Function
test_values_list
(db)
tests/fields/test_text.py:33
Function
test_values_list
Test array field in values_list().
tests/fields/test_array.py:51
Function
test_values_list
(db)
tests/fields/test_decimal.py:98
Function
test_values_list
(db)
tests/fields/test_float.py:60
Function
test_values_list_100_rows
values_list() over 100 rows — resolve_to_python_value called per field per row.
tests/benchmarks/test_hydration.py:38
Function
test_values_list_annotations_length
(db)
tests/test_values.py:192
Function
test_values_list_annotations_trim
(db)
tests/test_values.py:221
Function
test_values_list_bad_key
(db)
tests/test_values.py:164
Function
test_values_list_related_bad_key
(db)
tests/test_values.py:182
Function
test_values_list_related_fk
(db)
tests/test_values.py:22
Function
test_values_list_related_fk_itself
(db)
tests/test_values.py:106
Function
test_values_list_related_m2m
(db)
tests/test_values.py:86
Function
test_values_list_related_m2m_itself
(db)
tests/test_values.py:144
Function
test_values_list_related_rfk
(db)
tests/test_values.py:53
Function
test_values_list_related_rfk_itself
(db)
tests/test_values.py:124
Function
test_values_list_related_rfk_reuse_query
(db)
tests/test_values.py:62
Function
test_values_list_select_relation_field
(db)
tests/test_filtering.py:506
Function
test_values_related_bad_key
(db)
tests/test_values.py:173
Function
test_values_related_fk
(db)
tests/test_values.py:13
Function
test_values_related_fk_itself
(db)
tests/test_values.py:97
Function
test_values_related_m2m
(db)
tests/test_values.py:75
Function
test_values_related_m2m_itself
(db)
tests/test_values.py:133
Function
test_values_related_rfk
(db)
tests/test_values.py:31
Function
test_values_related_rfk_itself
(db)
tests/test_values.py:115
Function
test_values_related_rfk_reuse_query
(db)
tests/test_values.py:40
Method
test_values_reverse_relation
(self, db)
tests/test_source_field.py:193
Function
test_values_select_relation
(db)
tests/test_filtering.py:482
Function
test_values_select_relation_field
(db)
tests/test_filtering.py:490
Function
test_values_select_relation_field_name_override
(db)
tests/test_filtering.py:498
Function
test_values_with_annotations
(db)
tests/test_queryset_reuse.py:86
Function
test_values_with_custom_function
(db)
tests/test_values.py:243
Function
test_values_with_json_field_array_attribute
Test F expression with JSON field array attribute.
tests/test_f.py:101
Function
test_values_with_json_field_attribute
Test F expression with JSON field attribute.
tests/test_f.py:68
Function
test_values_with_json_field_attribute_of_attribute
Test F expression with nested JSON field attribute.
tests/test_f.py:77
Function
test_values_with_json_field_int_array_element
Test F expression with JSON field integer array element. Among the supported dialects, only SQLite will return the correct type.
tests/test_f.py:114
Function
test_values_with_json_field_str_array_element
Test F expression with JSON field string array element.
tests/test_f.py:86
Function
test_version
()
tests/test_version.py:38
Method
test_warning
(self)
tests/test_primary_key.py:244
Function
test_where_and_having
(db)
tests/test_aggregation.py:267
Function
test_writer_allows_partial_default
(tmp_path: Path, monkeypatch)
tests/migrations/test_writer.py:386
Function
test_writer_excludes_fk_source_field
(tmp_path: Path, monkeypatch)
tests/migrations/test_writer.py:262
Function
test_writer_format_create_model_basic
(tmp_path: Path, monkeypatch)
tests/migrations/test_writer.py:68
Function
test_writer_format_options_indexes_constraints
(tmp_path: Path, monkeypatch)
tests/migrations/test_writer.py:132
Function
test_writer_format_rename_and_alter
(tmp_path: Path, monkeypatch)
tests/migrations/test_writer.py:99
Function
test_writer_format_runpython
(tmp_path: Path, monkeypatch)
tests/migrations/test_writer.py:532
Function
test_writer_handles_enum_fields
Test that IntEnumField and CharEnumField are rendered correctly (not as FieldInstance).
tests/migrations/test_writer.py:487
Function
test_writer_handles_one_to_one_field
Test that OneToOneField is rendered without unique=True (it's implicit).
tests/migrations/test_writer.py:449
Function
test_writer_handles_tuple_indexes_in_options
Tuple-style indexes in options should be normalised to Index objects without crashing.
tests/migrations/test_writer.py:190
Function
test_writer_rejects_lambda_default
(tmp_path: Path, monkeypatch)
tests/migrations/test_writer.py:362
Function
test_writer_rejects_local_function_default
(tmp_path: Path, monkeypatch)
tests/migrations/test_writer.py:426
Function
test_writer_rejects_partial_lambda
(tmp_path: Path, monkeypatch)
tests/migrations/test_writer.py:406
Function
test_writer_renders_fk_field
(tmp_path: Path, monkeypatch)
tests/migrations/test_writer.py:220
Function
test_writer_schema_with_create_model
Full migration with CreateSchema + CreateModel serializes correctly.
tests/migrations/test_schema_qualified_migrations.py:516
Function
test_writer_serializes_create_schema
()
tests/migrations/test_schema_qualified_migrations.py:496
Function
test_writer_serializes_drop_schema
()
tests/migrations/test_schema_qualified_migrations.py:506
Function
test_writer_serializes_on_delete_enum
(tmp_path: Path, monkeypatch)
tests/migrations/test_writer.py:295
Function
test_writer_skips_missing_db_index
(tmp_path: Path, monkeypatch)
tests/migrations/test_writer.py:335
Function
test_wrong_app_init
()
tests/model_setup/test_bad_relation_reference.py:49
Function
test_wrong_model_init
()
tests/model_setup/test_bad_relation_reference.py:74
Function
test_zoneinfo
()
tests/fields/test_time.py:736
Method
to_config
(self)
tortoise/config.py:43
Method
to_db_value
(self, value: Any, instance: type[Model] | Model)
tortoise/contrib/mysql/fields.py:43
Method
to_db_value
( self, value: DatetimeFieldQueryValueType | None, instance: type[Model] | Model )
tortoise/fields/data.py:484
Method
to_db_value
( self, value: DateFieldQueryValueType | None, instance: type[Model] | Model )
tortoise/fields/data.py:549
Method
to_db_value
( self, value: datetime.time | datetime.timedelta | None, instance: type[Model] | Mode
tortoise/fields/data.py:611
← previous
next →
3,701–3,800 of 3,850, ranked by callers