home *** CD-ROM | disk | FTP | other *** search
/ One Click 11 / OneClick11.iso / Bancos de Dados / Conversao / Mysql2Excel / Setup.exe / Mysql2Excel.exe / class_conecta.pyc (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2003-06-23  |  828 b   |  18 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 2.2)
  3.  
  4. from CompatMysqldb import *
  5.  
  6. class conecta:
  7.     
  8.     def __init__(self, host, user, senha, bd):
  9.         self.conn = Connection(host, user, senha, bd)
  10.         self.dados = self.conn.cursor()
  11.  
  12.     
  13.     def query(self, sql):
  14.         self.dados.execute(sql)
  15.         return self.dados.fetchall()
  16.  
  17.  
  18.