Show database file size on info page

This commit is contained in:
2022-08-21 13:24:52 +09:30
parent a03baca498
commit f98df478bb
7 changed files with 25 additions and 10 deletions

View File

@@ -10,6 +10,7 @@ import (
type DB struct {
store *bolthold.Store
file string
}
func (db *DB) Open(path string) error {
@@ -21,6 +22,7 @@ func (db *DB) Open(path string) error {
return fmt.Errorf("cannot open '%s' - %s", path, err)
}
db.store = store
db.file = path
return nil
}