sqlite

package
v0.19.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 18, 2026 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListEventTypes

func ListEventTypes(ctx context.Context, db *sql.DB) ([]string, error)

ListEventTypes returns distinct non-empty event_type values from the logs table.

func ListServices

func ListServices(ctx context.Context, db *sql.DB) ([]string, error)

ListServices returns distinct non-empty service values from the logs table.

func NewAgentNoteStore

func NewAgentNoteStore(db *bun.DB) store.AgentNoteStore

NewAgentNoteStore creates a new AgentNoteStore backed by SQLite.

func NewAnalyticsStore

func NewAnalyticsStore(db *bun.DB) store.AnalyticsStore

NewAnalyticsStore creates an AnalyticsStore backed by SQLite.

func NewAuditStore

func NewAuditStore(db *bun.DB) store.AuditStore

NewAuditStore creates a new AuditStore backed by SQLite.

func NewCodeEntityStore

func NewCodeEntityStore(db *bun.DB) store.CodeEntityStore

NewCodeEntityStore creates a new SQLite-backed CodeEntityStore.

func NewDataSourceStore

func NewDataSourceStore(db *bun.DB) store.DataSourceStore

NewDataSourceStore creates a new DataSourceStore backed by SQLite.

func NewErrorGroupStore

func NewErrorGroupStore(db *bun.DB) store.ErrorGroupStore

NewErrorGroupStore creates a new ErrorGroupStore backed by SQLite.

func NewErrorImpactStore

func NewErrorImpactStore(db *bun.DB) store.ErrorImpactStore

NewErrorImpactStore creates an ErrorImpactStore backed by SQLite.

func NewHealthCheckStore

func NewHealthCheckStore(db *bun.DB) store.HealthCheckStore

NewHealthCheckStore creates a new HealthCheckStore backed by SQLite.

func NewMCPActivityStore

func NewMCPActivityStore(db *bun.DB) store.MCPActivityStore

NewMCPActivityStore creates a new MCPActivityStore backed by SQLite.

func NewMetricStore

func NewMetricStore(db *bun.DB) store.MetricStore

NewMetricStore creates a new MetricStore backed by SQLite.

func NewServerStore

func NewServerStore(db *bun.DB) store.ServerStore

NewServerStore creates a new ServerStore backed by SQLite.

func NewSessionStore

func NewSessionStore(db *bun.DB) store.SessionStore

func NewSettingsStore

func NewSettingsStore(db *bun.DB) store.SettingsStore

NewSettingsStore creates a new SettingsStore backed by SQLite.

func NewStores

func NewStores(db *bun.DB, logStore store.LogStore) store.Stores

NewStores creates all store implementations backed by the given SQLite database. logStore is the segmented log store adapter (passed in from main, not created here).

func NewTraceStore

func NewTraceStore(db *bun.DB) store.TraceStore

NewTraceStore creates a new TraceStore backed by SQLite.

func NewTrendStore

func NewTrendStore(db *bun.DB) store.TrendStore

NewTrendStore creates a TrendStore backed by SQLite.

func NewUserStore

func NewUserStore(db *bun.DB) store.UserStore

func NewWatchStore

func NewWatchStore(db *bun.DB) store.WatchStore

NewWatchStore creates a new WatchStore backed by SQLite.

func OpenSQLite

func OpenSQLite(path string) (*bun.DB, error)

OpenSQLite opens a SQLite database with recommended settings. Returns a *bun.DB wrapping the underlying *sql.DB. Use db.DB to access the raw *sql.DB.

func RunSQLiteMigrations

func RunSQLiteMigrations(db *bun.DB) error

RunSQLiteMigrations applies all pending SQLite migrations using a simple schema_version tracking table.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL