(name 'Mongo-Core-HolgerHansPeterFreyther.47' message 'Create the cursor and fetch no results at all, then one fetch one

When creating the cursor we want to not fetch any results and when it returns we just want to receive one event. It is enough to get started.' id '45fa9bb1-8ce6-4ef3-aa1b-69601f41d0be' date '28 January 2016' time '5:37:16.942709 pm' author 'HolgerHansPeterFreyther' ancestors ((name 'Mongo-Core-HolgerHansPeterFreyther.46' message 'Add MongoTailableCursor as a simple event log interface

The below is an example of creating the cursor and then requesting
more data. It is not complete but an example of what is possible. The
first "create" should read all elements as well.

| db query |
db := MongoDatabase root: self name: ''smsc''.
query := MongoQuery new
		database: (MongoDatabase root: self name: ''smsc'');
		collection: (MongoCollection database: db name: ''blabla2'');
		doBlock: [:each | ];
		yourself.
MongoTailableCursor new
	query: query;
	root: self;
	create;
	next' id '2cc814b2-c0d5-4653-b9d2-808e92e25cea' date '20 January 2016' time '3:14:04.995885 pm' author 'HolgerHansPeterFreyther' ancestors ((name 'Mongo-Core-HolgerHansPeterFreyther.45' message 'Compare it with 1.0 as done in other places of the code' id '3cf37d88-8ced-414b-912e-ec2f6584771a' date '20 January 2016' time '2:08:29.217767 pm' author 'HolgerHansPeterFreyther' ancestors ((name 'Mongo-Core-HolgerHansPeterFreyther.44' message 'Add >MongoDatabase>>#addCollection:capped:size:max:

Add a routine to  create a capped collection and start to verify that the command has passed. Do not only assert that ''ok'' is present but that it is not equal to 0.0. I wanted to avoid a direct compare to 1.0. Other code is using 1.0 so we could do the same.' id '404e1c4b-947f-44e4-8002-c71d71cad005' date '20 January 2016' time '1:34:19.622965 pm' author 'HolgerHansPeterFreyther' ancestors ((name 'Mongo-Core-HolgerHansPeterFreyther.43' message 'Avoid converting SmallDictionary to Dictionary for queries

When using a SmallDictionary to keep the insertion order avoid it being converted to a Dictionary.

NOTE: This will not work on Squeak and other dialects as there is no SmallDictionary.' id '5c249e91-0181-45c2-bde9-3aa3d8065109' date '20 January 2016' time '1:27:30.420338 pm' author 'HolgerHansPeterFreyther' ancestors ((name 'Mongo-Core-TorstenBergmann.42' message 'be able to set an own default' id '0120ff4d-c0af-7b4d-b9e8-71b486b24940' date '17 March 2015' time '9:58:02.013099 pm' author 'TorstenBergmann' ancestors ((name 'Mongo-Core-TorstenBergmann.41' message 'add isAvailable' id '498d4b1d-af52-f744-b748-3c1dafab69fa' date '17 March 2015' time '9:36:50.700099 pm' author 'TorstenBergmann' ancestors ((name 'Mongo-Core-TorstenBergmann.40' message 'printOn' id '9f582266-fc22-2d46-a078-0446a7acaa56' date '10 March 2015' time '8:37:54.777581 pm' author 'TorstenBergmann' ancestors ((name 'Mongo-Core-TorstenBergmann.39' message 'move tests into an own package so they can be loaded separately' id 'fcbf8b80-89b8-344a-ad0a-53e1168a0363' date '4 March 2015' time '9:51:07.6061 am' author 'TorstenBergmann' ancestors ((name 'Mongo-Core-TorstenBergmann.38' message 'comment, group and add printOn: messages' id '6f534ed5-be65-b64b-97ef-190c75b77c85' date '4 March 2015' time '9:42:33.1331 am' author 'TorstenBergmann' ancestors ((name 'Mongo-Core-NorbertHartl.37' message 'Now resets the authCache if the connection is reopened or changed' id '5eea31ec-6673-43d5-a429-cc9962e66d04' date '27 November 2013' time '2:06:31.338 pm' author 'NorbertHartl' ancestors ((name 'Mongo-Core-NorbertHartl.36' message '- added caching of authentication attempts per database. MongoDb needs per session/connection only one authentication attempt per database/username combination
- removed useless/empty MongoTestCase class which only introduces inter package dependencies
- added MongoMock class to test authentication behaviour
- added tests for new authentication implementation' id 'c2dccbe6-4730-4ce6-a9e6-968424dd54d3' date '27 November 2013' time '10:40:30.104 am' author 'NorbertHartl' ancestors ((name 'Mongo-Core-DamienCassou.35' message '- Fixed MongoCollection>>select:limit:offset:*' id 'b4706309-1775-4fec-afaf-3dc7443d6b66' date '17 May 2013' time '5:02:37.402 pm' author 'DamienCassou' ancestors ((name 'Mongo-Core-EstebanLorenzano.34' message '- merged' id 'e1f25d62-00d4-4f9f-b809-65dfd4a9ffc5' date '13 May 2013' time '2:34:36.525 pm' author 'EstebanLorenzano' ancestors ((name 'Mongo-Core-EstebanLorenzano.27' message '- queries with limit and sorts now uses the new mongo queries syntax' id '1d06efd3-4d7f-460c-b9b8-7d1d17d8047f' date '16 April 2013' time '1:08:42.896 pm' author 'EstebanLorenzano' ancestors ((name 'Mongo-Core-FrancoisStephany.26' message 'Implements orderby. See tests for usage.' id 'ec45399b-2795-4df1-8176-8def79d9d7b6' date '6 November 2012' time '7:41:37.997 pm' author 'FrancoisStephany' ancestors ((name 'Mongo-Core-FrancoisStephany.25' message 'Introducd MongoQuery object. It provides an easier user interface to interact with MongDB. 

MongoCollection now provides a preconfigured MongoQuery when sent the "query" message. See the tests for some examples of use.

The orderBy needs to be implemented.

' id 'e3ad1c9d-e3c2-4fba-9673-aeac2034a322' date '6 November 2012' time '4:15:46.068 pm' author 'FrancoisStephany' ancestors ((name 'Mongo-Core-FrancoisStephany.24' message 'Adds the possibility to set "numberToSkip" to a query operation.' id 'c1f5f7c1-209f-483e-b37c-eba7a4ff78e8' date '23 September 2012' time '9:12:07.052 pm' author 'FrancoisStephany' ancestors ((name 'Mongo-Core-FrancoisStephany.23' message 'Introduces the notion of limit in queries. 
It seems that the concept of "limit" and "chunkSize" were a bit blurry before.

Introduce the "numberToSkip" into QueryOperation. The public interface has not been adapted yet.' id 'f7a62ca3-c9b0-4184-bc9f-3cb43e8c4c4c' date '22 September 2012' time '6:11:52.168 pm' author 'FrancoisStephany' ancestors ((name 'Mongo-Core-NicolasPetton.22' message 'Added support for limit and fields in queries:

MongoCollection >> query:fields:
MongoCollection >> query:fields:limit:' id '61483fd4-45c3-47f3-94ba-48e7c026417c' date '9 May 2012' time '1:12:44.004 pm' author 'NicolasPetton' ancestors ((name 'Mongo-Core-NicolasPetton.21' message 'new test for BSON and byte arrays' id '72e3bd65-d0d3-4a7e-809b-ccb9f85de07d' date '29 January 2012' time '4:40:25 pm' author 'NicolasPetton' ancestors ((name 'Mongo-Core-EstebanLorenzano.20' message '-added #detect: and #replace:with: to MongoCollection
-created UpdateOperation
-small fixes' id 'cfc0d449-8adb-4694-85b3-27708bacf68a' date '24 September 2011' time '9:01:21 am' author 'EstebanLorenzano' ancestors ((name 'Mongo-Core-klb.19' message 'Took out halt that was no longer being reached. Duh...' id '1375d39e-d28f-43d8-9ac4-253e154462d9' date '17 February 2010' time '11:15:21 am' author 'KentBeck' ancestors ((name 'Mongo-Core-klb.18' message 'Fixed defect requestion more results with cursorId = 0' id '14ba2cec-970d-439f-9ee3-968177add5fe' date '17 February 2010' time '11:14:48 am' author 'KentBeck' ancestors ((name 'Mongo-Core-klb.17' message 'Extracted MongoOperation' id '3a5937be-92f1-4eed-a2c8-2a2815836bc6' date '16 February 2010' time '5:43:44 pm' author 'KentBeck' ancestors ((name 'Mongo-Core-klb.16' message 'Merged Avi Bryant''s MongoDatabase>>username:password: for authentication.' id '5bdd27e8-4508-4dbd-9d08-5c9f992d92a6' date '15 February 2010' time '5:18:36 pm' author 'KentBeck' ancestors ((name 'Mongo-Core-avi.15' message 'added MongoDatabase>>username:password:

requires MD5' id '8faec48e-6bbf-4c6f-9872-829dc27ab899' date '15 February 2010' time '2:48:31 am' author 'avi' ancestors ((name 'Mongo-Core-klb.0.14' message 'Clean up' id 'e7429908-4bf4-43e7-b3ca-99ed7974e71f' date '12 February 2010' time '11:53:43 pm' author 'KentBeck' ancestors ((name 'Mongo-Core-KentBeck.0.13' message 'empty log message' id 'd8f59e89-0466-4e12-9ebc-2cb3b6f7abb3' date '12 February 2010' time '6:43:43 pm' author 'KentBeck' ancestors ((name 'Mongo-Core-klb.0.12' message '' id 'f02b3485-a478-42e9-a2f8-93e084fcd54b' date '12 February 2010' time '11:37:55 am' author 'klb' ancestors ((name 'Mongo-Core-klb.0.10' message 'Subclassed MongoTestCase so tests would load portably.' id 'c021e275-cee7-4b46-94c7-5aa65025de1e' date '12 February 2010' time '10:00:10 am' author 'KentBeck' ancestors ((name 'Mongo-Core-klb.0.9' message 'Ported to Squeak again.' id 'c190ab7e-c7da-4d50-8920-9c4a7744b9ed' date '11 February 2010' time '11:09:52 pm' author 'KentBeck' ancestors ((name 'Mongo-Core-klb.0.8' message 'Ported to Squeak again.' id '898c0a37-ebf4-4338-ae28-f5f587601bd5' date '11 February 2010' time '11:09:31 pm' author 'KentBeck' ancestors ((name 'Mongo-Core-klb.0.7' message '' id 'c40e2224-d3dd-4baa-a0c8-ba3108445290' date '11 February 2010' time '3:43:12 pm' author 'klb' ancestors ((name 'Mongo-Core-klb.0.7' message '' id '6c9a177f-dae2-4e09-9c65-b968cb02e374' date '11 February 2010' time '3:42:57 pm' author 'klb' ancestors () stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())(name 'Mongo-Core-sebastiansastre.33' message 'fixed the return value of #do:' id '533debb8-7e7c-404c-a0f0-dd5809e87f32' date '30 November 2012' time '2:31:47.999 pm' author 'sebastiansastre' ancestors ((name 'Mongo-Core-sebastiansastre.32' message 'MongoDatabase>>collectionAt:
MongoDatabase>>hasCollectionNamed:
' id 'de0e0320-00db-492e-99b0-ae561d590aea' date '30 November 2012' time '1:26:44.506 pm' author 'sebastiansastre' ancestors ((name 'Mongo-Core-sebastiansastre.31' message 'Added CurrentMongoDatabase and MongoDatabase>>do:

This allows you to do things like:

aMongoDatabase do:[ SomeModel new save ]

where

SomeModel>>save

	(CurrentMongoDatabase value collectionNamed: self collectionName) add: self
	
' id 'e83acc4f-07ad-4977-9509-7b7d5f669030' date '30 November 2012' time '1:17:37.692 pm' author 'sebastiansastre' ancestors ((name 'Mongo-Core-sebastiansastre.30' message 'MongoDatabase>>printOn:' id '9a16857e-0447-47b2-b089-95d8e30115c4' date '28 November 2012' time '4:31:54.534 pm' author 'sebastiansastre' ancestors ((name 'Mongo-Core-sebastiansastre.29' message 'added MongoDatabase>>printOn: ' id '3993339c-b227-49d5-bc62-26428c48bb5f' date '28 November 2012' time '10:46:03.429 am' author 'sebastiansastre' ancestors ((name 'Mongo-Core-NicolasPetton.28' message 'Added missing extension method to Collection' id '21e32b16-7048-478f-a564-9386f7599ed6' date '16 November 2012' time '4:37:50.048 pm' author 'NicolasPetton' ancestors ((name 'Mongo-Core-NicolasPetton.27' message 'Querying refactorings:

- Changed MongoCollection >> query: to take a block so that:
aCollection query: (aCollection query q: aDict)

can now be written:
aCollection query: [ :q | q where: aDict ]

- Renamed MongoQuery >> q: to #where:
- Added MongoQuery >> from:to:
- Renamed MongoCollection >> query to #newQuery
- Added Collection >> asMongoQuery to allow literal arrays in mongo queries
' id '49382b78-b5b9-4b63-b3c7-67cbe9aa6026' date '16 November 2012' time '2:40:23.102 pm' author 'NicolasPetton' ancestors ((id 'ec45399b-2795-4df1-8176-8def79d9d7b6')) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())