Browse Source

db_init: always call the function callback to make upgrades possible

master
nixo 2 years ago
parent
commit
0d37e75d17
  1. 7
      src/db_init.jl

7
src/db_init.jl

@ -6,9 +6,8 @@ function DataBase(f, path::String)
db = if isdir(path)
DataBase(path, verbose = true);
else
let db = DataBase(path, verbose = true);
f(db)
db
end
DataBase(path, verbose = true);
end
f(db)
db
end

Loading…
Cancel
Save