Skip to content

Can't write to db correctly #8

@zhaoyi0113

Description

@zhaoyi0113

I am running rocksdb-node 1.7.2 with rocks 5.8 on MacOs. Below is my code:

db = rocksdb.open(
    {create_if_missing: true},
    path.join(dbPath, `users-${nodeEnv}.rocksdb`)
  );
  db.put('node', 'rocks');

after running above code and I use admin console to inspect the rocks file as below:

$ rocksdb_ldb --db=users-test.rocksdb/ scan
rock : rocks

I wonder why the key is not what I put which isnode.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions