ostafen / clover

A lightweight document-oriented NoSQL database written in pure Golang.
MIT License
680 stars 55 forks source link

Add a db.GetCollections() method #29

Closed jsgm closed 2 years ago

jsgm commented 2 years ago

Hello all.

In some cases, specially for old projects it would be interesting to add a GetCollections() method that returns a slice of strings with the different existing collections names.

ostafen commented 2 years ago

Hi, this is something I was planning. You anticipated me :=) I would call the method ListCollections()

jsgm commented 2 years ago

ListCollections() looks fine for me 😄

ostafen commented 2 years ago

Since this is very simple to implement, I will leave the issue open for a while before implementing, to allow new contributors to join :=)

DaniloMarques1 commented 2 years ago

Hello.

I would like to work on it