my8bird / node-leveldb

NodeJS bindings to levelDB - a fast and lightweight key/value database library
http://code.google.com/p/leveldb/
BSD 2-Clause "Simplified" License
63 stars 12 forks source link

[request] Support synchronous open #26

Open sergioramos opened 12 years ago

sergioramos commented 12 years ago

Hi,

I noticed that the last commit to handle.coffe, the synchronous open was dropped.

Is there a plan to support it again?

niknah commented 12 years ago

According to the README the callback in the async .open takes db as the second argument, but it is always undefined.

Also getSync isn't defined in db but that maybe related to the above problem.

sergioramos commented 12 years ago

They removed all the sync functions. I have a fork with the sync open if you want ;)

my8bird commented 12 years ago

@ramitos Can you point at the code you needed (bonus points for a pull)? Having that would save a lot of time.