Exemplo n.º 1
0
def conn_test():
    ''' 
        Test the connection by displaying rows from a table 
    '''
    conn = DBConnect()
    cursor = conn.getCursor(True)
    cursor.executeQuery('select * from wine_training_set')
    conn.printTable(cursor)