2020-11-19 13:53:22 +00:00
|
|
|
package meta
|
|
|
|
|
2020-12-08 07:51:34 +00:00
|
|
|
import (
|
|
|
|
"os"
|
|
|
|
)
|
|
|
|
|
2020-11-19 13:53:22 +00:00
|
|
|
// Info groups the information about DB.
|
|
|
|
type Info struct {
|
|
|
|
// Full path to the metabase.
|
|
|
|
Path string
|
2020-12-08 07:51:34 +00:00
|
|
|
|
|
|
|
// Permission of database file.
|
|
|
|
Permission os.FileMode
|
2020-11-19 13:53:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// DumpInfo returns information about the DB.
|
|
|
|
func (db *DB) DumpInfo() Info {
|
|
|
|
return db.info
|
|
|
|
}
|