2.0.0 • Published 6 months ago

@subsquid/file-store v2.0.0

Weekly downloads
-
License
GPL-3.0-or-later
Repository
github
Last release
6 months ago

@subsquid/csv-store

This package provides CSV based database access to squid mapping.

Usage example

const Transfers = new Table('transfers', {
    blockNumber: types.number,
    timestamp: types.timestamp,
    extrinsicHash: {type: types.string, nullable: true},
    from: types.string,
    to: types.string,
    amount: types.bigint,
})

const db = new CsvDatabase({
    tables: [Transfers],
    dest: `./data`,
    chunkSizeMb: 10,
    syncIntervalBlocks: 1_000,
})

processor.run(db, async (ctx) => {
    let transfersData: TableRecord<typeof Transfers>[] = getTransfers(ctx)
    ctx.store.write(Transfers, transfersData)
})
1.2.0

10 months ago

1.4.0

8 months ago

1.3.0

9 months ago

2.0.0

6 months ago

1.1.0

12 months ago

1.0.0

1 year ago

0.3.0

1 year ago

0.2.0

1 year ago

0.3.2

1 year ago

0.3.1

1 year ago

0.1.0

1 year ago

0.0.1

1 year ago

0.0.0

1 year ago