Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to open column families #230

Open
Sceat opened this issue Jul 30, 2024 · 0 comments
Open

How to open column families #230

Sceat opened this issue Jul 30, 2024 · 0 comments

Comments

@Sceat
Copy link

Sceat commented Jul 30, 2024

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)
}
image

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant