class documentation

class Index:

View In Hierarchy

Undocumented

Method __eq__ Undocumented
Method __init__ Undocumented
Method __repr__ Undocumented
Method ​_get​_condition​_sql Undocumented
Method clone Create a copy of this Index.
Method create​_sql Undocumented
Method deconstruct Undocumented
Method remove​_sql Undocumented
Method set​_name​_with​_model Generate a unique name for the index.
Class Variable max​_name​_length Undocumented
Class Variable suffix Undocumented
Instance Variable condition Undocumented
Instance Variable db​_tablespace Undocumented
Instance Variable expressions Undocumented
Instance Variable fields Undocumented
Instance Variable fields​_orders Undocumented
Instance Variable include Undocumented
Instance Variable name Undocumented
Instance Variable opclasses Undocumented
Property contains​_expressions Undocumented
def __eq__(self, other):

Undocumented

def __init__(self, *expressions, fields=(), name=None, db_tablespace=None, opclasses=(), condition=None, include=None):

Undocumented

def __repr__(self):

Undocumented

def _get_condition_sql(self, model, schema_editor):

Undocumented

def clone(self):
Create a copy of this Index.
def create_sql(self, model, schema_editor, using='', **kwargs):

Undocumented

def deconstruct(self):

Undocumented

def remove_sql(self, model, schema_editor, **kwargs):

Undocumented

def set_name_with_model(self, model):

Generate a unique name for the index.

The name is divided into 3 parts - table name (12 chars), field name (8 chars) and unique hash + suffix (10 chars). Each part is made to fit its size by truncating the excess length.

max_name_length: int =

Undocumented

suffix: str =

Undocumented

condition =

Undocumented

db_tablespace =

Undocumented

expressions =

Undocumented

fields =

Undocumented

fields_orders =

Undocumented

include =

Undocumented

name =

Undocumented

opclasses =

Undocumented

@property
contains_expressions =

Undocumented