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

postgres

package
v1.33.5 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package postgres provides the postgres driver for cumulative session-memory access. The injected StateStore remains the authoritative memory owner.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

New constructs a Postgres-backed `memory.MemoryStore` against `cfg.DSN`. Production callers go through `memory.Open`; tests may call `New` directly to skip the registry.

Cumulative memory uses the injected StateStore owner. This adapter has no summary engine, private transcript or recovery goroutine. Bus and State are mandatory; note writes additionally require the execution redactor.

func NewWithDB added in v1.29.1

func NewWithDB(cfg memory.ConfigSnapshot, deps memory.Deps, db *sql.DB) (memory.MemoryStore, error)

NewWithDB constructs a memory store over a runtime-owned PostgreSQL pool. The returned store borrows db; the runtime pool manager closes it.

Types

This section is empty.

Jump to

Keyboard shortcuts

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