MCPcopy Create free account

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

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

Methodexecute_explain
(self, sql: str)
tortoise/backends/mssql/executor.py:10
Methodexecute_insert
(self, query: str, values: list)
tortoise/backends/oracle/client.py:93
Methodexecute_insert
(self, query: str, values: list)
tortoise/backends/mysql/client.py:188
Methodexecute_insert
Executes a RAW SQL insert statement, with provided parameters. :param query: The SQL string, pre-parametrized for the target DB dial
tortoise/backends/base/client.py:195
Methodexecute_insert
(self, query: str, values: list)
tortoise/backends/psycopg/client.py:125
Methodexecute_insert
(self, query: str, values: list)
tortoise/backends/base_postgres/client.py:139
Methodexecute_insert
(self, query: str, values: list)
tortoise/backends/asyncpg/client.py:109
Methodexecute_insert
(self, query: str, values: list)
tests/utils/fake_client.py:38
Methodexecute_many
(self, query: str, values: list)
tortoise/backends/mysql/client.py:196
Methodexecute_many
(self, query: str, values: list)
tortoise/backends/mysql/client.py:253
Methodexecute_many
Executes a RAW bulk insert statement, like execute_insert, but returns no data. :param query: The SQL string, pre-parametrized for t
tortoise/backends/base/client.py:227
Methodexecute_many
(self, query: str, values: list)
tortoise/backends/odbc/client.py:186
Methodexecute_many
(self, query: str, values: list)
tortoise/backends/psycopg/client.py:133
Methodexecute_many
(self, query: str, values: list[list])
tortoise/backends/sqlite/client.py:135
Methodexecute_many
(self, query: str, values: list[list])
tortoise/backends/sqlite/client.py:231
Methodexecute_many
(self, query: str, values: list)
tortoise/backends/base_postgres/client.py:143
Methodexecute_many
(self, query: str, values: list)
tortoise/backends/asyncpg/client.py:116
Methodexecute_many
(self, query: str, values: list)
tortoise/backends/asyncpg/client.py:187
Methodexecute_many
(self, query: str, values: list[list])
tests/utils/fake_client.py:47
Methodexecute_query
(self, query: str, values: list | None = None)
tortoise/backends/base_postgres/client.py:147
Methodexecute_query
(self, query: str, values: list | None = None)
tortoise/backends/asyncpg/client.py:131
Methodexecute_query
(self, query: str, values: list | None = None)
tests/utils/fake_client.py:78
Methodexecute_query
(self, query: str, values: list | None = None)
tests/migrations/test_runtime_migrations.py:28
Methodexecute_query
(self, query: str)
tests/migrations/test_recorder.py:16
Methodexecute_query_dict
(self, query: str, values: list | None = None)
tortoise/backends/mysql/client.py:224
Methodexecute_query_dict
Executes a RAW SQL query statement, and returns the resultset as a list of dicts. :param query: The SQL string, pre-parametrized for
tortoise/backends/base/client.py:236
Methodexecute_query_dict
(self, query: str, values: list | None = None)
tortoise/backends/psycopg/client.py:163
Methodexecute_query_dict
(self, query: str, values: list | None = None)
tortoise/backends/sqlite/client.py:160
Methodexecute_query_dict
(self, query: str, values: list | None = None)
tortoise/backends/base_postgres/client.py:151
Methodexecute_query_dict
(self, query: str, values: list | None = None)
tortoise/backends/asyncpg/client.py:155
Methodexecute_query_dict_with_affected
(self, query, values=None)
tests/test_query_api.py:286
Methodexecute_script
(self, query: str)
tortoise/backends/sqlite/client.py:167
Methodexecute_script
(self, query: str)
tests/migrations/test_runtime_migrations.py:33
Methodexists
Return True/False whether queryset exists.
tortoise/queryset.py:797
Functionextract_day_equal
(field: Term, value: int)
tortoise/filters.py:220
Functionextract_hour_equal
(field: Term, value: int)
tortoise/filters.py:224
Functionextract_microsecond_equal
(field: Term, value: int)
tortoise/filters.py:236
Functionextract_minute_equal
(field: Term, value: int)
tortoise/filters.py:228
Functionextract_month_equal
(field: Term, value: int)
tortoise/filters.py:212
Functionextract_quarter_equal
(field: Term, value: int)
tortoise/filters.py:208
Functionextract_second_equal
(field: Term, value: int)
tortoise/filters.py:232
Functionextract_week_equal
(field: Term, value: int)
tortoise/filters.py:216
Functionextract_year_equal
(field: Term, value: int)
tortoise/filters.py:204
Functionfake_applied
(self)
tests/cli/test_cli.py:334
Functionfake_init
(**_kwargs)
tests/cli/test_cli.py:331
Functionfake_migrate
(**kwargs)
tests/cli/test_cli.py:158
Methodfetch_for_list
(self, instance_list: Iterable[Model], *args: str)
tortoise/backends/base/executor.py:738
Functionfew_fields_benchmark_dataset
(db)
tests/benchmarks/conftest.py:34
Methodfield_names
(self)
tortoise/indexes.py:107
Methodfirst
Limit queryset to one object and return one object instead of list.
tortoise/queryset.py:824
Functionforward
(apps: StateApps, schema_editor: BaseSchemaEditor)
tests/migrations/test_operations_database.py:240
Methodfrom_dict
(cls, data: Mapping[str, Any])
tortoise/config.py:49
Methodfrom_dict
(cls, data: Mapping[str, Any])
tortoise/config.py:162
Methodfrom_queryset
Returns a serializable pydantic model instance that contains a list of models, from the provided queryset. This will prefetc
tortoise/contrib/pydantic/base.py:136
Methodfull_name
(self)
tortoise/models.py:264
Methodfull_name
Returns the best name
examples/fastapi/models.py:19
Methodfunction_cast
(self, term: Term)
tortoise/fields/data.py:395
Methodgenerate_operations
(self)
tortoise/migrations/schema_generator/state_diff.py:368
Functiongenerate_schemas
Populate DB with Tortoise-ORM schemas.
tortoise/contrib/quart/__init__.py:101
Functiongenerate_token
()
tests/testmodels.py:38
Functionget_404
()
examples/fastapi/routers.py:39
Functionget_422
()
examples/fastapi/routers.py:44
Methodget_arg_sql
(arg, ctx: SqlContext)
tortoise/functions.py:62
Functionget_client_class
(db_info: dict)
tortoise/backends/sqlite/__init__.py:6
Methodget_connection
Returns the connection by name. :raises ConfigurationError: If connection name does not exist. .. warning:: This
tortoise/__init__.py:133
Methodget_fields_to_carry_on
(field_tuple: tuple[str, ...])
tortoise/contrib/pydantic/creator.py:577
Methodget_model_reference
(self, model: type[Model])
tortoise/apps.py:307
Methodget_or_none
Fetch exactly one object matching the parameters.
tortoise/queryset.py:947
Methodget_overridden_filter_func
( cls, filter_func: Callable, filter_info: FilterInfoDict | None = None )
tortoise/backends/base_postgres/executor.py:71
Methodget_param_from_meta_override
(attr: str)
tortoise/contrib/pydantic/descriptions.py:145
Methodget_param_from_pydantic_meta
(attr: str, default: Any)
tortoise/contrib/pydantic/descriptions.py:111
Methodget_queryset
(self)
tests/testmodels.py:966
Methodget_related_model
Test, if app and model really exist. Throws a ConfigurationError with a hopefully helpful message. If successful, returns the
tortoise/apps.py:127
Functionget_related_model_tuples
(model: type[Model])
tortoise/migrations/schema_generator/state.py:131
Methodget_special_params_sql
(self, ctx: SqlContext)
tortoise/contrib/mysql/search.py:33
Methodget_sql
(self, ctx: SqlContext)
tortoise/expressions.py:233
Methodget_sql
(self, ctx: SqlContext)
tortoise/expressions.py:249
Methodget_sql
(self, ctx)
tortoise/contrib/postgres/search.py:49
Functionget_tortoise_config
Get tortoise config from module path with validation. :param config: module path + var name, e.g. "settings.TORTOISE_ORM" :raises CLIUsa
tortoise/cli/utils.py:42
Functionget_user
(user_id: int)
examples/fastapi/routers.py:20
Functionget_users
()
examples/fastapi/routers.py:9
Methodget_value_sql
(self, ctx: SqlContext)
tortoise/backends/mysql/executor.py:46
Functiongroup_by_data
Set up Author and Book data for group_by tests.
tests/test_group_by.py:10
Functionholder
()
tests/utils/test_run_async.py:20
Methodin_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/queryset.py:861
Methodindex_name
(self, schema_generator: BaseSchemaGenerator, model: type[Model])
tortoise/indexes.py:67
Methodinit_fk_o2o_field
(model: type[Model], field: str, is_o2o: bool = False)
tortoise/apps.py:163
Functioninit_memory_sqlite
(models: ModulesConfigType | None = None)
tortoise/contrib/test/__init__.py:239
Functioninit_orm
()
tortoise/contrib/starlette/__init__.py:84
Functioninit_orm
(app)
tortoise/contrib/sanic/__init__.py:103
Functioninit_orm
(context)
tortoise/contrib/blacksheep/__init__.py:91
Functioninit_orm
()
tortoise/contrib/quart/__init__.py:88
Functioninit_orm
(app)
tortoise/contrib/aiohttp/__init__.py:83
Functioninit_orm_main
(app)
tortoise/contrib/sanic/__init__.py:97
Methodinited
Check if this context has been initialized. Returns: True if init() has been called successfully, False otherwise.
tortoise/context.py:188
Functioninitialize_tests
()
tests/cli/conftest.py:5
Functioninitialize_tests
()
tests/migrations/conftest.py:10
Functioninsensitive_contains
(field: Term, value: str)
tortoise/filters.py:186
Functioninsensitive_ends_with
(field: Term, value: str)
tortoise/filters.py:198
Functioninsensitive_exact
(field: Term, value: str)
tortoise/filters.py:182
← previousnext →1,701–1,800 of 3,850, ranked by callers