Didn't find api for:
Are there any options? Thanks
- Getting list of existing/not empty Hive boxes
I think this feature have not yet implemented into hivedb.
- Checking by box name if it has bern created before (and/or is not empty)
Did you tried using .boxExists method for checking exists boxes?
bool exists = await Hive.boxExists('boxName');
Thanks. It seems the way to check for existing boxes is to list *.hive files in app's direcotry (they are named after boxes' names).
P.S.: the use case for listing existing boxes is to keep track of potential grabage and clean it
Thanks. It seems the way to check for existing boxes is to list *.hive files in app's direcotry (they are named after boxes' names).
P.S.: the use case for listing existing boxes is to keep track of potential grabage and clean it
Yes you can list exists boxes by listing *.hive files. This was not implemented in hive because user may store hive files in any directory not just app's data dir. Also hive uses different storage method on web. So this will not work on web.
Most helpful comment
I think this feature have not yet implemented into hivedb.
Did you tried using
.boxExistsmethod for checking exists boxes?