Esempio n. 1
0
    def test_get_table_names(self):

        db = SQLite(os.path.dirname(__file__) + '/../data/northwind.db')

        tables = db.get_table_names()

        pprint(tables)
Esempio n. 2
0
    def test_find_by(self):

        db = SQLite(os.path.dirname(__file__) + '/../data/northwind.db')
        data = db.find_by('Customers', 'City', 'Berlin')

        pprint(data)
Esempio n. 3
0
    def test_find_all(self):

        db = SQLite(os.path.dirname(__file__) + '/../data/northwind.db')
        data = db.find_all('Customers')

        pprint(data)