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
database_forward
( self, app_label: str, old_state: State, new_state: State, state_edit
tortoise/migrations/operations.py:1146
Method
database_forward
( self, app_label: str, old_state: State, new_state: State, state_edit
tortoise/migrations/operations.py:1178
Method
database_forward
(self, app_label, old_state, new_state, state_editor)
tests/migrations/test_runtime_migrations.py:351
Function
db
Function-scoped fixture with transaction rollback cleanup. Each test runs inside a transaction that gets rolled back at the end, providi
conftest.py:68
Function
db
Function-scoped fixture for isolated tests.
examples/pytest/conftest.py:7
Method
db
Get a database connection by name. Args: connection_name: The connection alias. If None, uses the default connection.
tortoise/context.py:438
Function
db_and_caps
Get database connection and capabilities.
tests/backends/test_capabilities.py:9
Function
db_array_fields
Fixture for TestArrayFields. Uses models defined in tests.testmodels_postgres module. Equivalent to: test.IsolatedTestCase with tortoise
tests/fields/conftest.py:17
Method
db_config
Return the DB config. This is the same config passed to the :meth:`Tortoise.init<tortoise.Tortoise.init>` method while initi
tortoise/connection.py:96
Method
db_config
Return the DB config.
tortoise/connection.py:307
Method
db_create
(self)
tortoise/backends/oracle/client.py:67
Method
db_create
(self)
tortoise/backends/mysql/client.py:168
Method
db_create
Created the database in the server. Typically only called by the test runner. Need to have called ``create_connection()``` with para
tortoise/backends/base/client.py:165
Method
db_create
(self)
tortoise/backends/sqlite/client.py:108
Method
db_create
(self)
tortoise/backends/base_postgres/client.py:119
Method
db_create
(self)
tests/utils/fake_client.py:26
Method
db_delete
(self)
tortoise/backends/oracle/client.py:73
Method
db_delete
(self)
tortoise/backends/mssql/client.py:71
Method
db_delete
(self)
tortoise/backends/mysql/client.py:173
Method
db_delete
Delete the database from the Server. Typically only called by the test runner. Need to have called ``create_connection()``` with par
tortoise/backends/base/client.py:175
Method
db_delete
(self)
tortoise/backends/psycopg/client.py:119
Method
db_delete
(self)
tortoise/backends/sqlite/client.py:112
Method
db_delete
(self)
tortoise/backends/base_postgres/client.py:124
Method
db_delete
(self)
tortoise/backends/asyncpg/client.py:98
Method
db_delete
(self)
tests/utils/fake_client.py:29
Method
db_for_read
(self, model: type[Model])
examples/router.py:21
Method
db_for_write
(self, model: type[Model])
examples/router.py:24
Function
db_isolated
Function-scoped fixture with full database recreation per test. Creates a completely fresh database for EACH test. This is the SLOWEST m
conftest.py:130
Function
db_module
Module-scoped fixture: Creates TortoiseContext once per test module. This is the base fixture that creates the database schema once per modu
conftest.py:48
Function
db_module_postgres
Module-scoped fixture for postgres tests using standard testmodels. Creates a TortoiseContext with tests.testmodels once per test module.
tests/contrib/postgres/conftest.py:24
Function
db_postgres
Function-scoped fixture with transaction rollback for postgres tests. Equivalent to: test.TestCase with standard testmodels.
tests/contrib/postgres/conftest.py:43
Function
db_search
Fixture for TestPostgresSearchLookupTSVector. Uses models defined in tests.contrib.postgres.models_tsvector module. Equivalent to: test.
tests/contrib/postgres/conftest.py:83
Function
db_simple
Function-scoped fixture with NO cleanup between tests. Tests share state - data from one test persists to the next within the module. Us
conftest.py:112
Function
db_subclass_fields
Fixture for TestEnumField and TestCustomFieldFilters. Uses models defined in tests.fields.subclass_models module. Equivalent to: test.Is
tests/fields/conftest.py:38
Function
db_truncate
Function-scoped fixture with table truncation cleanup. After each test, all tables are truncated (DELETE FROM). Faster than db_isolated
conftest.py:159
Function
db_tsvector
Fixture for TestTSVectorField. Uses models defined in tests.contrib.postgres.models_tsvector module. Equivalent to: test.IsolatedTestCas
tests/contrib/postgres/conftest.py:64
Function
decimal_fields_data
(db)
tests/test_filters.py:265
Method
deconstruct
(self)
tortoise/indexes.py:157
Method
deconstruct
(self)
tortoise/migrations/constraints.py:12
Method
deconstruct
(self)
tortoise/fields/base.py:549
Method
deconstruct
(self)
tortoise/fields/relational.py:368
Function
decorator
(f: T)
tortoise/signals.py:19
Function
decorator
(test_item: _FT)
tortoise/contrib/test/__init__.py:195
Method
default
(self, obj: Any)
tests/testmodels.py:368
Method
default_connection
Get the default connection name for this context. Returns: The default connection name if one is configured, None otherw
tortoise/context.py:198
Method
default_name
(default: Any)
tortoise/fields/base.py:514
Function
default_row
Insert a default row using raw SQL based on database type.
tests/test_default.py:28
Method
delete
Delete all objects in QuerySet.
tortoise/queryset.py:744
Function
delete_user
(user_id: int)
examples/fastapi/routers.py:31
Method
describe
(self)
tortoise/indexes.py:48
Method
describe
(self, serializable: bool)
tortoise/contrib/postgres/fields.py:73
Method
describe
(self)
tortoise/migrations/operations.py:41
Method
describe
(self)
tortoise/migrations/operations.py:155
Method
describe
(self)
tortoise/migrations/operations.py:231
Method
describe
(self)
tortoise/migrations/operations.py:309
Method
describe
(self)
tortoise/migrations/operations.py:370
Method
describe
(self)
tortoise/migrations/operations.py:404
Method
describe
(self)
tortoise/migrations/operations.py:454
Method
describe
(self)
tortoise/migrations/operations.py:504
Method
describe
(self)
tortoise/migrations/operations.py:555
Method
describe
(self)
tortoise/migrations/operations.py:655
Method
describe
(self)
tortoise/migrations/operations.py:700
Method
describe
(self)
tortoise/migrations/operations.py:774
Method
describe
(self)
tortoise/migrations/operations.py:851
Method
describe
(self)
tortoise/migrations/operations.py:903
Method
describe
(self)
tortoise/migrations/operations.py:977
Method
describe
(self)
tortoise/migrations/operations.py:1098
Method
describe
Describes the field. :param serializable: ``False`` if you want raw python objects, ``True`` for JSON-serial
tortoise/fields/base.py:449
Method
describe
(self, serializable: bool)
tortoise/fields/relational.py:335
Method
describe
(self, serializable: bool)
tortoise/fields/relational.py:419
Method
describe_model
Describes the given list of models or ALL registered models. :param model: The Model to describe :param seriali
tortoise/__init__.py:146
Function
do_nothing
(*_args, **_kwargs)
tortoise/cli/cli.py:55
Function
doesnotexist_exception_handler
(self, request: Request, exc: DoesNotExist)
tortoise/contrib/blacksheep/__init__.py:106
Function
doesnotexist_exception_handler
(request: Request, exc: DoesNotExist)
tortoise/contrib/fastapi/__init__.py:30
Function
doublefk_data
Build DoubleFK test data.
tests/test_relations.py:468
Method
drop_schema
(self, schema_name: str)
tortoise/migrations/schema_editor/mssql.py:60
Method
earliest
Returns the earliest object by ordering ascending on the specified field. :params orderings: Fields to order by. :raises Fi
tortoise/queryset.py:503
Method
employee_count
Counts employees in the department. Uses try/except to gracefully handle the case where the relation has not been fetched, r
examples/pydantic/computed_fields.py:29
Method
employee_names
Returns a comma-separated list of employee names. Does NOT handle NoValuesFetched -- demonstrates error propagation when the
examples/pydantic/computed_fields.py:41
Function
empty_state
()
tests/migrations/conftest.py:16
Function
ends_with
(field: Term, value: str)
tortoise/filters.py:178
Method
ensure_schema
(self, _schema_editor)
tortoise/cli/cli.py:167
Method
ensure_schema
(self, _schema_editor)
tortoise/migrations/autodetector.py:33
Method
ensure_schema
(self, _schema_editor: Any)
tortoise/migrations/api/sqlmigrate.py:22
Function
escape_None
(value: None, mapping=None)
tortoise/converters.py:95
Function
escape_bool
(value: bool, mapping=None)
tortoise/converters.py:71
Function
escape_date
(obj: datetime.date, mapping=None)
tortoise/converters.py:122
Function
escape_dict
(val: dict, mapping=None)
tortoise/converters.py:51
Function
escape_float
(value: float, mapping=None)
tortoise/converters.py:83
Function
escape_int
(value: int, mapping=None)
tortoise/converters.py:79
Function
escape_object
(value: Any, mapping=None)
tortoise/converters.py:75
Function
escape_sequence
(val: Sequence, mapping=None)
tortoise/converters.py:59
Function
escape_set
(val: set, mapping=None)
tortoise/converters.py:67
Function
escape_str
(value: str, mapping=None)
tortoise/converters.py:91
Function
escape_struct_time
(obj: time.struct_time, mapping=None)
tortoise/converters.py:127
Function
escape_time
(obj: datetime.datetime, mapping=None)
tortoise/converters.py:110
Function
escape_timedelta
(obj: timedelta, mapping=None)
tortoise/converters.py:99
Function
escape_unicode
(value: str, mapping=None)
tortoise/converters.py:87
Method
events_num
Computes team size.
examples/pydantic/tutorial_4.py:36
Method
exclude
Same as .filter(), but with appends all args with NOT
tortoise/queryset.py:439
← previous
next →
1,601–1,700 of 3,850, ranked by callers