sqlstore

package
v0.3.0-rc.8 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package sqlstore provides a PostgreSQL execution journal for a bridge runtime. The application supplies its database/sql driver and custody-local database. It has no dependency on Lotor Control or a third-party runtime package.

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(database *sql.DB, namespace string) (*Store, error)

func (*Store) Complete

func (store *Store) Complete(ctx context.Context, operationID, digest string, result bridge.Result) error

func (*Store) Initialize

func (store *Store) Initialize(ctx context.Context) error

Initialize explicitly installs the journal in the configured runtime database. Run once as a deployment migration, not on every Lambda invocation. Results may contain protected customer data: keep this DB inside the runtime's custody boundary. Never point it at Lotor Control as a convenience fallback.

func (*Store) Reserve

func (store *Store) Reserve(ctx context.Context, operationID, digest string) (*bridge.Result, error)

Reserve never steals or expires an incomplete reservation. An ambiguous provider effect remains non-reexecutable across restarts and reconnects.

Jump to

Keyboard shortcuts

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