public static void deleteAccount(String player) { String query = "delete from data where player = '" + player + "'"; database.query(query); }
public static int getBalance(String player) { String query = "select quantity from data where player = '" + player + "'"; return parseQueryToInt(database.query(query)); }
public static void updateQuantity(String player, int quantity) { String query = "update data set quantity = " + quantity + " where player = '" + player + "'"; database.query(query); }
public static void openAccount(String player, int quantity) { String query = "insert into data(player,quantity) values('" + player + "'," + quantity + ")"; database.query(query); }