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
insensitive_posix_regex
(field: Term, value: str)
tortoise/filters.py:167
Function
insensitive_posix_sqlite_regexp
(field: Term, value: str)
tortoise/contrib/sqlite/regex.py:25
Function
insensitive_starts_with
(field: Term, value: str)
tortoise/filters.py:192
Function
install_regexp_functions
(connection: aiosqlite.Connection)
tortoise/contrib/sqlite/regex.py:32
Function
int_encoder
(value: Any, instance: Model, field: Field)
tortoise/filters.py:88
Function
int_fields_context
Context for IntFields model resolution.
tests/test_q.py:138
Function
integrityerror_exception_handler
(self, request: Request, exc: IntegrityError)
tortoise/contrib/blacksheep/__init__.py:110
Function
integrityerror_exception_handler
(request: Request, exc: IntegrityError)
tortoise/contrib/fastapi/__init__.py:33
Function
intfields
(db)
tests/contrib/test_functions.py:12
Function
intfields_data
Build large dataset for IntFields tests.
tests/test_queryset.py:35
Function
intfields_data
Create IntFields test data.
tests/test_case_when.py:11
Function
iregexp
(expr, item)
tortoise/contrib/sqlite/regex.py:38
Method
is_aggregate
(self)
tortoise/contrib/postgres/search.py:46
Method
is_aggregate
(self)
tortoise/contrib/postgres/search.py:64
Function
is_in
(field: Term, value: Any)
tortoise/filters.py:109
Method
is_inited
Check if Tortoise is initialized.
tortoise/__init__.py:127
Function
is_model
Guard to apply this transform to Models only
tortoise/contrib/pylint/__init__.py:29
Function
is_model_field
Guard to apply this transform to Model Fields only
tortoise/contrib/pylint/__init__.py:119
Function
is_null
(field: Term, value: Any)
tortoise/filters.py:139
Function
json_contained_by
(field: Term, value: str)
tortoise/filters.py:244
Function
json_contains
(field: Term, value: str)
tortoise/filters.py:240
Function
json_encoder
(value: Any, instance: Model, field: Field)
tortoise/filters.py:92
Function
json_filter
(field: Term, value: dict)
tortoise/filters.py:248
Function
json_obj
Create test object with JSON data for postgres tests.
tests/contrib/postgres/test_json.py:17
Method
last
Limit queryset to one object and return the last object instead of list.
tortoise/queryset.py:831
Method
latest
Returns the most recent object by ordering descending on the providers fields. :params orderings: Fields to order by. :rais
tortoise/queryset.py:489
Function
latest_earliest_data
Fixture to set up test data for latest/earliest tests.
tests/test_latest_earliest.py:8
Function
lifespan
(app: FastAPI)
examples/fastapi/main_custom_timezone.py:11
Function
lifespan
(app: FastAPI)
examples/fastapi/main.py:13
Method
limit
Returns a QuerySet with at most «limit» related elements.
tortoise/fields/relational.py:110
Function
list_all
(_: Request)
examples/starlette/main.py:21
Function
list_all
(request)
examples/sanic/main.py:15
Function
list_all
()
examples/quart/main.py:19
Function
list_all
(request)
examples/aiohttp/main.py:12
Function
list_encoder
Encodes an iterable of a given field into a database-compatible format.
tortoise/filters.py:68
Function
m2m_uuid_models
Fixture providing UUID model classes for M2M tests. Tests both standard UUID models and source-field models with customized DB names.
tests/fields/test_m2m_uuid.py:20
Function
main
()
tortoise/__init__.py:576
Function
main
()
tortoise/cli/__init__.py:6
Function
make_aware
Make a naive datetime.datetime in a given time zone aware. :raises ValueError: when value is not naive datetime
tortoise/timezone.py:146
Function
make_db_fixture
Factory function to create custom db fixtures with different modules. Use this in subdirectory conftest.py files for tests that need cus
conftest.py:184
Function
make_naive
Make an aware datetime.datetime naive in a given time zone. :raises ValueError: when value is naive datetime
tortoise/timezone.py:163
Function
many_fields_benchmark_dataset
(db, gen_many_fields_data)
tests/benchmarks/conftest.py:46
Method
model
(self)
tortoise/migrations/operations.py:159
Function
model_get_table_db
Fixture for model get_table tests with in-memory SQLite.
tests/test_model_get_table.py:28
Function
multi_db
Fixture that sets up multiple databases for testing.
tests/test_query_api.py:317
Function
my_default
()
tests/fields/test_db_default.py:81
Function
mysql_contains
(field: Term, value: str)
tortoise/backends/mysql/executor.py:56
Function
mysql_ends_with
(field: Term, value: str)
tortoise/backends/mysql/executor.py:68
Function
mysql_insensitive_contains
(field: Term, value: str)
tortoise/backends/mysql/executor.py:78
Function
mysql_insensitive_ends_with
(field: Term, value: str)
tortoise/backends/mysql/executor.py:94
Function
mysql_insensitive_exact
(field: Term, value: str)
tortoise/backends/mysql/executor.py:74
Function
mysql_insensitive_starts_with
(field: Term, value: str)
tortoise/backends/mysql/executor.py:86
Function
mysql_json_contained_by
(field: Term, value_str: str)
tortoise/contrib/mysql/json_functions.py:45
Function
mysql_json_contains
(field: Term, value: str)
tortoise/contrib/mysql/json_functions.py:41
Function
mysql_json_filter
(field: Term, value: dict)
tortoise/contrib/mysql/json_functions.py:74
Function
mysql_posix_regex
(field: Term, value: str)
tortoise/backends/mysql/executor.py:106
Function
mysql_search
(field: Term, value: str)
tortoise/backends/mysql/executor.py:102
Function
mysql_starts_with
(field: Term, value: str)
tortoise/backends/mysql/executor.py:62
Method
name_length
(self)
examples/pydantic/recursive.py:24
Method
name_length
Computes length of name
examples/pydantic/tutorial_4.py:28
Function
noid_model
Fixture that provides a saved NoID model instance.
tests/test_model_methods.py:509
Function
noid_model_unsaved
Fixture that provides an unsaved NoID model instance.
tests/test_model_methods.py:515
Method
noop
(apps: StateApps, schema_editor: BaseSchemaEditor)
tortoise/migrations/operations.py:1133
Function
normalize_apps_config
(apps_config: dict[str, dict[str, Any]])
tortoise/cli/utils.py:167
Method
not_annotated
(self)
tests/testmodels.py:682
Method
not_annotated
(self)
examples/pydantic/recursive.py:48
Function
not_in
(field: Term, value: Any)
tortoise/filters.py:120
Function
not_null
(field: Term, value: Any)
tortoise/filters.py:145
Method
offset
Returns a QuerySet with all related elements offset by «offset».
tortoise/fields/relational.py:116
Method
only
(self, *fields_for_select: str)
tortoise/queryset.py:73
Method
order_by
Returns a QuerySet related elements in order.
tortoise/fields/relational.py:104
Method
ordering
(self)
tortoise/models.py:299
Function
orm_lifespan
(app_instance: FastAPI)
tortoise/contrib/fastapi/__init__.py:288
Method
parameter
(self, pos: int)
tortoise/backends/psycopg/executor.py:19
Function
plan
Print an ordered migration plan and return the formatted lines.
tortoise/migrations/api/plan.py:12
Function
populate_full_name
Populate full_name from first_name + last_name using dialect-specific SQL.
examples/comprehensive_migrations_project/migrations/0011_populate_computed_fields.py:40
Function
populate_post_summary
(apps, schema_editor)
examples/migrations_project/migrations/0013_add_post_summary.py:6
Function
populate_total_amount
Convert total_cents to total_amount (cents to dollars).
examples/comprehensive_migrations_project/migrations/0011_populate_computed_fields.py:16
Function
posix_regex
(field: Term, value: str)
tortoise/filters.py:160
Function
posix_sqlite_regexp
(field: Term, value: str)
tortoise/contrib/sqlite/regex.py:18
Function
post_delete
Register given models post_delete signal. :param senders: Model class
tortoise/signals.py:57
Function
post_save
Register given models post_save signal. :param senders: Model class
tortoise/signals.py:12
Function
postgres_array_contained_by
(field: Term, value: Term)
tortoise/contrib/postgres/array_functions.py:21
Function
postgres_array_contains
(field: Term, value: Term)
tortoise/contrib/postgres/array_functions.py:17
Function
postgres_array_length
Returns a criterion that checks if array length equals the given value
tortoise/contrib/postgres/array_functions.py:29
Function
postgres_array_overlap
(field: Term, value: Term)
tortoise/contrib/postgres/array_functions.py:25
Function
postgres_insensitive_posix_regex
(field: Term, value: str)
tortoise/contrib/postgres/regex.py:23
Function
postgres_json_contained_by
(field: Term, value: str)
tortoise/contrib/postgres/json_functions.py:44
Function
postgres_json_contains
(field: Term, value: str)
tortoise/contrib/postgres/json_functions.py:40
Function
postgres_json_filter
(field: Term, value: dict)
tortoise/contrib/postgres/json_functions.py:107
Function
postgres_posix_regex
(field: Term, value: str)
tortoise/contrib/postgres/regex.py:16
Function
postgres_search
( field: Term, value: Term | str, field_is_vector: bool = False )
tortoise/backends/base_postgres/executor.py:48
Function
pre_delete
Register given models pre_delete signal. :param senders: Model class
tortoise/signals.py:42
Function
pre_save
Register given models pre_save signal. :param senders: Model class
tortoise/signals.py:27
Method
prefetch_related
( self, *args: str | Prefetch )
tortoise/queryset.py:63
Function
process_docstring
(app, what, name, obj, options, lines)
docs/sphinx_autodoc_typehints.py:358
Function
process_signature
(app, what: str, name: str, obj, options, signature, return_annotation)
docs/sphinx_autodoc_typehints.py:156
Function
pydantic_computed_setup
Setup for pydantic computed field tests.
tests/contrib/test_pydantic.py:1692
Function
pydantic_cycle_setup
Setup for pydantic cycle tests with employee hierarchy.
tests/contrib/test_pydantic.py:1464
Function
pydantic_setup
Setup for pydantic tests with models and data.
tests/contrib/test_pydantic.py:32
← previous
next →
1,801–1,900 of 3,850, ranked by callers