Documentation ¶
Overview ¶
Package sqlite3 implements a blob store in a Sqlite3 relational database schema.
Index ¶
- Constants
- type Store
- func (s *Store) AnchorMapRef(ctx context.Context) (bs.Ref, error)
- func (s *Store) Get(ctx context.Context, ref bs.Ref) (bs.Blob, error)
- func (s *Store) ListRefs(ctx context.Context, start bs.Ref, f func(bs.Ref) error) error
- func (s *Store) Put(ctx context.Context, b bs.Blob) (bs.Ref, bool, error)
- func (s *Store) UpdateAnchorMap(ctx context.Context, f anchor.UpdateFunc) error
Constants ¶
View Source
const Schema = `` /* 226-byte string literal not displayed */
Schema is the SQL that New executes.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store is a Sqlite-based blob store.
func New ¶
New produces a new Store using `db` for storage. It expects to create tables `blobs` and `anchors`, or for those tables already to exist with the correct schema. (See variable Schema.)
func (*Store) AnchorMapRef ¶
AnchorMapRef implements anchor.Getter.
func (*Store) UpdateAnchorMap ¶
UpdateAnchorMap implements anchor.Store.
Click to show internal directories.
Click to hide internal directories.