sqlite

package
v1.58.0 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2026 License: MPL-2.0 Imports: 16 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

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

func New

func New(db *sql.DB) *Store

New creates a new store backed by the given db.

func (*Store) CleanEvery added in v1.50.2

func (s *Store) CleanEvery(ctx context.Context, freq time.Duration, triggerAt, eventsToKeep, batchSize int)

func (*Store) Clear added in v1.40.0

func (s *Store) Clear(ctx context.Context, appID string) error

func (*Store) DoClean added in v1.50.2

func (s *Store) DoClean(ctx context.Context, triggerAt, eventsToKeep, batchSize int) error

func (*Store) Get

func (s *Store) Get(ctx context.Context, appID, traceID string, iter trace2.EventIterator) error

func (*Store) GetEvents added in v1.54.0

func (s *Store) GetEvents(ctx context.Context, appID, traceID, spanID string) ([]*tracepb2.TraceEvent, error)

func (*Store) GetSpanSummaries added in v1.54.0

func (s *Store) GetSpanSummaries(ctx context.Context, appID, traceID string) ([]*tracepb2.SpanSummary, error)

func (*Store) List

func (s *Store) List(ctx context.Context, q *trace2.Query, iter trace2.ListEntryIterator) error

func (*Store) Listen

func (s *Store) Listen(ch chan<- trace2.NewSpanEvent)

func (*Store) WriteEvents

func (s *Store) WriteEvents(ctx context.Context, meta *trace2.Meta, events []*tracepbcli.TraceEvent) error

Jump to

Keyboard shortcuts

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