Versions in this module Expand all Collapse all v0 v0.162.0 Dec 4, 2026 Changes in this version + const DefaultDir + const DefaultMaxBytes + const MaxDatasets + const ProvenanceVersion + const StalePipelineChanged + const StalePipelineMissing + const TableName + const ValueColumn + var ErrBusy = errors.New("pipeline dataset is being written by another run") + var ErrInsideGit = errors.New("pipeline datasets must be stored outside Git repositories") + var ErrNotFound = errors.New("pipeline dataset not found") + var ErrRequiresCGO = errors.New(...) + var ErrTooLarge = errors.New("pipeline dataset is larger than the store allows") + var ErrUnsafeRoot = errors.New("pipeline datasets root is not a private directory") + func Available() bool + func DefaultBase() (string, error) + func ProjectKey(projectID, projectDir string) string + func TableIdentifier(name string) string + func ValidName(name string) bool + type Column struct + Name string + Type string + type Freshness struct + AgeSeconds int64 + Reason string + Stale bool + func FreshnessOf(p Provenance, currentHash string) Freshness + type Provenance struct + Bytes int64 + Columns []Column + FileBytes int64 + FinishedAt time.Time + Name string + Node string + PipelineHash string + PipelineID string + Rows int64 + RunID string + Sources []Source + StartedAt time.Time + Version int + Wrapped bool + WrittenBy *WrittenBy + type ReadOptions struct + Limit int + Offset int + type Source struct + Connection string + Environment string + Kind string + Node string + QueryID string + TextHash string + type Store struct + MaxBytes int64 + func Open(base, projectKey string) (*Store, error) + func OpenDefault(projectID, projectDir string) (*Store, error) + func (s *Store) Delete(name string) error + func (s *Store) Dir() string + func (s *Store) Get(name string) (Provenance, error) + func (s *Store) List() ([]Provenance, error) + func (s *Store) NewWriter(name string) (*Writer, error) + func (s *Store) Query(ctx context.Context, sqlText string, names []string, ...) error + func (s *Store) Read(ctx context.Context, name string, o ReadOptions, emit func(row []byte) error) error + type Writer struct + func (w *Writer) Abort() + func (w *Writer) Commit(ctx context.Context, p Provenance) (Provenance, error) + func (w *Writer) Rows() int64 + func (w *Writer) Write(item []byte) error + type WrittenBy struct + Context string + Principal string