Exemple #1
0
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!"
Exemple #2
0
def wipe():
  if UserModel.exists():
    UserModel.delete_table()
  if Connection.exists():
    Connection.delete_table()
  return "Done!"