ostafen / clover

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

Add examples #38

Closed EdwinWalela closed 2 years ago

EdwinWalela commented 2 years ago

27

Data examples have been taken from /test/data/todos.json

I haven't been able to add examples for engines as I am not certain how this feature works.

I've also just noticed that the ImportCollection and ExportCollection have been added to the main branch. Should I pull and merge the new changes first then add those examples to the PR or will that affect the PR history?

ostafen commented 2 years ago

Do not worry about the PR history, because I can squash the commits before merging the PR. So feel free to merge the new changes on your branch :=)

EdwinWalela commented 2 years ago

@ostafen I've pushed the new example for exporting and importing collections. I've also updated the description. Let me know if there's something I've missed out

ostafen commented 2 years ago

Thank you. I think we can include samples about config.go in a second moment, since, for now, the most relevant one is the InMemoryMode, which has been shown in the Import/Export example.