In MapDB 1.x, you could easily delete tables from the MapDB by calling db.delete("table name")
and db.rename("old table name", "new table name")
.
But there seems to be no API functionality to do either of the above anymore.
How do you delete and rename tables in MapDB 3.x?
In comments of
Db.delete()
from version1.0
, there is the following:So
delete()
was actually deleting named records/collections. Of course latter can be perceived as tables.One major change in the project (since version 1.0) was the conversion to
kotlin
.After this, a big refactoring seems to have happened on April 2018. See entry:
Commits on Apr 5, 2018
from https://github.com/jankotek/mapdb/commits/master/src/main/java/org/mapdb/DB.ktIn this day
delete()
was removed fromDb.tk
and aStore
containingput/update/delete
was created.db.getStore().delete()
might be what you want to use.