public Promise<Integer> getOrderedMaxPages(int entriesPerPage) {
        return Schedulers.async().call(() -> {
            try (Connection c = sql.getConnection()) {
                try (PreparedStatement ps = c.prepareStatement(SELECT_MAX_PAGES.replace("{table}", table))) {
                    ps.setInt(1, entriesPerPage);
                    try (ResultSet rs = ps.executeQuery()) {
                        return rs.next() ? (int) Math.ceil(rs.getDouble("max_pages")) : 0;
                    }
                }
            }
        });
    }
Gets the max number of pages, assuming the given entries per page.

@param entriesPerPage the entries per page
@return the max pages
helper-sql/src/main/java/me/lucko/helper/sql/util/Uuid2PosNumberTable.java