raiseException('The selected target attribute ("%s") is not among the columns selected for the target table ("%s").'%(self.target_att,self.target_table))
deffmt_cols(self,cols):
return','.join(["`%s`"%colforcolincols])
defrows(self,table,cols):
con=self.connection.connect()
cursor=con.cursor()
cursor.execute("SELECT %s FROM %s"%(self.fmt_cols(cols),table))
con.close()
return[colsforcolsincursor]
deffetch_types(self,table,cols):
'''
Returns a dictionary of field types for the given table and columns.
'''
con=self.connection.connect()
cursor=con.cursor()
cursor.execute("SELECT %s FROM `%s` LIMIT 1"%(self.fmt_cols(cols),table))