コード例 #1
0
ファイル: test.py プロジェクト: AkashUkani/store
#dao.insertUser(u3)

print("$$$$$$$$$$")
for row in dao.getAllUsers():
    print(row)
print("$$$$$$$$$")

#print(dao.getUserByuserid(2))
#print(dao.getUserByusername('Akash'))
#print(dao.delete(2))

#for row in dao.getAllUsers():
#    print(row)

#print("%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%")
#ItemModel.drop()
#ItemModel.create()
#i1 = ("Chair",15.99)
#i2 = ("Table",17.99)

#ItemModel.insertItem(i1)
#ItemModel.insertItem(i2)
#print("%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%")
#print("%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%")

for row in ItemModel.getItems():
    print(row)

#connection.commit()
#connection.close()
コード例 #2
0
 def get(self):
     return {'items': ItemModel.getItems()}