community icon indicating copy to clipboard operation
community copied to clipboard

Redisdown: how to create new `level-` libs?

Open fergiemcdowall opened this issue 3 years ago • 1 comments

Hi!

One of the many great things about the old level ecosystem were all of the *down libraries for connecting to different database backends.

Many of these (for example redisdown) no longer work on the new level@8 architecture.

Say that you, a random developer on the internet, want to create level-redis for level@8- where would you start? How would you go about doing this? Asking for a friend ;)

fergiemcdowall avatar Sep 12 '22 09:09 fergiemcdowall

There's a few ways to go about this:

  1. Take an existing abstract-leveldown implementation and follow the upgrade guide of abstract-level. See also the FAQ.
  2. Start from scratch and read Private API For Implementors
  3. Use memory-level or other implementations as reference.

Naming-wise, prefer e.g. redis-level (i.e. *-level).

vweevers avatar Sep 12 '22 09:09 vweevers