Documentation
¶
Index ¶
- Constants
- type Store
- func (s *Store) Close() error
- func (s *Store) CountSlugsByPrefix(ctx context.Context, prefix string) (int, error)
- func (s *Store) CreateContext(ctx context.Context, name, description string) (*models.Context, error)
- func (s *Store) CreateItem(ctx context.Context, item *models.Item) error
- func (s *Store) DeleteContext(ctx context.Context, name string) error
- func (s *Store) GetContext(ctx context.Context, name string) (*models.Context, error)
- func (s *Store) GetItem(ctx context.Context, identifier string) (*models.Item, error)
- func (s *Store) GetState(ctx context.Context, name string) (*models.State, error)
- func (s *Store) ListContexts(ctx context.Context) ([]models.Context, error)
- func (s *Store) RenameContext(ctx context.Context, oldName, newName string) (*models.Context, error)
Constants ¶
View Source
const ( DriverName = "sqlite" GooseDialect = "sqlite3" ForeignKeysPragma = "PRAGMA foreign_keys = ON" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func NewStoreFromDB ¶
func (*Store) CountSlugsByPrefix ¶
CountSlugsByPrefix returns the number of items whose slug matches prefix or prefix-<number>.
func (*Store) CreateContext ¶
func (*Store) GetContext ¶
func (*Store) ListContexts ¶
Click to show internal directories.
Click to hide internal directories.