Documentation
¶
Overview ¶
Package storageheadroom preserves an advisory margin for SQLite control and terminal records by refusing payload writes before available space is spent.
Index ¶
Constants ¶
View Source
const DefaultReserveBytes int64 = 16 << 20
Variables ¶
View Source
var ErrLowSpace = errors.New("storage control reserve reached")
Functions ¶
Types ¶
type Queryer ¶
type Queryer interface {
QueryRowContext(context.Context, string, ...any) *sql.Row
QueryContext(context.Context, string, ...any) (*sql.Rows, error)
}
Queryer is satisfied by a transaction or its owned connection. Call Check within the payload writer's existing serialization, before its first write.
Click to show internal directories.
Click to hide internal directories.