MCPcopy Create free account

hub / github.com/tortoise/tortoise-orm / functions

Functions3,850 in github.com/tortoise/tortoise-orm

Functioninsensitive_posix_regex
(field: Term, value: str)
tortoise/filters.py:167
Functioninsensitive_posix_sqlite_regexp
(field: Term, value: str)
tortoise/contrib/sqlite/regex.py:25
Functioninsensitive_starts_with
(field: Term, value: str)
tortoise/filters.py:192
Functioninstall_regexp_functions
(connection: aiosqlite.Connection)
tortoise/contrib/sqlite/regex.py:32
Functionint_encoder
(value: Any, instance: Model, field: Field)
tortoise/filters.py:88
Functionint_fields_context
Context for IntFields model resolution.
tests/test_q.py:138
Functionintegrityerror_exception_handler
(self, request: Request, exc: IntegrityError)
tortoise/contrib/blacksheep/__init__.py:110
Functionintegrityerror_exception_handler
(request: Request, exc: IntegrityError)
tortoise/contrib/fastapi/__init__.py:33
Functionintfields
(db)
tests/contrib/test_functions.py:12
Functionintfields_data
Build large dataset for IntFields tests.
tests/test_queryset.py:35
Functionintfields_data
Create IntFields test data.
tests/test_case_when.py:11
Functioniregexp
(expr, item)
tortoise/contrib/sqlite/regex.py:38
Methodis_aggregate
(self)
tortoise/contrib/postgres/search.py:46
Methodis_aggregate
(self)
tortoise/contrib/postgres/search.py:64
Functionis_in
(field: Term, value: Any)
tortoise/filters.py:109
Methodis_inited
Check if Tortoise is initialized.
tortoise/__init__.py:127
Functionis_model
Guard to apply this transform to Models only
tortoise/contrib/pylint/__init__.py:29
Functionis_model_field
Guard to apply this transform to Model Fields only
tortoise/contrib/pylint/__init__.py:119
Functionis_null
(field: Term, value: Any)
tortoise/filters.py:139
Functionjson_contained_by
(field: Term, value: str)
tortoise/filters.py:244
Functionjson_contains
(field: Term, value: str)
tortoise/filters.py:240
Functionjson_encoder
(value: Any, instance: Model, field: Field)
tortoise/filters.py:92
Functionjson_filter
(field: Term, value: dict)
tortoise/filters.py:248
Functionjson_obj
Create test object with JSON data for postgres tests.
tests/contrib/postgres/test_json.py:17
Methodlast
Limit queryset to one object and return the last object instead of list.
tortoise/queryset.py:831
Methodlatest
Returns the most recent object by ordering descending on the providers fields. :params orderings: Fields to order by. :rais
tortoise/queryset.py:489
Functionlatest_earliest_data
Fixture to set up test data for latest/earliest tests.
tests/test_latest_earliest.py:8
Functionlifespan
(app: FastAPI)
examples/fastapi/main_custom_timezone.py:11
Functionlifespan
(app: FastAPI)
examples/fastapi/main.py:13
Methodlimit
Returns a QuerySet with at most «limit» related elements.
tortoise/fields/relational.py:110
Functionlist_all
(_: Request)
examples/starlette/main.py:21
Functionlist_all
(request)
examples/sanic/main.py:15
Functionlist_all
()
examples/quart/main.py:19
Functionlist_all
(request)
examples/aiohttp/main.py:12
Functionlist_encoder
Encodes an iterable of a given field into a database-compatible format.
tortoise/filters.py:68
Functionm2m_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
Functionmain
()
tortoise/__init__.py:576
Functionmain
()
tortoise/cli/__init__.py:6
Functionmake_aware
Make a naive datetime.datetime in a given time zone aware. :raises ValueError: when value is not naive datetime
tortoise/timezone.py:146
Functionmake_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
Functionmake_naive
Make an aware datetime.datetime naive in a given time zone. :raises ValueError: when value is naive datetime
tortoise/timezone.py:163
Functionmany_fields_benchmark_dataset
(db, gen_many_fields_data)
tests/benchmarks/conftest.py:46
Methodmodel
(self)
tortoise/migrations/operations.py:159
Functionmodel_get_table_db
Fixture for model get_table tests with in-memory SQLite.
tests/test_model_get_table.py:28
Functionmulti_db
Fixture that sets up multiple databases for testing.
tests/test_query_api.py:317
Functionmy_default
()
tests/fields/test_db_default.py:81
Functionmysql_contains
(field: Term, value: str)
tortoise/backends/mysql/executor.py:56
Functionmysql_ends_with
(field: Term, value: str)
tortoise/backends/mysql/executor.py:68
Functionmysql_insensitive_contains
(field: Term, value: str)
tortoise/backends/mysql/executor.py:78
Functionmysql_insensitive_ends_with
(field: Term, value: str)
tortoise/backends/mysql/executor.py:94
Functionmysql_insensitive_exact
(field: Term, value: str)
tortoise/backends/mysql/executor.py:74
Functionmysql_insensitive_starts_with
(field: Term, value: str)
tortoise/backends/mysql/executor.py:86
Functionmysql_json_contained_by
(field: Term, value_str: str)
tortoise/contrib/mysql/json_functions.py:45
Functionmysql_json_contains
(field: Term, value: str)
tortoise/contrib/mysql/json_functions.py:41
Functionmysql_json_filter
(field: Term, value: dict)
tortoise/contrib/mysql/json_functions.py:74
Functionmysql_posix_regex
(field: Term, value: str)
tortoise/backends/mysql/executor.py:106
Functionmysql_search
(field: Term, value: str)
tortoise/backends/mysql/executor.py:102
Functionmysql_starts_with
(field: Term, value: str)
tortoise/backends/mysql/executor.py:62
Methodname_length
(self)
examples/pydantic/recursive.py:24
Methodname_length
Computes length of name
examples/pydantic/tutorial_4.py:28
Functionnoid_model
Fixture that provides a saved NoID model instance.
tests/test_model_methods.py:509
Functionnoid_model_unsaved
Fixture that provides an unsaved NoID model instance.
tests/test_model_methods.py:515
Methodnoop
(apps: StateApps, schema_editor: BaseSchemaEditor)
tortoise/migrations/operations.py:1133
Functionnormalize_apps_config
(apps_config: dict[str, dict[str, Any]])
tortoise/cli/utils.py:167
Methodnot_annotated
(self)
tests/testmodels.py:682
Methodnot_annotated
(self)
examples/pydantic/recursive.py:48
Functionnot_in
(field: Term, value: Any)
tortoise/filters.py:120
Functionnot_null
(field: Term, value: Any)
tortoise/filters.py:145
Methodoffset
Returns a QuerySet with all related elements offset by «offset».
tortoise/fields/relational.py:116
Methodonly
(self, *fields_for_select: str)
tortoise/queryset.py:73
Methodorder_by
Returns a QuerySet related elements in order.
tortoise/fields/relational.py:104
Methodordering
(self)
tortoise/models.py:299
Functionorm_lifespan
(app_instance: FastAPI)
tortoise/contrib/fastapi/__init__.py:288
Methodparameter
(self, pos: int)
tortoise/backends/psycopg/executor.py:19
Functionplan
Print an ordered migration plan and return the formatted lines.
tortoise/migrations/api/plan.py:12
Functionpopulate_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
Functionpopulate_post_summary
(apps, schema_editor)
examples/migrations_project/migrations/0013_add_post_summary.py:6
Functionpopulate_total_amount
Convert total_cents to total_amount (cents to dollars).
examples/comprehensive_migrations_project/migrations/0011_populate_computed_fields.py:16
Functionposix_regex
(field: Term, value: str)
tortoise/filters.py:160
Functionposix_sqlite_regexp
(field: Term, value: str)
tortoise/contrib/sqlite/regex.py:18
Functionpost_delete
Register given models post_delete signal. :param senders: Model class
tortoise/signals.py:57
Functionpost_save
Register given models post_save signal. :param senders: Model class
tortoise/signals.py:12
Functionpostgres_array_contained_by
(field: Term, value: Term)
tortoise/contrib/postgres/array_functions.py:21
Functionpostgres_array_contains
(field: Term, value: Term)
tortoise/contrib/postgres/array_functions.py:17
Functionpostgres_array_length
Returns a criterion that checks if array length equals the given value
tortoise/contrib/postgres/array_functions.py:29
Functionpostgres_array_overlap
(field: Term, value: Term)
tortoise/contrib/postgres/array_functions.py:25
Functionpostgres_insensitive_posix_regex
(field: Term, value: str)
tortoise/contrib/postgres/regex.py:23
Functionpostgres_json_contained_by
(field: Term, value: str)
tortoise/contrib/postgres/json_functions.py:44
Functionpostgres_json_contains
(field: Term, value: str)
tortoise/contrib/postgres/json_functions.py:40
Functionpostgres_json_filter
(field: Term, value: dict)
tortoise/contrib/postgres/json_functions.py:107
Functionpostgres_posix_regex
(field: Term, value: str)
tortoise/contrib/postgres/regex.py:16
Functionpostgres_search
( field: Term, value: Term | str, field_is_vector: bool = False )
tortoise/backends/base_postgres/executor.py:48
Functionpre_delete
Register given models pre_delete signal. :param senders: Model class
tortoise/signals.py:42
Functionpre_save
Register given models pre_save signal. :param senders: Model class
tortoise/signals.py:27
Methodprefetch_related
( self, *args: str | Prefetch )
tortoise/queryset.py:63
Functionprocess_docstring
(app, what, name, obj, options, lines)
docs/sphinx_autodoc_typehints.py:358
Functionprocess_signature
(app, what: str, name: str, obj, options, signature, return_annotation)
docs/sphinx_autodoc_typehints.py:156
Functionpydantic_computed_setup
Setup for pydantic computed field tests.
tests/contrib/test_pydantic.py:1692
Functionpydantic_cycle_setup
Setup for pydantic cycle tests with employee hierarchy.
tests/contrib/test_pydantic.py:1464
Functionpydantic_setup
Setup for pydantic tests with models and data.
tests/contrib/test_pydantic.py:32
← previousnext →1,801–1,900 of 3,850, ranked by callers