Redisdown: how to create new `level-` libs?
fergiemcdowall opened this issue · 1 comments
fergiemcdowall commented
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 ;)
vweevers commented
There's a few ways to go about this:
- Take an existing
abstract-leveldown
implementation and follow the upgrade guide ofabstract-level
. See also the FAQ. - Start from scratch and read Private API For Implementors
- Use
memory-level
or other implementations as reference.
Naming-wise, prefer e.g. redis-level
(i.e. *-level
).