persistence

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2026 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPostgresCatalogStore

func NewPostgresCatalogStore(db *sql.DB) ports.CatalogRepository

Types

type PostgresCatalogStore

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

PostgresCatalogStore implements ports.CatalogRepository against PostgreSQL.

func (*PostgresCatalogStore) GetBlueprint

func (s *PostgresCatalogStore) GetBlueprint(ctx context.Context, id string) (*domain.Blueprint, error)

func (*PostgresCatalogStore) GetConstruct

func (s *PostgresCatalogStore) GetConstruct(ctx context.Context, id string) (*domain.Construct, error)

func (*PostgresCatalogStore) GetCrate

func (s *PostgresCatalogStore) GetCrate(ctx context.Context, id string) (*domain.Crate, error)

func (*PostgresCatalogStore) ListBlueprints

func (s *PostgresCatalogStore) ListBlueprints(ctx context.Context, crateID string) ([]*domain.Blueprint, error)

func (*PostgresCatalogStore) ListConstructs

func (s *PostgresCatalogStore) ListConstructs(ctx context.Context, crateID, blueprintID string) ([]*domain.Construct, error)

func (*PostgresCatalogStore) ListCrates

func (s *PostgresCatalogStore) ListCrates(ctx context.Context, category string) ([]*domain.Crate, error)

func (*PostgresCatalogStore) UpsertBlueprint

func (s *PostgresCatalogStore) UpsertBlueprint(ctx context.Context, b *domain.Blueprint) error

func (*PostgresCatalogStore) UpsertConstruct

func (s *PostgresCatalogStore) UpsertConstruct(ctx context.Context, c *domain.Construct) error

func (*PostgresCatalogStore) UpsertCrate

func (s *PostgresCatalogStore) UpsertCrate(ctx context.Context, c *domain.Crate) error

Jump to

Keyboard shortcuts

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