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: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PostgresPluginStore

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

PostgresPluginStore implements ports.PluginStore against the plugins and settings tables (see migrations/003 and 004).

func NewPostgresPluginStore

func NewPostgresPluginStore(db *sql.DB) *PostgresPluginStore

NewPostgresPluginStore creates the store. db may be nil during development; all methods gracefully no-op or return empty results.

func (*PostgresPluginStore) Delete

func (s *PostgresPluginStore) Delete(ctx context.Context, id string) error

func (*PostgresPluginStore) FindByID

func (*PostgresPluginStore) GetSetting

func (s *PostgresPluginStore) GetSetting(ctx context.Context, key string) (string, error)

func (*PostgresPluginStore) ListAll

func (*PostgresPluginStore) ListByType

func (s *PostgresPluginStore) ListByType(ctx context.Context, pluginType string) ([]*plugindomain.Plugin, error)

func (*PostgresPluginStore) Save

func (*PostgresPluginStore) SetSetting

func (s *PostgresPluginStore) SetSetting(ctx context.Context, key, value string) error

Jump to

Keyboard shortcuts

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