postgres

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: May 23, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultTableName = "agentflow_memory_tier_records"

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*Store) error

func WithLevel

func WithLevel(level tier.Level) Option

func WithTableName

func WithTableName(name string) Option

type Store

type Store struct {
	// contains filtered or unexported fields
}

func NewStore

func NewStore(db *sql.DB, opts ...Option) (*Store, error)

func (*Store) Count

func (s *Store) Count(ctx context.Context, ns memory.Namespace, level tier.Level) (int, error)

func (*Store) Delete

func (s *Store) Delete(ctx context.Context, ns memory.Namespace, id string) error

func (*Store) Get

func (s *Store) Get(ctx context.Context, ns memory.Namespace, id string) (tier.Record, error)

func (*Store) List

func (s *Store) List(ctx context.Context, ns memory.Namespace, level tier.Level, limit int) ([]tier.Record, error)

func (*Store) Put

func (s *Store) Put(ctx context.Context, ns memory.Namespace, record tier.Record) error

Jump to

Keyboard shortcuts

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