class documentation

class Statement(Reference):

View In Hierarchy

Statement template and formatting parameters container.

Allows keeping a reference to a statement without interpolating identifiers that might have to be adjusted if they're referencing a table or column that is removed

Method __init__ Undocumented
Method __str__ Undocumented
Method references​_column Return whether or not this instance references the specified column.
Method references​_table Return whether or not this instance references the specified table.
Method rename​_column​_references Rename all references to the old_column to the new_column.
Method rename​_table​_references Rename all references to the old_name to the new_table.
Instance Variable parts Undocumented
Instance Variable template Undocumented

Inherited from Reference:

Method __repr__ Undocumented
def __init__(self, template, **parts):

Undocumented

def __str__(self):
def references_column(self, table, column):
Return whether or not this instance references the specified column.
def references_table(self, table):
Return whether or not this instance references the specified table.
def rename_column_references(self, table, old_column, new_column):
Rename all references to the old_column to the new_column.
def rename_table_references(self, old_table, new_table):
Rename all references to the old_name to the new_table.
parts =

Undocumented

template =

Undocumented