MCPcopy Create free account

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

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

Method__str__
(self)
examples/comprehensive_migrations_project/models.py:166
Method__str__
(self)
examples/comprehensive_migrations_project/models.py:178
Method__str__
(self)
examples/comprehensive_migrations_project/models.py:198
Method__sub__
(self, other)
tortoise/expressions.py:194
Method__truediv__
(self, other)
tortoise/expressions.py:200
Method_add_returning_to_insert
( self, query: QueryBuilder, has_generated: bool, db_default_columns: list[str
tortoise/backends/sqlite/executor.py:32
Method_add_returning_to_insert
( self, query: QueryBuilder, has_generated: bool, db_default_columns: list[str
tortoise/backends/base_postgres/executor.py:90
Method_alter_column_comment
Emit MODIFY COLUMN with full column definition for MySQL. MySQL has no standalone COMMENT ON COLUMN statement, so changing the commen
tortoise/migrations/schema_editor/mysql.py:337
Method_alter_column_comment
Emit COMMENT ON COLUMN for PostgreSQL.
tortoise/migrations/schema_editor/base_postgres.py:56
Method_alter_field
(self, model: type[Model], old_field: Field, new_field: Field)
tortoise/migrations/schema_editor/mysql.py:313
Method_alter_field
Override to use Oracle MODIFY syntax instead of ALTER COLUMN. Oracle does not support ``ALTER COLUMN``. Nullability, type, and default
tortoise/migrations/schema_editor/oracle.py:158
Method_alter_field
(self, model, old_field, new_field)
tortoise/migrations/schema_editor/sqlite.py:219
Method_as_tsquery
(self)
tortoise/contrib/postgres/search.py:414
Method_build_initial_querysets
(cls)
tortoise/__init__.py:292
Method_builder
(cls, **kwargs)
tortoise/backends/psycopg/client.py:39
Method_close
(self)
tortoise/backends/psycopg/client.py:172
Method_close
(self)
tortoise/backends/asyncpg/client.py:79
Method_column_comment_generator
(self, table: str, column: str, comment: str)
tortoise/backends/oracle/schema_generator.py:55
Method_column_comment_generator
(self, table: str, column: str, comment: str)
tortoise/backends/mssql/schema_generator.py:51
Method_column_comment_generator
(self, table: str, column: str, comment: str)
tortoise/backends/mysql/schema_generator.py:49
Method_column_comment_generator
(self, table: str, column: str, comment: str)
tortoise/backends/sqlite/schema_generator.py:24
Method_column_comment_generator
(self, table: str, column: str, comment: str)
tortoise/backends/base_postgres/schema_generator.py:46
Method_column_default_generator
( self, table: str, column: str, default: Any, )
tortoise/backends/oracle/schema_generator.py:70
Method_column_default_generator
( self, table: str, column: str, default: Any, )
tortoise/backends/mssql/schema_generator.py:54
Method_column_default_generator
( self, table: str, column: str, default: Any, )
tortoise/backends/mysql/schema_generator.py:52
Method_column_default_generator
( self, table: str, column: str, default: Any, )
tortoise/backends/sqlite/schema_generator.py:27
Method_column_default_generator
( self, table: str, column: str, default: Any, )
tortoise/backends/base_postgres/schema_generator.py:61
Function_convert_second_fraction
(s)
tortoise/converters.py:131
Method_create_fk_string
( self, constraint_name: str, db_column: str, table: str, field: str,
tortoise/backends/oracle/schema_generator.py:97
Method_create_fk_string
( self, constraint_name: str, db_column: str, table: str, field: str,
tortoise/backends/mssql/schema_generator.py:81
Method_create_fk_string
( self, constraint_name: str, db_column: str, table: str, field: str,
tortoise/backends/mysql/schema_generator.py:79
Method_create_string
( self, db_column: str, field_type: str, nullable: str, unique: str,
tortoise/backends/mssql/schema_generator.py:103
Function_db_fixture
()
conftest.py:206
Function_default_value
()
tests/migrations/test_writer.py:382
Function_emit_migration_plan
( connection_name: str, plan: list[PlanStep], fake: bool, dry_run: bool, )
tortoise/cli/cli.py:332
Method_escape_default_value
(self, default: Any)
tortoise/backends/oracle/schema_generator.py:78
Method_escape_default_value
(self, default: Any)
tortoise/backends/mssql/schema_generator.py:62
Method_escape_default_value
(self, default: Any)
tortoise/backends/mysql/schema_generator.py:60
Method_escape_default_value
(self, default: Any)
tortoise/backends/sqlite/schema_generator.py:35
Method_escape_default_value
(self, default: Any)
tortoise/backends/base_postgres/schema_generator.py:69
Method_escape_default_value
(self, default: object)
tortoise/migrations/schema_editor/base_postgres.py:93
Method_execute
(self)
tortoise/queryset.py:317
Method_execute_insert_dynamic
Execute dynamic INSERT with RETURNING via execute_query. SQLite's ``execute_insert`` only returns ``lastrowid``. When we have a RETUR
tortoise/backends/sqlite/executor.py:43
Method_expire_connections
(self)
tortoise/backends/mysql/client.py:152
Method_expire_connections
(self)
tortoise/backends/psycopg/client.py:167
Method_expire_connections
(self)
tortoise/backends/base_postgres/client.py:104
Method_expire_connections
(self)
tortoise/backends/asyncpg/client.py:75
Function_fk_getter
( self: Model, _key: str, ftype: type[Model], relation_field: str, to_field: str )
tortoise/models.py:105
Function_fk_setter
( self: Model, value: Model | None, _key: str, relation_field: str, to_field: str, )
tortoise/models.py:94
Function_gen
()
tests/benchmarks/conftest.py:58
Method_get_column_comment_sql
(self, table: str, column: str, comment: str)
tortoise/migrations/schema_editor/mssql.py:77
Method_get_column_comment_sql
(self, table: str, column: str, comment: str)
tortoise/migrations/schema_editor/mysql.py:56
Method_get_column_comment_sql
(self, table: str, column: str, comment: str)
tortoise/migrations/schema_editor/oracle.py:51
Method_get_column_comment_sql
(self, table: str, column: str, comment: str)
tortoise/migrations/schema_editor/base_postgres.py:41
Method_get_column_comment_sql
(self, table: str, column: str, comment: str)
tests/migrations/test_schema_qualified_migrations.py:120
Method_get_column_comment_sql
(self, table: str, column: str, comment: str)
tests/migrations/test_schema_editor_backends.py:25
Method_get_column_comment_sql
(self, table: str, column: str, comment: str)
tests/migrations/test_operations_database.py:40
Method_get_column_comment_sql
(self, table: str, column: str, comment: str)
tests/migrations/test_schema_editor_sql.py:22
Method_get_column_comment_sql
(self, table: str, column: str, comment: str)
tests/migrations/test_schema_editor_constraints.py:24
Method_get_column_comment_sql
(self, table, column, comment)
tests/fields/test_db_default.py:410
Method_get_dialects
(self)
tortoise/fields/base.py:375
Function_get_engine
Get the current test engine.
tests/schema/test_generate_schema.py:140
Method_get_escape_translation_table
(cls)
tortoise/backends/oracle/schema_generator.py:43
Method_get_escape_translation_table
(cls)
tortoise/backends/sqlite/schema_generator.py:14
Method_get_escape_translation_table
(cls)
tortoise/backends/base_postgres/schema_generator.py:34
Method_get_escape_translation_table
(cls)
tortoise/migrations/schema_editor/oracle.py:41
Method_get_escape_translation_table
(cls)
tortoise/migrations/schema_editor/base_postgres.py:31
Method_get_escape_translation_table
(cls)
tortoise/migrations/schema_editor/sqlite.py:26
Method_get_fk_field_definition
(self, model: type[Model], key_field_name: str)
tortoise/migrations/schema_editor/mssql.py:80
Method_get_fk_reference_string
( self, constraint_name: str, db_field: str, table: str, field: str,
tortoise/migrations/schema_editor/mssql.py:89
Method_get_fk_reference_string
( self, constraint_name: str, db_field: str, table: str, field: str,
tortoise/migrations/schema_editor/mysql.py:59
Method_get_fk_reference_string
( self, constraint_name: str, db_field: str, table: str, field: str,
tortoise/migrations/schema_editor/oracle.py:66
Method_get_function_field
( # type:ignore[override] self, field: ArithmeticExpression | PypikaField | str, *default_values
tortoise/expressions.py:624
Method_get_index_sql
( self, model: type[Model], field_names: Sequence[str], safe: bool, in
tortoise/backends/oracle/schema_generator.py:81
Method_get_index_sql
( self, model: type[Model], field_names: Sequence[str], safe: bool, in
tortoise/backends/mssql/schema_generator.py:65
Method_get_index_sql
Get index SQLs, but keep them for ourselves
tortoise/backends/mysql/schema_generator.py:63
Method_get_index_sql
( self, model: type[Model], field_names: Sequence[str], safe: bool, in
tortoise/backends/base_postgres/schema_generator.py:74
Method_get_index_sql
( self, model: type[Model], field_names: list[str], safe: bool = False,
tortoise/migrations/schema_editor/mysql.py:87
Method_get_index_sql
( self, model: type[Model], field_names: Sequence[str], safe: bool = False,
tortoise/migrations/schema_editor/base_postgres.py:73
Method_get_inner_statements
(self)
tortoise/backends/oracle/schema_generator.py:121
Method_get_inner_statements
(self)
tortoise/backends/mssql/schema_generator.py:125
Method_get_inner_statements
(self)
tortoise/backends/mysql/schema_generator.py:101
Method_get_inner_statements
(self)
tortoise/migrations/schema_editor/mssql.py:120
Method_get_inner_statements
(self)
tortoise/migrations/schema_editor/mysql.py:81
Method_get_inner_statements
(self)
tortoise/migrations/schema_editor/oracle.py:90
Method_get_m2m_table_definition
( self, model: type[Model], field: ManyToManyFieldInstance )
tortoise/migrations/schema_editor/mssql.py:200
Method_get_m2m_table_definition
( self, model: type[Model], field: ManyToManyFieldInstance )
tortoise/migrations/schema_editor/mysql.py:123
Method_get_m2m_table_definition
( self, model: type[Model], field: ManyToManyFieldInstance )
tortoise/migrations/schema_editor/oracle.py:104
Method_get_models_to_create
(self)
tests/migrations/test_schema_editor_backend_parity.py:135
Method_get_pk_val
(self)
tortoise/models.py:878
Method_get_schema_create_sql
(self, schema: str, safe: bool)
tortoise/backends/mssql/schema_generator.py:40
Method_get_schema_create_sql
(self, schema: str, safe: bool)
tortoise/backends/base_postgres/schema_generator.py:28
Function_get_sql
Get SQL statement containing the given text.
tests/model_setup/test__models__.py:62
Method_get_table_comment_sql
(self, table: str, comment: str)
tortoise/migrations/schema_editor/mssql.py:74
Method_get_table_comment_sql
(self, table: str, comment: str)
tortoise/migrations/schema_editor/oracle.py:46
Method_get_table_comment_sql
(self, table: str, comment: str)
tortoise/migrations/schema_editor/base_postgres.py:36
Method_get_table_comment_sql
(self, table: str, comment: str)
tortoise/migrations/schema_editor/sqlite.py:53
Method_get_table_comment_sql
(self, table: str, comment: str)
tests/migrations/test_schema_qualified_migrations.py:117
Method_get_table_comment_sql
(self, table: str, comment: str)
tests/migrations/test_schema_editor_backends.py:22
Method_get_table_comment_sql
(self, table: str, comment: str)
tests/migrations/test_operations_database.py:37
← previousnext →1,301–1,400 of 3,850, ranked by callers