Documentation ¶
Overview ¶
Package sqlite implements a varda store backed by a SQLite database.
Index ¶
- func Register(root string) (varda.Repository, error)
- func SchemaVersion() int
- type Store
- func (store *Store) Close() error
- func (store *Store) Fetch(ctx context.Context, v varda.Ref) (io.ReadCloser, error)
- func (store *Store) FindRef(ctx context.Context, sha string) (ref varda.Ref, err error)
- func (store *Store) IterRef(ctx context.Context, f func(v varda.Ref) error) error
- func (store *Store) NumRef(ctx context.Context) (n int64, err error)
- func (store *Store) Search(ctx context.Context, q search.Query, f func(v varda.Ref) error) error
- func (store *Store) Upload(ctx context.Context, f varda.File) (href varda.Ref, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Register ¶
func Register(root string) (varda.Repository, error)
Register registers the sqlite backend.
func SchemaVersion ¶
func SchemaVersion() int
Types ¶
Click to show internal directories.
Click to hide internal directories.