Extend all the examples
b1ron opened this issue · comments
b1ron commented
This is to unify all examples and also add more commands for more coverage.
Alexey Palazhchenko commented
#554 is not merged and actually fails
b1ron commented
I have reverted FerretDB/java-example/pull/4.
The result from the dropDatabase
command differs depending on whether the database exists or not. MongoDB just returns { "ok" : 1 }
regardless. I must have created the test database leading me to create FerretDB/java-example/pull/4 as a "fix".
byron@byron-ThinkCentre-M910q:~/workdir/dance$ mongo --quiet --eval 'db.runCommand({dropDatabase: 1});'
{ "ok" : 1 }
byron@byron-ThinkCentre-M910q:~/workdir/dance$ mongo --quiet --eval 'db.foo.insert({}); db.runCommand({dropDatabase: 1});'
{ "dropped" : "test", "ok" : 1 }