Plain is headed towards 1.0! Subscribe for development updates →

 1from plain.models.backends.base.features import BaseDatabaseFeatures
 2
 3
 4class DatabaseFeatures(BaseDatabaseFeatures):
 5    minimum_database_version = (12,)
 6    allows_group_by_selected_pks = True
 7    can_return_columns_from_insert = True
 8    can_return_rows_from_bulk_insert = True
 9    has_native_uuid_field = True
10    has_native_duration_field = True
11    has_native_json_field = True
12    can_defer_constraint_checks = True
13    has_select_for_update = True
14    has_select_for_update_nowait = True
15    has_select_for_update_of = True
16    has_select_for_update_skip_locked = True
17    has_select_for_no_key_update = True
18    supports_comments = True
19    supports_transactions = True
20    can_rollback_ddl = True
21    supports_combined_alters = True
22    supports_temporal_subtraction = True
23    supports_slicing_ordering_in_compound = True
24
25    requires_casted_case_in_updates = True
26    supports_over_clause = True
27    only_supports_unbounded_with_preceding_and_following = True
28    supports_aggregate_filter_clause = True
29    supported_explain_formats = {"JSON", "TEXT", "XML", "YAML"}
30    supports_deferrable_unique_constraints = True
31    supports_update_conflicts = True
32    supports_update_conflicts_with_target = True
33    supports_covering_indexes = True
34    can_rename_index = True
35
36    supports_unlimited_charfield = True