source: orange/Orange/testing/regression/tests_20/modules_sql1.py @ 9952:986e9cd806f4

Revision 9952:986e9cd806f4, 345 bytes checked in by Miha Stajdohar <miha.stajdohar@…>, 2 years ago (diff)

Tests moved and renamed from orange 20.

Line 
1# Description: Reads a data base from MySQL
2# Category:    file formats
3# Classes:     orngMySQL.Connect
4# Referenced:  orngMySQL.htm
5
6import orange, orngMySQL
7
8t = orngMySQL.Connect('localhost','root','','test')
9data = t.query ("SELECT * FROM bus WHERE line='10'")
10for x in data:
11    print x
12
13print
14for a in data.domain.attributes:
15    print a
Note: See TracBrowser for help on using the repository browser.