MCPcopy Create free account

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

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

Methodapps
Get the Apps registry for this context. Returns: The Apps instance if initialized, None otherwise.
tortoise/context.py:178
Methodapps
Get the Apps registry from current context. Returns None if no context is active.
tortoise/__init__.py:107
Functionarray_contained_by
(field: Term, value: Any | Sequence[Any])
tortoise/filters.py:256
Functionarray_contains
(field: Term, value: Any | Sequence[Any])
tortoise/filters.py:252
Functionarray_encoder
(value: Any | Sequence[Any], instance: Model, field: Field)
tortoise/filters.py:96
Functionarray_length
(field: Term, value: int)
tortoise/filters.py:264
Functionarray_overlap
(field: Term, value: Any | Sequence[Any])
tortoise/filters.py:260
Functionasync_callable_default
()
tests/testmodels.py:1067
Functionatomic
Transaction decorator. You can wrap your function with this decorator to run it into one transaction. If error occurs transaction will r
tortoise/transactions.py:47
Methodbegin
(self)
tortoise/backends/oracle/client.py:130
Methodbegin
(self)
tortoise/backends/mssql/client.py:99
Methodbegin
(self)
tortoise/backends/odbc/client.py:192
Functionbench
()
tests/benchmarks/test_field_attribute_lookup.py:27
Functionbench
()
tests/benchmarks/test_update.py:11
Functionbench
()
tests/benchmarks/test_get.py:13
Functionbench
()
tests/benchmarks/test_hydration.py:19
Functionbench
()
tests/benchmarks/test_filter.py:13
Functionbench
()
tests/benchmarks/test_state_building.py:53
Functionbench
()
tests/benchmarks/test_bulk_create.py:19
Functionbench
()
tests/benchmarks/test_relations.py:10
Functionbench
()
tests/benchmarks/test_expressions.py:12
Functionbench
()
tests/benchmarks/test_create.py:11
Functionbetween_and
(field: Term, value: tuple[Any, Any])
tortoise/filters.py:131
Functionbool_encoder
(value: Any, instance: Model, field: Field)
tortoise/filters.py:80
Functionboolean_fields_data
(db)
tests/test_filters.py:215
Functionbuilder_ready
(app)
docs/sphinx_autodoc_typehints.py:418
Methodbulk_create
This method inserts the provided list of objects into the database in an efficient manner (generally only 1 query, no matter how many
tortoise/queryset.py:874
Methodbulk_update
Update the given fields in each of the given objects in the database. :param objects: List of objects to bulk create :param
tortoise/queryset.py:917
Functioncallable_default
()
tests/testmodels.py:1063
Functioncamelize_var
(var_name: str)
tests/testmodels.py:1035
Methodcapabilities
(self)
tortoise/queryset.py:107
Methodchanges
(self)
tests/cli/test_cli.py:485
Functionchar_fields_context
Context for CharFields model resolution.
tests/test_q.py:149
Functionchar_fields_data
(db)
tests/test_filters.py:30
Functionchar_fk_data
(db)
tests/test_filters.py:309
Functionclear_full_name
Reverse: Clear full_name field.
examples/comprehensive_migrations_project/migrations/0011_populate_computed_fields.py:50
Functionclear_total_amount
Reverse: Clear total_amount field.
examples/comprehensive_migrations_project/migrations/0011_populate_computed_fields.py:28
Functionclient
()
examples/sanic/_tests.py:24
Functionclient
(api)
examples/blacksheep/_tests.py:12
Functionclient
()
examples/fastapi/_tests.py:50
Functionclient_east
()
examples/fastapi/_tests.py:57
Methodclone
(self)
tortoise/migrations/schema_generator/state.py:34
Methodclone
( self, model_states: dict[tuple[str, str], ModelState] | None = None, )
tortoise/migrations/schema_generator/state_apps.py:138
Methodclose
Closes the DB connection.
tortoise/backends/base/client.py:159
Functionclose_orm
()
tortoise/contrib/starlette/__init__.py:92
Functionclose_orm
(app)
tortoise/contrib/sanic/__init__.py:110
Functionclose_orm
(context)
tortoise/contrib/blacksheep/__init__.py:99
Functionclose_orm
()
tortoise/contrib/quart/__init__.py:96
Functionclose_orm
(app)
tortoise/contrib/aiohttp/__init__.py:90
Functionconfigure_psycopg
Configure psycopg timeout for faster tests.
conftest.py:16
Functionconn_handler
()
tests/test_connection.py:13
Methodconnections
Get the ConnectionHandler for this context. Creates a new ConnectionHandler on first access (lazy initialization). The handl
tortoise/context.py:162
Methodconstraints
Returns a dict with constraints defined in the Pydantic/JSONSchema format.
tortoise/fields/base.py:369
Methodconstraints
(self)
tortoise/fields/data.py:128
Methodconstraints
(self)
tortoise/fields/data.py:161
Methodconstraints
(self)
tortoise/fields/data.py:192
Methodconstraints
(self)
tortoise/fields/data.py:241
Methodconstraints
(self)
tortoise/fields/data.py:510
Functioncontains
(field: Term, value: str)
tortoise/filters.py:151
Functioncounting_clone
(self)
tests/migrations/test_state_performance.py:74
Methodcreate
Create a related record in the DB and returns the object, automatically setting the foreign key relationship to the parent instance.
tortoise/fields/relational.py:122
Methodcreate_connection
(self, with_db: bool)
tortoise/backends/psycopg/client.py:65
Methodcreate_connection
(self, with_db: bool)
tortoise/backends/sqlite/client.py:293
Methodcreate_connection
(self, with_db: bool)
tortoise/backends/asyncpg/client.py:41
Functioncreate_decimals
(db)
tests/benchmarks/conftest.py:111
Methodcreate_pool
(self, **kwargs)
tortoise/backends/base_postgres/client.py:100
Functioncreate_team_with_participants
(db)
tests/benchmarks/conftest.py:100
Functioncreate_user
(user: UserIn_Pydantic)
examples/fastapi/routers.py:14
Methoddatabase_backward
( self, app_label: str, old_state: State, new_state: State, state_edit
tortoise/migrations/operations.py:65
Methoddatabase_backward
( self, app_label: str, old_state: State, new_state: State, state_edit
tortoise/migrations/operations.py:118
Methoddatabase_backward
( self, app_label: str, old_state: State, new_state: State, state_edit
tortoise/migrations/operations.py:210
Methoddatabase_backward
( self, app_label: str, old_state: State, new_state: State, state_edit
tortoise/migrations/operations.py:287
Methoddatabase_backward
( self, app_label: str, old_state: State, new_state: State, state_edit
tortoise/migrations/operations.py:352
Methoddatabase_backward
( self, app_label: str, old_state: State, new_state: State, state_edit
tortoise/migrations/operations.py:388
Methoddatabase_backward
( self, app_label: str, old_state: State, new_state: State, state_edit
tortoise/migrations/operations.py:435
Methoddatabase_backward
( self, app_label: str, old_state: State, new_state: State, state_edit
tortoise/migrations/operations.py:485
Methoddatabase_backward
( self, app_label: str, old_state: State, new_state: State, state_edit
tortoise/migrations/operations.py:606
Methoddatabase_backward
( self, app_label: str, old_state: State, new_state: State, state_edit
tortoise/migrations/operations.py:677
Methoddatabase_backward
( self, app_label: str, old_state: State, new_state: State, state_edit
tortoise/migrations/operations.py:741
Methoddatabase_backward
( self, app_label: str, old_state: State, new_state: State, state_edit
tortoise/migrations/operations.py:831
Methoddatabase_backward
( self, app_label: str, old_state: State, new_state: State, state_edit
tortoise/migrations/operations.py:882
Methoddatabase_backward
( self, app_label: str, old_state: State, new_state: State, state_edit
tortoise/migrations/operations.py:956
Methoddatabase_backward
( self, app_label: str, old_state: State, new_state: State, state_edit
tortoise/migrations/operations.py:1117
Methoddatabase_backward
( self, app_label: str, old_state: State, new_state: State, state_edit
tortoise/migrations/operations.py:1189
Methoddatabase_backward
(self, app_label, old_state, new_state, state_editor)
tests/migrations/test_runtime_migrations.py:354
Methoddatabase_forward
( self, app_label: str, old_state: State, new_state: State, state_edit
tortoise/migrations/operations.py:56
Methoddatabase_forward
( self, app_label: str, old_state: State, new_state: State, state_edit
tortoise/migrations/operations.py:198
Methoddatabase_forward
( self, app_label: str, old_state: State, new_state: State, state_edit
tortoise/migrations/operations.py:270
Methoddatabase_forward
( self, app_label: str, old_state: State, new_state: State, state_edit
tortoise/migrations/operations.py:340
Methoddatabase_forward
( self, app_label: str, old_state: State, new_state: State, state_edit
tortoise/migrations/operations.py:379
Methoddatabase_forward
( self, app_label: str, old_state: State, new_state: State, state_edit
tortoise/migrations/operations.py:423
Methoddatabase_forward
( self, app_label: str, old_state: State, new_state: State, state_edit
tortoise/migrations/operations.py:472
Methoddatabase_forward
( self, app_label: str, old_state: State, new_state: State, state_edit
tortoise/migrations/operations.py:579
Methoddatabase_forward
( self, app_label: str, old_state: State, new_state: State, state_edit
tortoise/migrations/operations.py:665
Methoddatabase_forward
( self, app_label: str, old_state: State, new_state: State, state_edit
tortoise/migrations/operations.py:727
Methoddatabase_forward
( self, app_label: str, old_state: State, new_state: State, state_edit
tortoise/migrations/operations.py:817
Methoddatabase_forward
( self, app_label: str, old_state: State, new_state: State, state_edit
tortoise/migrations/operations.py:870
Methoddatabase_forward
( self, app_label: str, old_state: State, new_state: State, state_edit
tortoise/migrations/operations.py:942
Methoddatabase_forward
( self, app_label: str, old_state: State, new_state: State, state_edit
tortoise/migrations/operations.py:1024
Methoddatabase_forward
( self, app_label: str, old_state: State, new_state: State, state_edit
tortoise/migrations/operations.py:1104
← previousnext →1,501–1,600 of 3,850, ranked by callers