MCPcopy Create free account

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

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

Methodto_db_value
( self, value: datetime.timedelta | None, instance: type[Model] | Model )
tortoise/fields/data.py:676
Methodto_db_value
( self, value: T | dict | list | str | bytes | None, instance: type[Model] | Model,
tortoise/fields/data.py:759
Methodto_db_value
(self, value: Any, instance: type[Model] | Model)
tortoise/fields/data.py:833
Methodto_db_value
(self, value: IntEnum | None | int, instance: type[Model] | Model)
tortoise/fields/data.py:907
Methodto_db_value
(self, value: Enum | None | str, instance: type[Model] | Model)
tortoise/fields/data.py:969
Methodto_db_value
(self, value, instance)
tests/fields/subclass_fields.py:24
Methodto_db_value
(self, value: Any, instance)
tests/fields/subclass_fields.py:59
Methodto_dict
(self)
tortoise/config.py:146
Methodto_python_value
(self, value: Any)
tortoise/contrib/mysql/fields.py:53
Methodto_python_value
(self, value: Any)
tortoise/fields/data.py:383
Methodto_python_value
(self, value: Any)
tortoise/fields/data.py:544
Methodto_python_value
(self, value: Any)
tortoise/fields/data.py:671
Methodto_python_value
( self, value: T | str | bytes | dict | list | None )
tortoise/fields/data.py:785
Methodto_python_value
(self, value: Any)
tortoise/fields/data.py:836
Methodto_python_value
(self, value: int | None)
tortoise/fields/data.py:903
Methodto_python_value
(self, value: str | None)
tortoise/fields/data.py:966
Methodto_python_value
(self, value)
tests/fields/subclass_fields.py:35
Methodto_python_value
(self, value: Any)
tests/fields/subclass_fields.py:69
Functiontortoise_orm_config
Get tortoise orm config from env or pyproject.toml. :param file: toml file that contains tool.tortoise settings :return: module path and
tortoise/cli/utils.py:29
Functiontournament_model
Fixture that provides a saved Tournament model instance.
tests/test_model_methods.py:119
Functiontournament_model_unsaved
Fixture that provides an unsaved Tournament model instance.
tests/test_model_methods.py:125
Functiontournament_with_events
Create a tournament with two events for advanced tests.
tests/test_only.py:277
Functiontransform_model
Anything that uses the ModelMeta needs _meta and id. Also keep track of relationships and make them in the related model class.
tortoise/contrib/pylint/__init__.py:36
Functiontranslate_exceptions
(func: FuncType)
tortoise/backends/mysql/client.py:46
Functiontranslate_exceptions
(func: FuncType)
tortoise/backends/odbc/client.py:35
Functiontranslate_exceptions
(func: FuncType)
tortoise/backends/sqlite/client.py:39
Functiontranslate_exceptions
(func: FuncType)
tortoise/backends/base_postgres/client.py:30
Functiontranslate_exceptions_
(self, *args)
tortoise/backends/mysql/client.py:48
Functiontranslate_exceptions_
(self, *args)
tortoise/backends/odbc/client.py:37
Functiontranslate_exceptions_
(self, query, *args)
tortoise/backends/sqlite/client.py:41
Functiontwo_databases
Fixture that sets up two separate databases for testing.
tests/test_two_databases.py:19
Methodtype_name
(typ: Any)
tortoise/fields/base.py:501
Functiontz_env
Fixture that restores USE_TZ and TIMEZONE env vars after test. Tests that mutate os.environ["USE_TZ"] or os.environ["TIMEZONE"] should use th
tests/fields/test_time.py:46
Functionupdate_user
(user_id: int, user: UserIn_Pydantic)
examples/fastapi/routers.py:25
Methoduse_tz
Check if timezone-aware datetimes are enabled. Returns: True if datetime fields are timezone-aware, False otherwise.
tortoise/context.py:210
Functionusers_create
(user: UserPydanticIn)
examples/blacksheep/server.py:34
Functionusers_delete
(id: UUID)
examples/blacksheep/server.py:52
Functionusers_list
()
examples/blacksheep/server.py:29
Functionusers_patch
(id: UUID, user: UserPydanticIn)
examples/blacksheep/server.py:40
Functionusers_put
(id: UUID, user: UserPydanticIn)
examples/blacksheep/server.py:46
Functionuuid_models
Fixture providing UUID model classes for FK tests. Tests both standard UUID models and source-field models: * UUID needs escaping, so a
tests/fields/test_fk_uuid.py:29
Functionvalidate_ipv46_address
A validator to validate whether the given value is valid IPv4Address or IPv6Address or not. :raises ValidationError: if value is invalid IPv
tortoise/validators.py:145
Methodvalues
( self, *args: str, **kwargs: str )
tortoise/queryset.py:79
Methodvalues_list
( self, *fields_: str, flat: bool = False )
tortoise/queryset.py:75
Methodwrap_middleware_call
(self, *args, **kw)
tortoise/contrib/fastapi/__init__.py:156
Functionwrapped
(*args, **kwargs)
tortoise/transactions.py:60
Methodwrapped_func
(self_pydantic)
tortoise/contrib/pydantic/creator.py:513
Functionwrapper
(func: F)
tortoise/transactions.py:58
Methodwrite
(self)
tortoise/migrations/autodetector.py:76
Methodzone
(self)
tortoise/timezone.py:20
← previous3,801–3,850 of 3,850, ranked by callers