ssbc / ssb-db2

A new database for secure-scuttlebutt
47 stars 8 forks source link

Expose operators #131

Closed arj03 closed 3 years ago

arj03 commented 3 years ago

Should we expose operators in the api so that we can do:

const { and, type, live, toPullStream } = ssb.db.operators

instead of:

const { and, type, live, toPullStream } = require('ssb-db2/operators')

This means that we can use the operators without requiring ssb-db2 if it was loaded as a plugin to secret-stack.

staltz commented 3 years ago

works for me :)