Documentation
¶
Overview ¶
Package dbstat divides a SQLite file's pages among the tables and indexes that own them, as SQLite's dbstat table does, for measurements: SQLite as the driver builds it leaves dbstat out.
It reads the file and not a connection, so a page the write-ahead log still holds is not counted: close the file, or checkpoint it, first.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Object ¶
type Object struct {
Name string
Pages int64 // its b-tree's pages with their overflow pages
Bytes int64 // what dbstat's sum(pgsize) gives
}
Object is one b-tree of the file, sqlite_schema's included.
Click to show internal directories.
Click to hide internal directories.