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
_get_table_comment_sql
(self, table: str, comment: str)
tests/migrations/test_schema_editor_sql.py:19
Method
_get_table_comment_sql
(self, table: str, comment: str)
tests/migrations/test_schema_editor_constraints.py:21
Method
_get_table_comment_sql
(self, table, comment)
tests/fields/test_db_default.py:407
Method
_get_table_sql
(self, model: type[Model], safe: bool = True)
tortoise/backends/oracle/schema_generator.py:94
Method
_get_table_sql
(self, model: type[Model], safe: bool = True)
tortoise/backends/mssql/schema_generator.py:78
Method
_get_unique_constraint_names_from_db
Query sys.key_constraints for unique constraint names matching exact column set.
tortoise/migrations/schema_editor/mssql.py:254
Method
_get_unique_constraint_names_from_db
Query information_schema for unique constraint names matching exact column set.
tortoise/migrations/schema_editor/mysql.py:374
Method
_get_unique_constraint_names_from_db
Query USER_CONSTRAINTS/ALL_CONSTRAINTS for unique constraint names matching exact columns.
tortoise/migrations/schema_editor/oracle.py:209
Method
_get_unique_constraint_names_from_db
Query pg_constraint for unique constraint names matching exact column set.
tortoise/migrations/schema_editor/base_postgres.py:145
Method
_get_unique_index_sql
( self, table_name: str, field_names: list[str], schema: str | None = None )
tortoise/migrations/schema_editor/base_postgres.py:98
Method
_hash
(self)
tortoise/contrib/pydantic/creator.py:269
Method
_in_transaction
(self)
tortoise/backends/oracle/client.py:61
Method
_in_transaction
(self)
tortoise/backends/mssql/client.py:96
Method
_in_transaction
(self)
tortoise/backends/mysql/client.py:184
Method
_in_transaction
(self)
tortoise/backends/mysql/client.py:246
Method
_in_transaction
(self)
tortoise/backends/base/client.py:192
Method
_in_transaction
(self)
tortoise/backends/odbc/client.py:179
Method
_in_transaction
(self)
tortoise/backends/psycopg/client.py:196
Method
_in_transaction
(self)
tortoise/backends/psycopg/client.py:217
Method
_in_transaction
(self)
tortoise/backends/sqlite/client.py:125
Method
_in_transaction
(self)
tortoise/backends/sqlite/client.py:227
Method
_in_transaction
(self)
tortoise/backends/base_postgres/client.py:135
Method
_in_transaction
(self)
tortoise/backends/asyncpg/client.py:105
Method
_in_transaction
(self)
tortoise/backends/asyncpg/client.py:178
Method
_init_apps
Internal: Initialize Apps registry on current context.
tortoise/__init__.py:262
Method
_init_relations
(cls)
tortoise/__init__.py:207
Method
_init_routers
(cls, routers: list[str | type] | None = None)
tortoise/__init__.py:467
Method
_init_timezone
(cls, use_tz: bool, timezone: str)
tortoise/__init__.py:549
Method
_inited
Check if Tortoise is initialized. Returns False if no context is active.
tortoise/__init__.py:117
Function
_local_default
()
tests/migrations/test_writer.py:427
Function
_m2m_getter
( self: Model, _key: str, field_object: ManyToManyFieldInstance )
tortoise/models.py:138
Function
_mysql_json_not_is_null
(left: Term, is_null: bool)
tortoise/contrib/mysql/json_functions.py:63
Function
_orjson_dumps
(obj: Any)
tortoise/fields/data.py:84
Method
_post_table_hook
(self)
tortoise/backends/oracle/schema_generator.py:63
Method
_post_table_hook
(self)
tortoise/backends/base_postgres/schema_generator.py:54
Method
_post_table_hook
(self)
tortoise/migrations/schema_editor/base_postgres.py:49
Method
_prepare_insert_statement
( self, columns: Sequence[str], has_generated: bool = True, ignore_conflicts: bool = False )
tortoise/backends/base_postgres/executor.py:79
Method
_process_insert_result
(self, instance: Model, results: int)
tortoise/backends/oracle/executor.py:13
Method
_process_insert_result
(self, instance: Model, results: int)
tortoise/backends/mysql/executor.py:129
Method
_process_insert_result
(self, instance: Model, results: int)
tortoise/backends/odbc/executor.py:7
Method
_process_insert_result
(self, instance: Model, results: dict | None)
tortoise/backends/psycopg/executor.py:10
Method
_process_insert_result
(self, instance: Model, results: Any)
tortoise/backends/sqlite/executor.py:66
Method
_process_insert_result
(self, instance: Model, results: dict | None)
tortoise/backends/base_postgres/executor.py:101
Method
_process_insert_result
(self, instance: Model, results: asyncpg.Record | None)
tortoise/backends/asyncpg/executor.py:10
Function
_progress_reporter
Inline progress reporter for migration execution.
tortoise/cli/cli.py:497
Method
_qualify_table_name
(self, table_name: str, schema: str | None = None)
tortoise/schema_quoting.py:21
Method
_qualify_table_name
(self, table_name: str, schema: str | None = None)
tortoise/schema_quoting.py:47
Method
_qualify_table_name
(self, table_name: str, schema: str | None = None)
tortoise/schema_quoting.py:56
Method
_query
(self)
tortoise/fields/relational.py:54
Method
_resolve_nested_field
(self, resolve_context: ResolveContext, field: str)
tortoise/expressions.py:632
Function
_rfk_getter
( self: Model, _key: str, ftype: type[Model], frelfield: str, from_field: str )
tortoise/models.py:117
Function
_ro2o_getter
( self: Model, _key: str, ftype: type[Model], frelfield: str, from_field: str )
tortoise/models.py:127
Function
_run_downgrade
(ctx: CLIContext, args: argparse.Namespace)
tortoise/cli/cli.py:834
Function
_run_heads
(ctx: CLIContext, args: argparse.Namespace)
tortoise/cli/cli.py:842
Function
_run_history
(ctx: CLIContext, args: argparse.Namespace)
tortoise/cli/cli.py:838
Function
_run_init
(ctx: CLIContext, args: argparse.Namespace)
tortoise/cli/cli.py:814
Function
_run_makemigrations
(ctx: CLIContext, args: argparse.Namespace)
tortoise/cli/cli.py:822
Function
_run_migrate_cmd
(ctx: CLIContext, args: argparse.Namespace)
tortoise/cli/cli.py:826
Function
_run_shell
(ctx: CLIContext, _args: argparse.Namespace)
tortoise/cli/cli.py:818
Function
_run_sqlmigrate
(ctx: CLIContext, args: argparse.Namespace)
tortoise/cli/cli.py:846
Function
_run_upgrade
(ctx: CLIContext, args: argparse.Namespace)
tortoise/cli/cli.py:830
Function
_runpython_forward
(apps, schema_editor)
tests/migrations/test_writer.py:524
Function
_runpython_reverse
(apps, schema_editor)
tests/migrations/test_writer.py:528
Method
_search_type
(self)
tortoise/contrib/postgres/search.py:253
Method
_self
()
tortoise/models.py:1773
Method
_self
()
tortoise/contrib/fastapi/__init__.py:202
Method
_set_pk_val
(self, value: Any)
tortoise/models.py:881
Method
_storage
Internal storage for connections. We use a property to provide a dict-like interface while being backed by a ContextVar.
tortoise/connection.py:52
Method
_table_comment_generator
(self, table: str, comment: str)
tortoise/backends/oracle/schema_generator.py:48
Method
_table_comment_generator
(self, table: str, comment: str)
tortoise/backends/mssql/schema_generator.py:48
Method
_table_comment_generator
(self, table: str, comment: str)
tortoise/backends/mysql/schema_generator.py:46
Method
_table_comment_generator
(self, table: str, comment: str)
tortoise/backends/sqlite/schema_generator.py:21
Method
_table_comment_generator
(self, table: str, comment: str)
tortoise/backends/base_postgres/schema_generator.py:39
Method
_table_generate_extra
(self, table: str)
tortoise/backends/mysql/schema_generator.py:41
Method
_timestamp_convert
(self, value: bytes)
tortoise/backends/oracle/client.py:101
Method
_tortoise_wrap
(cls, values, handler)
tortoise/contrib/pydantic/base.py:68
Function
_translate_exceptions
(self, *args, **kwargs)
tortoise/backends/base_postgres/client.py:32
Method
_translate_exceptions
(self, func, *args, **kwargs)
tortoise/backends/psycopg/client.py:179
Method
_translate_exceptions
(self, func, *args, **kwargs)
tortoise/backends/asyncpg/client.py:88
Method
_type_name
(typ: type)
tortoise/fields/base.py:494
Method
acquire_connection
Acquires a connection from the pool. Will return the current context connection if already in a transaction.
tortoise/backends/base/client.py:185
Method
acquire_connection
(self)
tests/utils/fake_client.py:32
Method
add_constraint
(self, model, constraint)
tortoise/migrations/schema_editor/mysql.py:348
Method
add_index
(self, model, index)
tortoise/migrations/schema_editor/mysql.py:217
Function
add_user
(request: Request)
examples/starlette/main.py:27
Function
add_user
(request)
examples/sanic/main.py:21
Function
add_user
()
examples/quart/main.py:27
Function
add_user
(request)
examples/aiohttp/main.py:17
Function
add_worker
()
examples/quart/main.py:33
Method
all
Return the whole QuerySet. Essentially a no-op except as the only operation.
tortoise/queryset.py:811
Method
annotate
( self, **kwargs: Expression | Term )
tortoise/queryset.py:69
Method
annotate
Annotate result with aggregation or function result. :raises TypeError: Value of kwarg is expected to be a ``Function`` instance.
tortoise/queryset.py:627
Function
anyio_backend
()
examples/sanic/_tests.py:19
Function
anyio_backend
()
examples/fastapi/_tests.py:37
Function
api
()
examples/blacksheep/_tests.py:17
Method
applied_migrations
(self)
tortoise/cli/cli.py:164
Method
applied_migrations
(self)
tortoise/migrations/autodetector.py:30
Method
applied_migrations
(self)
tortoise/migrations/api/sqlmigrate.py:19
Method
applied_migrations
(self)
tests/migrations/test_runtime_migrations.py:199
Function
apply_type_shim
Morphs model fields to representative type
tortoise/contrib/pylint/__init__.py:127
← previous
next →
1,401–1,500 of 3,850, ranked by callers