MCPcopy Create free account

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

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

↓ 1 callersFunctiondowngrade
( ctx: CLIContext, app_label: str | None, migration: str | None, fake: bool, dry_run: bool
tortoise/cli/cli.py:574
↓ 1 callersMethoddrop_schema
(self, schema_name: str)
tortoise/migrations/schema_editor/base_postgres.py:27
↓ 1 callersMethodensure_connection
(self)
tortoise/backends/base/client.py:295
↓ 1 callersMethodensure_connection
(self)
tortoise/backends/base/client.py:332
↓ 1 callersMethodensure_connection
(self)
tortoise/backends/base/client.py:396
↓ 1 callersMethodensure_connection
(self)
tortoise/backends/sqlite/client.py:189
↓ 1 callersMethodensure_schema
(self, schema_editor)
tortoise/migrations/recorder.py:42
↓ 1 callersFunctionescape_datetime
(obj: datetime.datetime, mapping=None)
tortoise/converters.py:118
↓ 1 callersMethodexecute_delete
(self, instance: type[Model] | Model)
tortoise/backends/base/executor.py:473
↓ 1 callersMethodexecute_explain
(self, sql: str)
tortoise/backends/base/executor.py:99
↓ 1 callersMethodexecute_insert
(self, instance: Model)
tortoise/backends/base/executor.py:293
↓ 1 callersMethodexecute_insert
(self, query: str, values: list)
tortoise/backends/sqlite/client.py:129
↓ 1 callersMethodexecute_query
(self, query: str, values: list | None = None)
tortoise/backends/mysql/client.py:213
↓ 1 callersMethodexecute_query
( self, query: str, values: list | None = None )
tortoise/backends/sqlite/client.py:149
↓ 1 callersMethodexecute_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 callersMethodexplain
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 callersMethodfinalize_meta
( self, exclude: tuple[str, ...] = (), include: tuple[str, ...] = (), computed
tortoise/contrib/pydantic/descriptions.py:173
↓ 1 callersFunctionformat_migration_name
(number: int, name: str)
tortoise/migrations/writer.py:53
↓ 1 callersMethodfrom_model
(cls, model: type[Model])
tortoise/contrib/pydantic/descriptions.py:32
↓ 1 callersMethodfrom_pydantic_meta
(cls, old_pydantic_meta: Any)
tortoise/contrib/pydantic/descriptions.py:108
↓ 1 callersMethodgenerate_from_string
(self, creation_string: str)
tortoise/backends/base/schema_generator.py:576
↓ 1 callersMethodgenerate_operations
(self)
tortoise/migrations/schema_generator/state_diff.py:113
↓ 1 callersFunctionget_all_type_hints
(obj, name)
docs/sphinx_autodoc_typehints.py:206
↓ 1 callersFunctionget_array_filter
( field_name: str, source_field: str, field: ArrayField )
tortoise/filters.py:408
↓ 1 callersFunctionget_backward_fk_filters
( field_name: str, field: BackwardFKRelation )
tortoise/filters.py:317
↓ 1 callersMethodget_create_schema_sql
(self, safe: bool = True)
tortoise/backends/base/schema_generator.py:536
↓ 1 callersMethodget_db_field_type
Returns the DB field type for this field for the current dialect.
tortoise/fields/base.py:398
↓ 1 callersMethodget_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 callersFunctionget_json_filter
(field_name: str, source_field: str)
tortoise/filters.py:365
↓ 1 callersMethodget_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 callersMethodget_name
(self)
tortoise/contrib/pydantic/creator.py:291
↓ 1 callersMethodget_overridden_filter_func
( cls, filter_func: Callable, filter_info: FilterInfoDict | None = None )
tortoise/backends/base/executor.py:757
↓ 1 callersFunctionget_related_models_recursive
(model: type[Model])
tortoise/migrations/schema_generator/state.py:135
↓ 1 callersMethodget_sql
(self, schema_generator: BaseSchemaGenerator, model: type[Model], safe: bool)
tortoise/indexes.py:72
↓ 1 callersMethodget_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 callersFunctionget_version_info
()
docs/conf.py:123
↓ 1 callersFunctionheads
(ctx: CLIContext, app_labels: tuple[str, ...])
tortoise/cli/cli.py:619
↓ 1 callersFunctionhistory
(ctx: CLIContext, app_labels: tuple[str, ...])
tortoise/cli/cli.py:603
↓ 1 callersMethodin_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 callersFunctioninfer_migrations_module
(models: Iterable[ModuleType | str] | str | None)
tortoise/cli/utils.py:154
↓ 1 callersFunctioninit
(ctx: CLIContext, app_labels: tuple[str, ...])
tortoise/cli/cli.py:367
↓ 1 callersFunctioninit_and_check
Initialize Tortoise and verify context is set up.
tests/utils/test_run_async.py:31
↓ 1 callersFunctioninit_and_raise
Initialize Tortoise and raise an exception.
tests/utils/test_run_async.py:41
↓ 1 callersMethodinit_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 callersMethodinit_app
( self, label: str, module_list: Iterable[ModuleType | str], _init_relations:
tortoise/apps.py:71
↓ 1 callersFunctioninit_apps
(*models: type[Model])
tests/migrations/test_schema_editor_sql.py:35
↓ 1 callersFunctioninit_apps
(*models: type[Model])
tests/migrations/test_schema_editor_constraints.py:28
↓ 1 callersMethodinit_orm
(self)
tortoise/contrib/fastapi/__init__.py:163
↓ 1 callersFunctioninner
()
tortoise/contrib/quart/__init__.py:104
↓ 1 callersFunctionis_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 callersFunctionload_args
(obj_ast)
docs/sphinx_autodoc_typehints.py:317
↓ 1 callersMethodload_disk
(self)
tortoise/migrations/loader.py:33
↓ 1 callersMethodmake_query
(self, query_list: list[Term | int | str])
tortoise/contrib/mysql/json_functions.py:33
↓ 1 callersFunctionmakemigrations
( ctx: CLIContext, app_labels: tuple[str, ...], empty: bool, name: str | None )
tortoise/cli/cli.py:435
↓ 1 callersFunctionmigrate
( ctx: CLIContext, app_label: str | None, migration: str | None, fake: bool, dry_run: bool
tortoise/cli/cli.py:547
↓ 1 callersFunctionmigrate
Run migrations for configured apps.
tortoise/migrations/api/migrate.py:13
↓ 1 callersMethodmigrations_module
(self, app_label: str)
tortoise/migrations/loader.py:30
↓ 1 callersMethodname_length
(self)
tests/testmodels.py:658
↓ 1 callersFunctionnot_equal
(field: Term, value: Any)
tortoise/filters.py:135
↓ 1 callersFunctionnow
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 callersMethodpath
(self)
tortoise/migrations/writer.py:275
↓ 1 callersFunctionprepare_default_ordering
(meta: Model.Meta)
tortoise/models.py:78
↓ 1 callersMethodraise_error
(self)
tortoise/migrations/graph.py:62
↓ 1 callersFunctionregister_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 callersFunctionregister_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 callersFunctionregister_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 callersFunctionregister_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 callersFunctionregister_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 callersMethodrelease_savepoint
(self)
tortoise/backends/base/client.py:281
↓ 1 callersFunctionrequireCapability
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 callersMethodresolve_for_queryset
Called internally to generate prefetching query. :param queryset: Custom QuerySet to use for prefetching. :raises Operationa
tortoise/query_utils.py:251
↓ 1 callersMethodrollback
(self)
tortoise/backends/base/client.py:272
↓ 1 callersMethodrollback
(self)
tortoise/backends/odbc/client.py:203
↓ 1 callersMethodrollback
(self)
tortoise/backends/psycopg/client.py:245
↓ 1 callersFunctionrun
()
examples/global_table_name_generator.py:39
↓ 1 callersFunctionrun
()
examples/signals.py:53
↓ 1 callersFunctionrun
()
examples/two_databases.py:57
↓ 1 callersFunctionrun
()
examples/transactions.py:22
↓ 1 callersFunctionrun
()
examples/complex_filtering.py:46
↓ 1 callersFunctionrun
()
examples/group_by.py:19
↓ 1 callersFunctionrun
()
examples/relations.py:61
↓ 1 callersFunctionrun
()
examples/relations_recursive.py:72
↓ 1 callersFunctionrun
()
examples/schema_create.py:50
↓ 1 callersFunctionrun
()
examples/postgres.py:17
↓ 1 callersFunctionrun
()
examples/postgres_full_text_search.py:38
↓ 1 callersFunctionrun
()
examples/basic.py:24
↓ 1 callersFunctionrun
()
examples/functions.py:42
↓ 1 callersFunctionrun
()
examples/basic_comments.py:25
↓ 1 callersFunctionrun
()
examples/complex_prefetching.py:40
↓ 1 callersFunctionrun
()
examples/manual_sql.py:16
↓ 1 callersFunctionrun
()
examples/relations_with_unique.py:38
↓ 1 callersFunctionrun
()
examples/router.py:28
↓ 1 callersFunctionrun
()
examples/enum_fields.py:24
↓ 1 callersFunctionrun
()
examples/pydantic/recursive.py:59
↓ 1 callersFunctionrun
()
examples/pydantic/tutorial_1.py:32
↓ 1 callersFunctionrun
()
examples/pydantic/tutorial_4.py:89
↓ 1 callersFunctionrun
()
examples/pydantic/tutorial_2.py:36
↓ 1 callersFunctionrun
()
examples/pydantic/computed_fields.py:67
↓ 1 callersFunctionrun
()
examples/pydantic/tutorial_3.py:60
↓ 1 callersFunctionrun_cli_async
(argv: list[str] | None = None)
tortoise/cli/cli.py:850
← previousnext →801–900 of 3,850, ranked by callers