sqlitekit

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2026 License: MIT Imports: 10 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 sqlitekit drives a `sqlite` implementation through the language-neutral sqlite kit, `corpus/sqlite-kit/`. Each call goes through the factory's Operations and their checks, so a step gives what a Script would see.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(open func() (Subject, error), seq Sequence) (err error)

Run runs one sequence on a fresh database, failing at the first step that differs.

Types

type Sequence

type Sequence struct {
	File, Name string
	// contains filtered or unexported fields
}

Sequence is one kit sequence, with the file that holds it.

func Sequences

func Sequences(root string) ([]Sequence, error)

Sequences reads every sequence in the kit, file by file.

func (Sequence) KeepsStore

func (s Sequence) KeepsStore() bool

KeepsStore reports whether the sequence needs a Store kept in the database, which a Subject doesn't offer.

type Subject

type Subject struct {
	Sqlite talk.SqliteImpl
	// Exec runs a setup statement directly, outside every Segment.
	Exec  func(sql string) error
	Close func() error
}

Subject is one fresh, empty database, opened for one sequence.

Jump to

Keyboard shortcuts

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