Skip to content

Latest commit

 

History

History
 
 

blockstore

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

ipfs-car Blockstores

While packing files into Content Addressable aRchives (CAR), ipfs-car imports the given files into unix-fs. All the unix-fs graph needs to be computed, in order to get the root CID to create the resulting CAR file. A blockstore is used to store the generated unix-fs temporarily, so that we can iterate them afterwards and create large CAR files.

Blockstore implementations

The Blockstore implementations follows the Blockstore Interface. The available implementations are:

Usage

  • FsBlockStore
import { FsBlockStore } from 'ipfs-car/blockstore/fs'
  • IdbBlockStore
import { IdbBlockStore } from 'ipfs-car/blockstore/idb'
  • MemoryBlockStore
import { MemoryBlockStore } from 'ipfs-car/blockstore/memory'
  • LevelBlockStore
import { LevelBlockStore } from 'level-blockstore'