How can I get a list of named databases in an lmdb env?
Asked Answered
L

1

5

How does one get a list of the named databases that are part of an env ? From reading some python binding docs (named database implementation), I understand the names are stored in the main (unnamed?) db, but I'm not seeing them when browsing with a cursor.

Leucippus answered 27/8, 2016 at 23:29 Comment(0)
H
9

All the named databases are stored in unnamed database as keys. Get all the keys then you will get list of named databases. For this open dbi without any database name i.e pass null for named databse argument and read all the keys.

You can find it in the following documentation link: lmdb documentation

Histrionics answered 21/9, 2016 at 7:29 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.