(self, table_name, row)
Init constraint.
Init constraint.
Init constraint .
def __init__(self, table_name, row):
        """Init constraint."""
        self.table_name = table_name
        self.name = row['name']
        self.defn = row['def']
        self.contype = row['contype']
        self.is_clustered = row['is_clustered']

        # tag pkeys
        if self.contype == 'p':
            self.type += T_PKEY
def __init__ ( self , table_name , row ) : self . table_name = table_name self . name = row [ 'name' ] self . defn = row [ 'def' ] self . contype = row [ 'contype' ] self . is_clustered = row [ 'is_clustered' ] # tag pkeys if self . contype == 'p' : self . type += T_PKEY