symisc / unqlite

An Embedded NoSQL, Transactional Database Engine
https://unqlite.symisc.net
Other
2.11k stars 164 forks source link

Collection names fetch #53

Closed catroot closed 6 years ago

catroot commented 6 years ago

How i can fetch collection names from my db? Unfortunately, i can't find the way in docs.

symisc commented 6 years ago

The built-in Jx9 functions that let you fetch records, collections, and so on are listed here: https://unqlite.org/jx9_builtin.html. You can check if a particular collections exists within the database via: db_exists()

catroot commented 6 years ago

But if i need a known list instead of blind check? How to get them?

symisc commented 6 years ago

Although easy to code, this function is not yet implemented.

catroot commented 6 years ago

Please, let me know when it will be done. I plan to use unqlite with python3 in my project and this is important thing.

AlaaAlHallaq commented 6 years ago

@symisc : on the contrast, how can I list all the keys, excluding the collections and their items. because cursor returns both the stored key-value pair, and the collection names and items.

symisc commented 6 years ago

Check the built-in Jx9 functions at https://unqlite.org/jx9_builtin.html