(self, curs, new_name = None)
return 'ALTER TABLE %s\n  OWNER TO %s;' % (quote_fqident(new_name), quote_ident(self.owner))
Generate creation SQL.
Generate creation SQL.
Generate creation SQL .
def get_create_sql(self, curs, new_name = None):
        """Generate creation SQL."""
        if not new_name:
            new_name = self.table_name
        return 'ALTER TABLE %s\n  OWNER TO %s;' % (quote_fqident(new_name), quote_ident(self.owner))
def get_create_sql ( self , curs , new_name = None ) : if not new_name : new_name = self . table_name return 'ALTER TABLE %s\n  OWNER TO %s;' % ( quote_fqident ( new_name ) , quote_ident ( self . owner ) )