Help us shape the future of Go! Take the 2026 Go Developer Survey

sqlite

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2026 License: MIT Imports: 11 Imported by: 0

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