def __init__(self, table_name, row): self.name = row['name'] fname = row['qname'].ljust(row['maxcol'] + 3) self.column_def = fname + ' ' + row['dtype'] if row['attnotnull']: self.column_def += ' not null' self.sequence = None if row['seqname']: self.seqname = unquote_fqident(row['seqname'])
def __init__(self, table_name, row): self.name = row['name'] self.column_def = row['def'] self.sequence = None if row['seqname']: self.seqname = unquote_fqident(row['seqname'])