Documentation
¶
Overview ¶
Package sqlite3stat provides optional SQLite connection status helpers for observability.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var PutDebugHook *func(*sql.Conn) []slog.Attr
PutDebugHook is an optional hook for extra debug attributes on pool Put. A nil pointer or a nil *func is a no-op.
Functions ¶
func DBStatusMem ¶
DBStatusMem returns the sum of CACHE_USED, SCHEMA_USED, and STMT_USED for conn.
func DefaultPutDebugAttrs ¶
DefaultPutDebugAttrs returns db_status_mem when readable from conn.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.