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
apps
Get the Apps registry for this context. Returns: The Apps instance if initialized, None otherwise.
tortoise/context.py:178
Method
apps
Get the Apps registry from current context. Returns None if no context is active.
tortoise/__init__.py:107
Function
array_contained_by
(field: Term, value: Any | Sequence[Any])
tortoise/filters.py:256
Function
array_contains
(field: Term, value: Any | Sequence[Any])
tortoise/filters.py:252
Function
array_encoder
(value: Any | Sequence[Any], instance: Model, field: Field)
tortoise/filters.py:96
Function
array_length
(field: Term, value: int)
tortoise/filters.py:264
Function
array_overlap
(field: Term, value: Any | Sequence[Any])
tortoise/filters.py:260
Function
async_callable_default
()
tests/testmodels.py:1067
Function
atomic
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
Method
begin
(self)
tortoise/backends/oracle/client.py:130
Method
begin
(self)
tortoise/backends/mssql/client.py:99
Method
begin
(self)
tortoise/backends/odbc/client.py:192
Function
bench
()
tests/benchmarks/test_field_attribute_lookup.py:27
Function
bench
()
tests/benchmarks/test_update.py:11
Function
bench
()
tests/benchmarks/test_get.py:13
Function
bench
()
tests/benchmarks/test_hydration.py:19
Function
bench
()
tests/benchmarks/test_filter.py:13
Function
bench
()
tests/benchmarks/test_state_building.py:53
Function
bench
()
tests/benchmarks/test_bulk_create.py:19
Function
bench
()
tests/benchmarks/test_relations.py:10
Function
bench
()
tests/benchmarks/test_expressions.py:12
Function
bench
()
tests/benchmarks/test_create.py:11
Function
between_and
(field: Term, value: tuple[Any, Any])
tortoise/filters.py:131
Function
bool_encoder
(value: Any, instance: Model, field: Field)
tortoise/filters.py:80
Function
boolean_fields_data
(db)
tests/test_filters.py:215
Function
builder_ready
(app)
docs/sphinx_autodoc_typehints.py:418
Method
bulk_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
Method
bulk_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
Function
callable_default
()
tests/testmodels.py:1063
Function
camelize_var
(var_name: str)
tests/testmodels.py:1035
Method
capabilities
(self)
tortoise/queryset.py:107
Method
changes
(self)
tests/cli/test_cli.py:485
Function
char_fields_context
Context for CharFields model resolution.
tests/test_q.py:149
Function
char_fields_data
(db)
tests/test_filters.py:30
Function
char_fk_data
(db)
tests/test_filters.py:309
Function
clear_full_name
Reverse: Clear full_name field.
examples/comprehensive_migrations_project/migrations/0011_populate_computed_fields.py:50
Function
clear_total_amount
Reverse: Clear total_amount field.
examples/comprehensive_migrations_project/migrations/0011_populate_computed_fields.py:28
Function
client
()
examples/sanic/_tests.py:24
Function
client
(api)
examples/blacksheep/_tests.py:12
Function
client
()
examples/fastapi/_tests.py:50
Function
client_east
()
examples/fastapi/_tests.py:57
Method
clone
(self)
tortoise/migrations/schema_generator/state.py:34
Method
clone
( self, model_states: dict[tuple[str, str], ModelState] | None = None, )
tortoise/migrations/schema_generator/state_apps.py:138
Method
close
Closes the DB connection.
tortoise/backends/base/client.py:159
Function
close_orm
()
tortoise/contrib/starlette/__init__.py:92
Function
close_orm
(app)
tortoise/contrib/sanic/__init__.py:110
Function
close_orm
(context)
tortoise/contrib/blacksheep/__init__.py:99
Function
close_orm
()
tortoise/contrib/quart/__init__.py:96
Function
close_orm
(app)
tortoise/contrib/aiohttp/__init__.py:90
Function
configure_psycopg
Configure psycopg timeout for faster tests.
conftest.py:16
Function
conn_handler
()
tests/test_connection.py:13
Method
connections
Get the ConnectionHandler for this context. Creates a new ConnectionHandler on first access (lazy initialization). The handl
tortoise/context.py:162
Method
constraints
Returns a dict with constraints defined in the Pydantic/JSONSchema format.
tortoise/fields/base.py:369
Method
constraints
(self)
tortoise/fields/data.py:128
Method
constraints
(self)
tortoise/fields/data.py:161
Method
constraints
(self)
tortoise/fields/data.py:192
Method
constraints
(self)
tortoise/fields/data.py:241
Method
constraints
(self)
tortoise/fields/data.py:510
Function
contains
(field: Term, value: str)
tortoise/filters.py:151
Function
counting_clone
(self)
tests/migrations/test_state_performance.py:74
Method
create
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
Method
create_connection
(self, with_db: bool)
tortoise/backends/psycopg/client.py:65
Method
create_connection
(self, with_db: bool)
tortoise/backends/sqlite/client.py:293
Method
create_connection
(self, with_db: bool)
tortoise/backends/asyncpg/client.py:41
Function
create_decimals
(db)
tests/benchmarks/conftest.py:111
Method
create_pool
(self, **kwargs)
tortoise/backends/base_postgres/client.py:100
Function
create_team_with_participants
(db)
tests/benchmarks/conftest.py:100
Function
create_user
(user: UserIn_Pydantic)
examples/fastapi/routers.py:14
Method
database_backward
( self, app_label: str, old_state: State, new_state: State, state_edit
tortoise/migrations/operations.py:65
Method
database_backward
( self, app_label: str, old_state: State, new_state: State, state_edit
tortoise/migrations/operations.py:118
Method
database_backward
( self, app_label: str, old_state: State, new_state: State, state_edit
tortoise/migrations/operations.py:210
Method
database_backward
( self, app_label: str, old_state: State, new_state: State, state_edit
tortoise/migrations/operations.py:287
Method
database_backward
( self, app_label: str, old_state: State, new_state: State, state_edit
tortoise/migrations/operations.py:352
Method
database_backward
( self, app_label: str, old_state: State, new_state: State, state_edit
tortoise/migrations/operations.py:388
Method
database_backward
( self, app_label: str, old_state: State, new_state: State, state_edit
tortoise/migrations/operations.py:435
Method
database_backward
( self, app_label: str, old_state: State, new_state: State, state_edit
tortoise/migrations/operations.py:485
Method
database_backward
( self, app_label: str, old_state: State, new_state: State, state_edit
tortoise/migrations/operations.py:606
Method
database_backward
( self, app_label: str, old_state: State, new_state: State, state_edit
tortoise/migrations/operations.py:677
Method
database_backward
( self, app_label: str, old_state: State, new_state: State, state_edit
tortoise/migrations/operations.py:741
Method
database_backward
( self, app_label: str, old_state: State, new_state: State, state_edit
tortoise/migrations/operations.py:831
Method
database_backward
( self, app_label: str, old_state: State, new_state: State, state_edit
tortoise/migrations/operations.py:882
Method
database_backward
( self, app_label: str, old_state: State, new_state: State, state_edit
tortoise/migrations/operations.py:956
Method
database_backward
( self, app_label: str, old_state: State, new_state: State, state_edit
tortoise/migrations/operations.py:1117
Method
database_backward
( self, app_label: str, old_state: State, new_state: State, state_edit
tortoise/migrations/operations.py:1189
Method
database_backward
(self, app_label, old_state, new_state, state_editor)
tests/migrations/test_runtime_migrations.py:354
Method
database_forward
( self, app_label: str, old_state: State, new_state: State, state_edit
tortoise/migrations/operations.py:56
Method
database_forward
( self, app_label: str, old_state: State, new_state: State, state_edit
tortoise/migrations/operations.py:198
Method
database_forward
( self, app_label: str, old_state: State, new_state: State, state_edit
tortoise/migrations/operations.py:270
Method
database_forward
( self, app_label: str, old_state: State, new_state: State, state_edit
tortoise/migrations/operations.py:340
Method
database_forward
( self, app_label: str, old_state: State, new_state: State, state_edit
tortoise/migrations/operations.py:379
Method
database_forward
( self, app_label: str, old_state: State, new_state: State, state_edit
tortoise/migrations/operations.py:423
Method
database_forward
( self, app_label: str, old_state: State, new_state: State, state_edit
tortoise/migrations/operations.py:472
Method
database_forward
( self, app_label: str, old_state: State, new_state: State, state_edit
tortoise/migrations/operations.py:579
Method
database_forward
( self, app_label: str, old_state: State, new_state: State, state_edit
tortoise/migrations/operations.py:665
Method
database_forward
( self, app_label: str, old_state: State, new_state: State, state_edit
tortoise/migrations/operations.py:727
Method
database_forward
( self, app_label: str, old_state: State, new_state: State, state_edit
tortoise/migrations/operations.py:817
Method
database_forward
( self, app_label: str, old_state: State, new_state: State, state_edit
tortoise/migrations/operations.py:870
Method
database_forward
( self, app_label: str, old_state: State, new_state: State, state_edit
tortoise/migrations/operations.py:942
Method
database_forward
( self, app_label: str, old_state: State, new_state: State, state_edit
tortoise/migrations/operations.py:1024
Method
database_forward
( self, app_label: str, old_state: State, new_state: State, state_edit
tortoise/migrations/operations.py:1104
← previous
next →
1,501–1,600 of 3,850, ranked by callers