wiredtiger / node-wiredtiger

Other
12 stars 4 forks source link

Shape of the API #2

Open agorrod opened 10 years ago

agorrod commented 10 years ago

I'm at a bit of a decision point about the shape of the public API for this Node interface.

There are two directions to go in:

1) Implement an API that is compatible with Node LevelDown API. That will allow us to use the existing Node LevelUP package as a higher level interface.

2) Implement an API that more closely follows the existing WiredTiger interface, and exposes a greater proportion of WiredTiger functionality.

agorrod commented 10 years ago

The Node LeveDown interface limits WiredTiger by:

Advantages of implementing LevelDOWN interface:

agorrod commented 10 years ago

We may also have another path into the LevelDOWN/LevelUP API combination - which would be to utilize the (new) WiredTiger LevelDB API.

michaelcahill commented 10 years ago

@agorrod, maybe we should spend a few hours working together to try to get the LevelDB API working with LevelDOWN? If that isn't too hard (or we can make it easy), then I agree it may not be a good idea to constrain our NodeJS interface.

agorrod commented 10 years ago

Works for me - I'm available this week. From what I can tell there are likely to be two complications: