emitter

package
v0.3.12 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package emitter applies diff deltas to the store in a single transaction.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Emit

func Emit(ctx context.Context, st *store.Store, opts ...Option) error

func EmitTx added in v0.3.12

func EmitTx(ctx context.Context, st *store.Store, tx *sql.Tx, opts ...Option) error

EmitTx applies the diff deltas using tx, letting callers fold the snapshot into a larger atomic transaction alongside their own writes.

Types

type Option

type Option func(*options)

func WithCompileRoot

func WithCompileRoot(r string) Option

func WithCursorHash

func WithCursorHash(h string) Option

func WithDeltas

func WithDeltas(d []diff.Delta) Option

func WithMessage

func WithMessage(m string) Option

func WithRoots

func WithRoots(r []*parser.ContextNode) Option

Jump to

Keyboard shortcuts

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