sqlite_blockstore

package
v0.7.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 2, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SqliteBlockstore

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

func New

func New(did string, db *db.DB) *SqliteBlockstore

func NewReadOnly

func NewReadOnly(did string, db *db.DB) *SqliteBlockstore

func (*SqliteBlockstore) AllKeysChan

func (bs *SqliteBlockstore) AllKeysChan(ctx context.Context) (<-chan cid.Cid, error)

func (*SqliteBlockstore) DeleteBlock

func (bs *SqliteBlockstore) DeleteBlock(context.Context, cid.Cid) error

func (*SqliteBlockstore) Get

func (bs *SqliteBlockstore) Get(ctx context.Context, cid cid.Cid) (blocks.Block, error)

func (*SqliteBlockstore) GetSize

func (bs *SqliteBlockstore) GetSize(context.Context, cid.Cid) (int, error)

func (*SqliteBlockstore) Has

func (*SqliteBlockstore) HashOnRead

func (bs *SqliteBlockstore) HashOnRead(enabled bool)

func (*SqliteBlockstore) Put

func (bs *SqliteBlockstore) Put(ctx context.Context, block blocks.Block) error

func (*SqliteBlockstore) PutMany

func (bs *SqliteBlockstore) PutMany(ctx context.Context, blocks []blocks.Block) error

Jump to

Keyboard shortcuts

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