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
↓ 1 callers
Function
downgrade
( ctx: CLIContext, app_label: str | None, migration: str | None, fake: bool, dry_run: bool
tortoise/cli/cli.py:574
↓ 1 callers
Method
drop_schema
(self, schema_name: str)
tortoise/migrations/schema_editor/base_postgres.py:27
↓ 1 callers
Method
ensure_connection
(self)
tortoise/backends/base/client.py:295
↓ 1 callers
Method
ensure_connection
(self)
tortoise/backends/base/client.py:332
↓ 1 callers
Method
ensure_connection
(self)
tortoise/backends/base/client.py:396
↓ 1 callers
Method
ensure_connection
(self)
tortoise/backends/sqlite/client.py:189
↓ 1 callers
Method
ensure_schema
(self, schema_editor)
tortoise/migrations/recorder.py:42
↓ 1 callers
Function
escape_datetime
(obj: datetime.datetime, mapping=None)
tortoise/converters.py:118
↓ 1 callers
Method
execute_delete
(self, instance: type[Model] | Model)
tortoise/backends/base/executor.py:473
↓ 1 callers
Method
execute_explain
(self, sql: str)
tortoise/backends/base/executor.py:99
↓ 1 callers
Method
execute_insert
(self, instance: Model)
tortoise/backends/base/executor.py:293
↓ 1 callers
Method
execute_insert
(self, query: str, values: list)
tortoise/backends/sqlite/client.py:129
↓ 1 callers
Method
execute_query
(self, query: str, values: list | None = None)
tortoise/backends/mysql/client.py:213
↓ 1 callers
Method
execute_query
( self, query: str, values: list | None = None )
tortoise/backends/sqlite/client.py:149
↓ 1 callers
Method
execute_script
Executes a RAW SQL script with multiple statements, and returns nothing. :param query: The SQL string, which will be passed on verba
tortoise/backends/base/client.py:218
↓ 1 callers
Method
explain
Fetch and return information about the query execution plan. This is done by executing an ``EXPLAIN`` query whose exact prefix depends
tortoise/queryset.py:1045
↓ 1 callers
Method
finalize_meta
( self, exclude: tuple[str, ...] = (), include: tuple[str, ...] = (), computed
tortoise/contrib/pydantic/descriptions.py:173
↓ 1 callers
Function
format_migration_name
(number: int, name: str)
tortoise/migrations/writer.py:53
↓ 1 callers
Method
from_model
(cls, model: type[Model])
tortoise/contrib/pydantic/descriptions.py:32
↓ 1 callers
Method
from_pydantic_meta
(cls, old_pydantic_meta: Any)
tortoise/contrib/pydantic/descriptions.py:108
↓ 1 callers
Method
generate_from_string
(self, creation_string: str)
tortoise/backends/base/schema_generator.py:576
↓ 1 callers
Method
generate_operations
(self)
tortoise/migrations/schema_generator/state_diff.py:113
↓ 1 callers
Function
get_all_type_hints
(obj, name)
docs/sphinx_autodoc_typehints.py:206
↓ 1 callers
Function
get_array_filter
( field_name: str, source_field: str, field: ArrayField )
tortoise/filters.py:408
↓ 1 callers
Function
get_backward_fk_filters
( field_name: str, field: BackwardFKRelation )
tortoise/filters.py:317
↓ 1 callers
Method
get_create_schema_sql
(self, safe: bool = True)
tortoise/backends/base/schema_generator.py:536
↓ 1 callers
Method
get_db_field_type
Returns the DB field type for this field for the current dialect.
tortoise/fields/base.py:398
↓ 1 callers
Method
get_db_field_types
Returns the DB types for this field. :return: A dictionary that is keyed by dialect. A blank dialect `""` means it is th
tortoise/fields/base.py:405
↓ 1 callers
Function
get_json_filter
(field_name: str, source_field: str)
tortoise/filters.py:365
↓ 1 callers
Method
get_model
Retrieve a model by app label and model name. Args: app_label: The app label (e.g., "models"). model_name: T
tortoise/context.py:418
↓ 1 callers
Method
get_name
(self)
tortoise/contrib/pydantic/creator.py:291
↓ 1 callers
Method
get_overridden_filter_func
( cls, filter_func: Callable, filter_info: FilterInfoDict | None = None )
tortoise/backends/base/executor.py:757
↓ 1 callers
Function
get_related_models_recursive
(model: type[Model])
tortoise/migrations/schema_generator/state.py:135
↓ 1 callers
Method
get_sql
(self, schema_generator: BaseSchemaGenerator, model: type[Model], safe: bool)
tortoise/indexes.py:72
↓ 1 callers
Method
get_update_sql
Generates the SQL for updating a model depending on provided update_fields. Result is cached for performance.
tortoise/backends/base/executor.py:377
↓ 1 callers
Function
get_version_info
()
docs/conf.py:123
↓ 1 callers
Function
heads
(ctx: CLIContext, app_labels: tuple[str, ...])
tortoise/cli/cli.py:619
↓ 1 callers
Function
history
(ctx: CLIContext, app_labels: tuple[str, ...])
tortoise/cli/cli.py:603
↓ 1 callers
Method
in_bulk
Return a dictionary mapping each of the given IDs to the object with that ID. If `id_list` isn't provided, evaluate the entire QueryS
tortoise/models.py:1421
↓ 1 callers
Function
infer_migrations_module
(models: Iterable[ModuleType | str] | str | None)
tortoise/cli/utils.py:154
↓ 1 callers
Function
init
(ctx: CLIContext, app_labels: tuple[str, ...])
tortoise/cli/cli.py:367
↓ 1 callers
Function
init_and_check
Initialize Tortoise and verify context is set up.
tests/utils/test_run_async.py:31
↓ 1 callers
Function
init_and_raise
Initialize Tortoise and raise an exception.
tests/utils/test_run_async.py:41
↓ 1 callers
Method
init_app
Early initialization of Tortoise ORM Models for a single app. :param label: The app label, e.g. 'models' :param model_paths:
tortoise/__init__.py:234
↓ 1 callers
Method
init_app
( self, label: str, module_list: Iterable[ModuleType | str], _init_relations:
tortoise/apps.py:71
↓ 1 callers
Function
init_apps
(*models: type[Model])
tests/migrations/test_schema_editor_sql.py:35
↓ 1 callers
Function
init_apps
(*models: type[Model])
tests/migrations/test_schema_editor_constraints.py:28
↓ 1 callers
Method
init_orm
(self)
tortoise/contrib/fastapi/__init__.py:163
↓ 1 callers
Function
inner
()
tortoise/contrib/quart/__init__.py:104
↓ 1 callers
Function
is_aware
Determine if a given datetime.datetime or datetime.time is aware. The concept is defined in Python's docs: https://docs.python.org/libra
tortoise/timezone.py:120
↓ 1 callers
Function
load_args
(obj_ast)
docs/sphinx_autodoc_typehints.py:317
↓ 1 callers
Method
load_disk
(self)
tortoise/migrations/loader.py:33
↓ 1 callers
Method
make_query
(self, query_list: list[Term | int | str])
tortoise/contrib/mysql/json_functions.py:33
↓ 1 callers
Function
makemigrations
( ctx: CLIContext, app_labels: tuple[str, ...], empty: bool, name: str | None )
tortoise/cli/cli.py:435
↓ 1 callers
Function
migrate
( ctx: CLIContext, app_label: str | None, migration: str | None, fake: bool, dry_run: bool
tortoise/cli/cli.py:547
↓ 1 callers
Function
migrate
Run migrations for configured apps.
tortoise/migrations/api/migrate.py:13
↓ 1 callers
Method
migrations_module
(self, app_label: str)
tortoise/migrations/loader.py:30
↓ 1 callers
Method
name_length
(self)
tests/testmodels.py:658
↓ 1 callers
Function
not_equal
(field: Term, value: Any)
tortoise/filters.py:135
↓ 1 callers
Function
now
Return a datetime.datetime, aware or naive depending on use_tz setting. When use_tz=True, returns an aware datetime in UTC. When use_tz=
tortoise/timezone.py:59
↓ 1 callers
Method
path
(self)
tortoise/migrations/writer.py:275
↓ 1 callers
Function
prepare_default_ordering
(meta: Model.Meta)
tortoise/models.py:78
↓ 1 callers
Method
raise_error
(self)
tortoise/migrations/graph.py:62
↓ 1 callers
Function
register_tortoise
Registers ``startup`` and ``shutdown`` events to set-up and tear-down Tortoise-ORM inside a Starlette application. You can configure usi
tortoise/contrib/starlette/__init__.py:13
↓ 1 callers
Function
register_tortoise
Registers ``before_server_start`` and ``after_server_stop`` hooks to set-up and tear-down Tortoise-ORM inside a Sanic webserver. You can
tortoise/contrib/sanic/__init__.py:13
↓ 1 callers
Function
register_tortoise
Registers ``startup`` and ``shutdown`` events to set-up and tear-down Tortoise-ORM inside a BlackSheep application. You can configure us
tortoise/contrib/blacksheep/__init__.py:16
↓ 1 callers
Function
register_tortoise
Registers ``before_serving`` and ``after_serving`` hooks to set-up and tear-down Tortoise-ORM inside a Quart service. It also registers a
tortoise/contrib/quart/__init__.py:15
↓ 1 callers
Function
register_tortoise
Registers ``on_startup`` and ``on_shutdown`` hooks to set-up and tear-down Tortoise-ORM inside a Aiohttp webserver. You can configure us
tortoise/contrib/aiohttp/__init__.py:13
↓ 1 callers
Method
release_savepoint
(self)
tortoise/backends/base/client.py:281
↓ 1 callers
Function
requireCapability
Skip a test if the required capabilities are not matched. .. note:: The database must be initialized *before* the decorated test run
tortoise/contrib/test/__init__.py:163
↓ 1 callers
Method
resolve_for_queryset
Called internally to generate prefetching query. :param queryset: Custom QuerySet to use for prefetching. :raises Operationa
tortoise/query_utils.py:251
↓ 1 callers
Method
rollback
(self)
tortoise/backends/base/client.py:272
↓ 1 callers
Method
rollback
(self)
tortoise/backends/odbc/client.py:203
↓ 1 callers
Method
rollback
(self)
tortoise/backends/psycopg/client.py:245
↓ 1 callers
Function
run
()
examples/global_table_name_generator.py:39
↓ 1 callers
Function
run
()
examples/signals.py:53
↓ 1 callers
Function
run
()
examples/two_databases.py:57
↓ 1 callers
Function
run
()
examples/transactions.py:22
↓ 1 callers
Function
run
()
examples/complex_filtering.py:46
↓ 1 callers
Function
run
()
examples/group_by.py:19
↓ 1 callers
Function
run
()
examples/relations.py:61
↓ 1 callers
Function
run
()
examples/relations_recursive.py:72
↓ 1 callers
Function
run
()
examples/schema_create.py:50
↓ 1 callers
Function
run
()
examples/postgres.py:17
↓ 1 callers
Function
run
()
examples/postgres_full_text_search.py:38
↓ 1 callers
Function
run
()
examples/basic.py:24
↓ 1 callers
Function
run
()
examples/functions.py:42
↓ 1 callers
Function
run
()
examples/basic_comments.py:25
↓ 1 callers
Function
run
()
examples/complex_prefetching.py:40
↓ 1 callers
Function
run
()
examples/manual_sql.py:16
↓ 1 callers
Function
run
()
examples/relations_with_unique.py:38
↓ 1 callers
Function
run
()
examples/router.py:28
↓ 1 callers
Function
run
()
examples/enum_fields.py:24
↓ 1 callers
Function
run
()
examples/pydantic/recursive.py:59
↓ 1 callers
Function
run
()
examples/pydantic/tutorial_1.py:32
↓ 1 callers
Function
run
()
examples/pydantic/tutorial_4.py:89
↓ 1 callers
Function
run
()
examples/pydantic/tutorial_2.py:36
↓ 1 callers
Function
run
()
examples/pydantic/computed_fields.py:67
↓ 1 callers
Function
run
()
examples/pydantic/tutorial_3.py:60
↓ 1 callers
Function
run_cli_async
(argv: list[str] | None = None)
tortoise/cli/cli.py:850
← previous
next →
801–900 of 3,850, ranked by callers