MCPcopy Create free account

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

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

Methoddatabase_forward
( self, app_label: str, old_state: State, new_state: State, state_edit
tortoise/migrations/operations.py:1146
Methoddatabase_forward
( self, app_label: str, old_state: State, new_state: State, state_edit
tortoise/migrations/operations.py:1178
Methoddatabase_forward
(self, app_label, old_state, new_state, state_editor)
tests/migrations/test_runtime_migrations.py:351
Functiondb
Function-scoped fixture with transaction rollback cleanup. Each test runs inside a transaction that gets rolled back at the end, providi
conftest.py:68
Functiondb
Function-scoped fixture for isolated tests.
examples/pytest/conftest.py:7
Methoddb
Get a database connection by name. Args: connection_name: The connection alias. If None, uses the default connection.
tortoise/context.py:438
Functiondb_and_caps
Get database connection and capabilities.
tests/backends/test_capabilities.py:9
Functiondb_array_fields
Fixture for TestArrayFields. Uses models defined in tests.testmodels_postgres module. Equivalent to: test.IsolatedTestCase with tortoise
tests/fields/conftest.py:17
Methoddb_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
Methoddb_config
Return the DB config.
tortoise/connection.py:307
Methoddb_create
(self)
tortoise/backends/oracle/client.py:67
Methoddb_create
(self)
tortoise/backends/mysql/client.py:168
Methoddb_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
Methoddb_create
(self)
tortoise/backends/sqlite/client.py:108
Methoddb_create
(self)
tortoise/backends/base_postgres/client.py:119
Methoddb_create
(self)
tests/utils/fake_client.py:26
Methoddb_delete
(self)
tortoise/backends/oracle/client.py:73
Methoddb_delete
(self)
tortoise/backends/mssql/client.py:71
Methoddb_delete
(self)
tortoise/backends/mysql/client.py:173
Methoddb_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
Methoddb_delete
(self)
tortoise/backends/psycopg/client.py:119
Methoddb_delete
(self)
tortoise/backends/sqlite/client.py:112
Methoddb_delete
(self)
tortoise/backends/base_postgres/client.py:124
Methoddb_delete
(self)
tortoise/backends/asyncpg/client.py:98
Methoddb_delete
(self)
tests/utils/fake_client.py:29
Methoddb_for_read
(self, model: type[Model])
examples/router.py:21
Methoddb_for_write
(self, model: type[Model])
examples/router.py:24
Functiondb_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
Functiondb_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
Functiondb_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
Functiondb_postgres
Function-scoped fixture with transaction rollback for postgres tests. Equivalent to: test.TestCase with standard testmodels.
tests/contrib/postgres/conftest.py:43
Functiondb_search
Fixture for TestPostgresSearchLookupTSVector. Uses models defined in tests.contrib.postgres.models_tsvector module. Equivalent to: test.
tests/contrib/postgres/conftest.py:83
Functiondb_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
Functiondb_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
Functiondb_truncate
Function-scoped fixture with table truncation cleanup. After each test, all tables are truncated (DELETE FROM). Faster than db_isolated
conftest.py:159
Functiondb_tsvector
Fixture for TestTSVectorField. Uses models defined in tests.contrib.postgres.models_tsvector module. Equivalent to: test.IsolatedTestCas
tests/contrib/postgres/conftest.py:64
Functiondecimal_fields_data
(db)
tests/test_filters.py:265
Methoddeconstruct
(self)
tortoise/indexes.py:157
Methoddeconstruct
(self)
tortoise/migrations/constraints.py:12
Methoddeconstruct
(self)
tortoise/fields/base.py:549
Methoddeconstruct
(self)
tortoise/fields/relational.py:368
Functiondecorator
(f: T)
tortoise/signals.py:19
Functiondecorator
(test_item: _FT)
tortoise/contrib/test/__init__.py:195
Methoddefault
(self, obj: Any)
tests/testmodels.py:368
Methoddefault_connection
Get the default connection name for this context. Returns: The default connection name if one is configured, None otherw
tortoise/context.py:198
Methoddefault_name
(default: Any)
tortoise/fields/base.py:514
Functiondefault_row
Insert a default row using raw SQL based on database type.
tests/test_default.py:28
Methoddelete
Delete all objects in QuerySet.
tortoise/queryset.py:744
Functiondelete_user
(user_id: int)
examples/fastapi/routers.py:31
Methoddescribe
(self)
tortoise/indexes.py:48
Methoddescribe
(self, serializable: bool)
tortoise/contrib/postgres/fields.py:73
Methoddescribe
(self)
tortoise/migrations/operations.py:41
Methoddescribe
(self)
tortoise/migrations/operations.py:155
Methoddescribe
(self)
tortoise/migrations/operations.py:231
Methoddescribe
(self)
tortoise/migrations/operations.py:309
Methoddescribe
(self)
tortoise/migrations/operations.py:370
Methoddescribe
(self)
tortoise/migrations/operations.py:404
Methoddescribe
(self)
tortoise/migrations/operations.py:454
Methoddescribe
(self)
tortoise/migrations/operations.py:504
Methoddescribe
(self)
tortoise/migrations/operations.py:555
Methoddescribe
(self)
tortoise/migrations/operations.py:655
Methoddescribe
(self)
tortoise/migrations/operations.py:700
Methoddescribe
(self)
tortoise/migrations/operations.py:774
Methoddescribe
(self)
tortoise/migrations/operations.py:851
Methoddescribe
(self)
tortoise/migrations/operations.py:903
Methoddescribe
(self)
tortoise/migrations/operations.py:977
Methoddescribe
(self)
tortoise/migrations/operations.py:1098
Methoddescribe
Describes the field. :param serializable: ``False`` if you want raw python objects, ``True`` for JSON-serial
tortoise/fields/base.py:449
Methoddescribe
(self, serializable: bool)
tortoise/fields/relational.py:335
Methoddescribe
(self, serializable: bool)
tortoise/fields/relational.py:419
Methoddescribe_model
Describes the given list of models or ALL registered models. :param model: The Model to describe :param seriali
tortoise/__init__.py:146
Functiondo_nothing
(*_args, **_kwargs)
tortoise/cli/cli.py:55
Functiondoesnotexist_exception_handler
(self, request: Request, exc: DoesNotExist)
tortoise/contrib/blacksheep/__init__.py:106
Functiondoesnotexist_exception_handler
(request: Request, exc: DoesNotExist)
tortoise/contrib/fastapi/__init__.py:30
Functiondoublefk_data
Build DoubleFK test data.
tests/test_relations.py:468
Methoddrop_schema
(self, schema_name: str)
tortoise/migrations/schema_editor/mssql.py:60
Methodearliest
Returns the earliest object by ordering ascending on the specified field. :params orderings: Fields to order by. :raises Fi
tortoise/queryset.py:503
Methodemployee_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
Methodemployee_names
Returns a comma-separated list of employee names. Does NOT handle NoValuesFetched -- demonstrates error propagation when the
examples/pydantic/computed_fields.py:41
Functionempty_state
()
tests/migrations/conftest.py:16
Functionends_with
(field: Term, value: str)
tortoise/filters.py:178
Methodensure_schema
(self, _schema_editor)
tortoise/cli/cli.py:167
Methodensure_schema
(self, _schema_editor)
tortoise/migrations/autodetector.py:33
Methodensure_schema
(self, _schema_editor: Any)
tortoise/migrations/api/sqlmigrate.py:22
Functionescape_None
(value: None, mapping=None)
tortoise/converters.py:95
Functionescape_bool
(value: bool, mapping=None)
tortoise/converters.py:71
Functionescape_date
(obj: datetime.date, mapping=None)
tortoise/converters.py:122
Functionescape_dict
(val: dict, mapping=None)
tortoise/converters.py:51
Functionescape_float
(value: float, mapping=None)
tortoise/converters.py:83
Functionescape_int
(value: int, mapping=None)
tortoise/converters.py:79
Functionescape_object
(value: Any, mapping=None)
tortoise/converters.py:75
Functionescape_sequence
(val: Sequence, mapping=None)
tortoise/converters.py:59
Functionescape_set
(val: set, mapping=None)
tortoise/converters.py:67
Functionescape_str
(value: str, mapping=None)
tortoise/converters.py:91
Functionescape_struct_time
(obj: time.struct_time, mapping=None)
tortoise/converters.py:127
Functionescape_time
(obj: datetime.datetime, mapping=None)
tortoise/converters.py:110
Functionescape_timedelta
(obj: timedelta, mapping=None)
tortoise/converters.py:99
Functionescape_unicode
(value: str, mapping=None)
tortoise/converters.py:87
Methodevents_num
Computes team size.
examples/pydantic/tutorial_4.py:36
Methodexclude
Same as .filter(), but with appends all args with NOT
tortoise/queryset.py:439
← previousnext →1,601–1,700 of 3,850, ranked by callers