File: features.pyi

package info (click to toggle)
python-django-stubs 5.2.9-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,832 kB
  • sloc: python: 5,185; makefile: 15; sh: 8
file content (154 lines) | stat: -rw-r--r-- 6,107 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
from collections.abc import Sequence
from typing import Any

from django.db.backends.base.base import BaseDatabaseWrapper
from django.db.models.base import Model
from django.db.utils import DatabaseError, DataError
from django.utils.functional import cached_property

class BaseDatabaseFeatures:
    minimum_database_version: tuple[int, ...] | None
    gis_enabled: bool
    allows_group_by_lob: bool
    allows_group_by_selected_pks: bool
    allows_group_by_select_index: bool
    empty_fetchmany_value: Sequence[Any]
    update_can_self_select: bool
    delete_can_self_reference_subquery: bool
    interprets_empty_strings_as_nulls: bool
    supports_nullable_unique_constraints: bool
    supports_partially_nullable_unique_constraints: bool
    supports_deferrable_unique_constraints: bool
    can_use_chunked_reads: bool
    can_return_columns_from_insert: bool
    can_return_rows_from_bulk_insert: bool
    has_bulk_insert: bool
    uses_savepoints: bool
    can_release_savepoints: bool
    related_fields_match_type: bool
    allow_sliced_subqueries_with_in: bool
    has_select_for_update: bool
    has_select_for_update_nowait: bool
    has_select_for_update_skip_locked: bool
    has_select_for_update_of: bool
    has_select_for_no_key_update: bool
    select_for_update_of_column: bool
    test_db_allows_multiple_connections: bool
    supports_unspecified_pk: bool
    supports_forward_references: bool
    truncates_names: bool
    has_real_datatype: bool
    supports_subqueries_in_group_by: bool
    ignores_unnecessary_order_by_in_subqueries: bool
    has_native_uuid_field: bool
    has_native_duration_field: bool
    supports_temporal_subtraction: bool
    supports_regex_backreferencing: bool
    supports_date_lookup_using_string: bool
    supports_timezones: bool
    has_zoneinfo_database: bool
    requires_explicit_null_ordering_when_grouping: bool
    nulls_order_largest: bool
    supports_order_by_nulls_modifier: bool
    order_by_nulls_first: bool
    max_query_params: int | None
    allows_auto_pk_0: bool
    can_defer_constraint_checks: bool
    supports_tablespaces: bool
    supports_sequence_reset: bool
    can_introspect_default: bool
    can_introspect_foreign_keys: bool
    introspected_field_types: dict[str, str]
    supports_index_column_ordering: bool
    can_introspect_materialized_views: bool
    can_distinct_on_fields: bool
    atomic_transactions: bool
    can_rollback_ddl: bool
    schema_editor_uses_clientside_param_binding: bool
    supports_combined_alters: bool
    supports_foreign_keys: bool
    can_create_inline_fk: bool
    can_rename_index: bool
    indexes_foreign_keys: bool
    supports_column_check_constraints: bool
    supports_table_check_constraints: bool
    can_introspect_check_constraints: bool
    supports_paramstyle_pyformat: bool
    requires_literal_defaults: bool
    supports_expression_defaults: bool
    supports_default_keyword_in_insert: bool
    supports_default_keyword_in_bulk_insert: bool
    connection_persists_old_columns: bool
    closed_cursor_error_class: type[DatabaseError]
    has_case_insensitive_like: bool
    bare_select_suffix: str
    implied_column_null: bool
    supports_select_for_update_with_limit: bool
    greatest_least_ignores_nulls: bool
    can_clone_databases: bool
    ignores_table_name_case: bool
    for_update_after_from: bool
    supports_select_union: bool
    supports_select_intersection: bool
    supports_select_difference: bool
    supports_slicing_ordering_in_compound: bool
    supports_parentheses_in_compound: bool
    supports_nulls_distinct_unique_constraints: bool
    requires_compound_order_by_subquery: bool
    supports_aggregate_filter_clause: bool
    supports_index_on_text_field: bool
    supports_over_clause: bool
    supports_frame_range_fixed_distance: bool
    supports_frame_exclusion: bool
    only_supports_unbounded_with_preceding_and_following: bool
    supports_cast_with_precision: bool
    time_cast_precision: int
    create_test_procedure_without_params_sql: str | None
    create_test_procedure_with_int_param_sql: str | None
    create_test_table_with_composite_primary_key: str | None
    supports_callproc_kwargs: bool
    supported_explain_formats: set[str]
    supports_default_in_lead_lag: bool
    supports_ignore_conflicts: bool
    supports_update_conflicts: bool
    supports_update_conflicts_with_target: bool
    requires_casted_case_in_updates: bool
    supports_partial_indexes: bool
    supports_functions_in_partial_indexes: bool
    supports_covering_indexes: bool
    supports_expression_indexes: bool
    collate_as_index_expression: bool
    allows_multiple_constraints_on_same_fields: bool
    supports_comparing_boolean_expr: bool
    supports_json_field: bool
    can_introspect_json_field: bool
    supports_primitives_in_json_field: bool
    has_native_json_field: bool
    has_json_operators: bool
    supports_json_field_contains: bool
    json_key_contains_list_matching_requires_list: bool
    has_json_object_function: bool
    supports_collation_on_charfield: bool
    supports_collation_on_textfield: bool
    supports_non_deterministic_collations: bool
    supports_comments: bool
    supports_comments_inline: bool
    supports_stored_generated_columns: bool
    supports_virtual_generated_columns: bool
    supports_logical_xor: bool
    prohibits_null_characters_in_text_exception: tuple[ValueError | DataError] | None
    supports_unlimited_charfield: bool
    test_collations: dict[str, str | None]
    test_now_utc_template: str | None
    insert_test_table_with_defaults: str | None
    django_test_expected_failures: set[str]
    django_test_skips: dict[str, set[str]]
    connection: BaseDatabaseWrapper
    def __init__(self, connection: BaseDatabaseWrapper) -> None: ...
    @cached_property
    def supports_explaining_query_execution(self) -> bool: ...
    @cached_property
    def supports_transactions(self) -> bool: ...
    @cached_property
    def supports_boolean_expr_in_select_clause(self) -> bool: ...
    def allows_group_by_selected_pks_on_model(self, model: type[Model]) -> bool: ...