예제 #1
0
파일: pourag.py 프로젝트: imouton/pourag
def seed():
  wipe()
  if not UserModel.exists():
    UserModel.create_table(read_capacity_units=1, write_capacity_units=1, wait=True)
  if not Connection.exists():
    Connection.create_table(read_capacity_units=1, write_capacity_units=1, wait=True)
  return "Done!"
예제 #2
0
파일: pourag.py 프로젝트: imouton/pourag
def wipe():
  if UserModel.exists():
    UserModel.delete_table()
  if Connection.exists():
    Connection.delete_table()
  return "Done!"