Hi Mongo Hackers!
Thanks for the work so far, very helpful.
Hereby a functionality that i built for myself and that i use on a daily basis. Open to discussion and modifications..
Description of changes
Added describe function on DBCollection prototype to simulate SQL describe table method. As explained in file, since noSQL is meant to be schemaless, i infer it taking a sample of documents from the collection and building the most complete version i can out of them.
Snapshot example
Collection with 2 documents
Schema
Testing
Unit tested most helper functions but as far as i see the project has no test suite.
Hi Mongo Hackers! Thanks for the work so far, very helpful. Hereby a functionality that i built for myself and that i use on a daily basis. Open to discussion and modifications..
Description of changes
Added describe function on DBCollection prototype to simulate SQL describe table method. As explained in file, since noSQL is meant to be schemaless, i infer it taking a sample of documents from the collection and building the most complete version i can out of them.
Snapshot example
Collection with 2 documents
Schema
Testing
Unit tested most helper functions but as far as i see the project has no test suite.
mongo
shell