Documentation
¶
Overview ¶
Package postgres provides PostgreSQL storage for prompts.
Index ¶
- type Store
- func (s *Store) Count(ctx context.Context, filter prompt.ListFilter) (int, error)
- func (s *Store) Create(ctx context.Context, p *prompt.Prompt) error
- func (s *Store) Delete(ctx context.Context, name string) error
- func (s *Store) DeleteByID(ctx context.Context, id string) error
- func (s *Store) Get(ctx context.Context, name string) (*prompt.Prompt, error)
- func (s *Store) GetByID(ctx context.Context, id string) (*prompt.Prompt, error)
- func (s *Store) List(ctx context.Context, filter prompt.ListFilter) ([]prompt.Prompt, error)
- func (s *Store) Update(ctx context.Context, p *prompt.Prompt) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store implements prompt.Store using PostgreSQL.
func (*Store) DeleteByID ¶
DeleteByID removes a prompt by ID.
Click to show internal directories.
Click to hide internal directories.