storage

package
v1.42.0 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2026 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SQLiteStore

type SQLiteStore struct {
	// contains filtered or unexported fields
}

SQLiteStore represents the SQLite database storage for history events.

func NewSQLiteStore

func NewSQLiteStore(dsn string) (*SQLiteStore, error)

NewSQLiteStore initializes a new SQLite connection and schema.

func (*SQLiteStore) Close

func (s *SQLiteStore) Close() error

Close closes the database connection.

func (*SQLiteStore) InsertEvent

func (s *SQLiteStore) InsertEvent(ctx context.Context, e *history.Event) error

InsertEvent inserts a single history event with retry logic.

func (*SQLiteStore) InsertEvents

func (s *SQLiteStore) InsertEvents(ctx context.Context, events []*history.Event) error

InsertEvents performs a batch insert wrapped in a transaction.

Jump to

Keyboard shortcuts

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