This repository was archived by the owner on Dec 1, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 54
This repository was archived by the owner on Dec 1, 2024. It is now read-only.
How to open column families #230
Copy link
Copy link
Open
Description
I tried using rocksdb to read some files and it seems nothing is accessed
import rocksdb from 'rocksdb'
const db = rocksdb('./sui')
try {
console.log('Opening database...')
await new Promise((resolve, reject) => {
db.open({ readOnly: true }, error => {
if (error) reject(error)
else resolve()
})
})
console.log('Database opened')
for await (const [key, value] of db.iterator()) {
console.dir({ key, value })
}
} catch (error) {
console.error(error)
}
While if I try level-rocksdb for the same files, it prints this error below, meaning there is actual datas but i'd assume rocksdb is only reading the empty default column.
How do you specify the column to read ?
Error [OpenError]: Invalid argument: Column families not opened: randomness_last_round_timestamp, randomness_highest_completed_round, randomness_next_round, randomness_rounds_pending, dkg_output, dkg_confirmations, dkg_confirmations_v2, dkg_used_messages, dkg_used_messages_v2, dkg_processed_messages, dkg_processed_messages_v2, randomness_rounds_written, deferred_transactions, active_jwks, pending_jwks, oauth_provider_jwk, executed_transactions_to_checkpoint, override_protocol_upgrade_buffer_stake, authority_capabilities, running_root_accumulators, state_hash_by_checkpoint, builder_checkpoint_summary_v2, builder_checkpoint_summary, user_signatures_for_checkpoints, pending_checkpoint_signatures, transaction_key_to_digest, builder_digest_to_checkpoint, pending_checkpoints_v2, pending_checkpoints, final_epoch_checkpoint, end_of_publish, reconfig_state, checkpoint_boundary, last_consensus_stats, last_consensus_index, consensus_message_order, pending_consensus_transactions, consensus_message_processed, pending_execution, next_shared_object_versions, assigned_shared_object_versions_v2, assigned_shared_object_versions, executed_in_epoch, transaction_cert_signatures, signed_effects_digests, effects_signatures, owned_object_locked_transactions, signed_transactions
Metadata
Metadata
Assignees
Labels
No labels