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
to_db_value
( self, value: datetime.timedelta | None, instance: type[Model] | Model )
tortoise/fields/data.py:676
Method
to_db_value
( self, value: T | dict | list | str | bytes | None, instance: type[Model] | Model,
tortoise/fields/data.py:759
Method
to_db_value
(self, value: Any, instance: type[Model] | Model)
tortoise/fields/data.py:833
Method
to_db_value
(self, value: IntEnum | None | int, instance: type[Model] | Model)
tortoise/fields/data.py:907
Method
to_db_value
(self, value: Enum | None | str, instance: type[Model] | Model)
tortoise/fields/data.py:969
Method
to_db_value
(self, value, instance)
tests/fields/subclass_fields.py:24
Method
to_db_value
(self, value: Any, instance)
tests/fields/subclass_fields.py:59
Method
to_dict
(self)
tortoise/config.py:146
Method
to_python_value
(self, value: Any)
tortoise/contrib/mysql/fields.py:53
Method
to_python_value
(self, value: Any)
tortoise/fields/data.py:383
Method
to_python_value
(self, value: Any)
tortoise/fields/data.py:544
Method
to_python_value
(self, value: Any)
tortoise/fields/data.py:671
Method
to_python_value
( self, value: T | str | bytes | dict | list | None )
tortoise/fields/data.py:785
Method
to_python_value
(self, value: Any)
tortoise/fields/data.py:836
Method
to_python_value
(self, value: int | None)
tortoise/fields/data.py:903
Method
to_python_value
(self, value: str | None)
tortoise/fields/data.py:966
Method
to_python_value
(self, value)
tests/fields/subclass_fields.py:35
Method
to_python_value
(self, value: Any)
tests/fields/subclass_fields.py:69
Function
tortoise_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
Function
tournament_model
Fixture that provides a saved Tournament model instance.
tests/test_model_methods.py:119
Function
tournament_model_unsaved
Fixture that provides an unsaved Tournament model instance.
tests/test_model_methods.py:125
Function
tournament_with_events
Create a tournament with two events for advanced tests.
tests/test_only.py:277
Function
transform_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
Function
translate_exceptions
(func: FuncType)
tortoise/backends/mysql/client.py:46
Function
translate_exceptions
(func: FuncType)
tortoise/backends/odbc/client.py:35
Function
translate_exceptions
(func: FuncType)
tortoise/backends/sqlite/client.py:39
Function
translate_exceptions
(func: FuncType)
tortoise/backends/base_postgres/client.py:30
Function
translate_exceptions_
(self, *args)
tortoise/backends/mysql/client.py:48
Function
translate_exceptions_
(self, *args)
tortoise/backends/odbc/client.py:37
Function
translate_exceptions_
(self, query, *args)
tortoise/backends/sqlite/client.py:41
Function
two_databases
Fixture that sets up two separate databases for testing.
tests/test_two_databases.py:19
Method
type_name
(typ: Any)
tortoise/fields/base.py:501
Function
tz_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
Function
update_user
(user_id: int, user: UserIn_Pydantic)
examples/fastapi/routers.py:25
Method
use_tz
Check if timezone-aware datetimes are enabled. Returns: True if datetime fields are timezone-aware, False otherwise.
tortoise/context.py:210
Function
users_create
(user: UserPydanticIn)
examples/blacksheep/server.py:34
Function
users_delete
(id: UUID)
examples/blacksheep/server.py:52
Function
users_list
()
examples/blacksheep/server.py:29
Function
users_patch
(id: UUID, user: UserPydanticIn)
examples/blacksheep/server.py:40
Function
users_put
(id: UUID, user: UserPydanticIn)
examples/blacksheep/server.py:46
Function
uuid_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
Function
validate_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
Method
values
( self, *args: str, **kwargs: str )
tortoise/queryset.py:79
Method
values_list
( self, *fields_: str, flat: bool = False )
tortoise/queryset.py:75
Method
wrap_middleware_call
(self, *args, **kw)
tortoise/contrib/fastapi/__init__.py:156
Function
wrapped
(*args, **kwargs)
tortoise/transactions.py:60
Method
wrapped_func
(self_pydantic)
tortoise/contrib/pydantic/creator.py:513
Function
wrapper
(func: F)
tortoise/transactions.py:58
Method
write
(self)
tortoise/migrations/autodetector.py:76
Method
zone
(self)
tortoise/timezone.py:20
← previous
3,801–3,850 of 3,850, ranked by callers