Looking for similar prefix scan functionality like what is available in LevelDB or BadgerDB. Basically looking for the option to scan a set of prefixes.
def prefix_iteritems(self, prefix: str):
GET_ITEMS = 'SELECT key, value FROM "%s" WHERE key LIKE ? ORDER BY rowid' % self.tablename
for key, value in self.conn.select(GET_ITEMS, (f"{prefix}%",)):
yield key, self.decode(value)
Looking for similar prefix scan functionality like what is available in LevelDB or BadgerDB. Basically looking for the option to scan a set of prefixes.
Keys
Query