Documentation
¶
Overview ¶
Package sqlitestorage implements the storage.Backend interface using an in-memory SQLite database with periodic disk dumps via VACUUM INTO. It wraps the GORM backend via composition — the only SQLite-specific concerns are: (a) creating the in-memory DB, (b) skipping ProjectileEvent (no PostGIS), (c) periodic disk dump, and (d) schema migration without PostGIS.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
Backend wraps the GORM backend for SQLite-specific behavior.
func New ¶
func New(cfg Config, entityCache *cache.EntityCache, markerCache *cache.MarkerCache, logManager *logging.SlogManager) (*Backend, error)
New creates a new SQLite storage backend.
func (*Backend) RecordProjectileEvent ¶
func (b *Backend) RecordProjectileEvent(e *core.ProjectileEvent) error
RecordProjectileEvent is a no-op — SQLite doesn't support LineStringZM (PostGIS geometry).
Click to show internal directories.
Click to hide internal directories.