Code example for AssetManager

Methods: list

0
        return latestVersion;
    } 
 
    private String[] listMigrationFiles() {
        try { 
            return assets.list(MIGRATIONS_SUB_DIRECTORY);
        } catch (IOException e) {
            throw new RuntimeException("Cannot open " + MIGRATIONS_SUB_DIRECTORY + " folder.");
        } 
    } 
 
    private int migrationNumberFrom(String fileName) {
        try { 
            return Integer.parseInt(fileName.replace(".sql", ""));
        } catch (RuntimeException e) {
            throw new RuntimeException("Migrations directory includes a non-numeric file name. All migration file names should be of the form <number>.sql.", e);
        } 
    } 
 
    public String[] loadMigrationNumber(int migrationNumber) {
Experience pair programming with AI  Get Codota for Java