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