sqlite

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2026 License: MIT Imports: 11 Imported by: 0 modules, 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

Overview

Package sqlite is the SQLite store provider (ADR-004), for the daemon host. It is pure Go (modernc.org/sqlite), so ynf stays a static binary.

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
}

Store is a SQLite-backed store.Store.

func Open

func Open(path string) (*Store, error)

Open opens (creating if needed) the database at path.

func (*Store) Append

func (s *Store) Append(ctx context.Context, item string, e store.LogEntry) error

Append implements store.Store.

func (*Store) Close

func (s *Store) Close() error

Close implements store.Store.

func (*Store) Delete

func (s *Store) Delete(ctx context.Context, key, ifVersion string) error

Delete implements store.Store.

func (*Store) Due

func (s *Store) Due(ctx context.Context, now time.Time, limit int) ([]string, error)

Due implements store.Store.

func (*Store) Get

func (s *Store) Get(ctx context.Context, key string) ([]byte, string, error)

Get implements store.Store.

func (*Store) Keys

func (s *Store) Keys(ctx context.Context, prefix string) ([]string, error)

Keys implements store.Store.

func (*Store) Log

func (s *Store) Log(ctx context.Context, item string) ([]store.LogEntry, error)

Log implements store.Store.

func (*Store) Put

func (s *Store) Put(ctx context.Context, key string, doc []byte, ifVersion string) (string, error)

Put implements store.Store.

func (*Store) Schedule

func (s *Store) Schedule(ctx context.Context, item string, at time.Time) error

Schedule implements store.Store.

Jump to

Keyboard shortcuts

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