794 Commits (90cadbe7f85814e49159493cea5e3f0d9d447edd)
 

Author SHA1 Message Date
rstam e0d7a1ea16 Replace IMongoConnectionSettings interface with a class. MongoConnectionSettings is the programmatic way to provide settings, and MongoConnectionStringBuilder and MongoUrl are used as ways to convert external representations of connection settings into an instance of MongoConnectionSettings. This caused some changes in the Create methods of MongoServer and MongoDatabase. 15 years ago
rstam 5b895d44fe Standardized on Create for factory method names (it's a common .NET convention). Moved SafeMode from MongoGridFSSettings to MongoGridFS and it is now inherited from MongoDatabase when MongoGridFS is created. 15 years ago
rstam 01069e4c20 SafeMode is now a class, not just a bool. That allows us to specify more complicated safemodes as in waiting for n slaves to complete replication. 15 years ago
rstam 439e1404e8 Designed MongoGridFSStream (but won't implement for awhile). Added Exists to MongoGridFS. Added properties and methods to MongoGridFSFileInfo patterned after FileInfo (many of which return a MongoGridFSStream). 15 years ago
rstam 678984c8ff Added version parameter to Download and Find in GridFS. 15 years ago
rstam ba227639a7 Implemented GridFS Download. 15 years ago
rstam c30ed72d22 A slightly better but still flimsy implementation of MongoConnectionPool. MongoCursor is now better at releasing the connection (still have to figure out how to handle the scenario where the cursor is abandoned before reaching the end of the results). Added support for safemode to GridFS. 15 years ago
rstam 7166369402 Began work on GridFS. Implemented Delete, Find and Upload. Wrote a small program to test upload speed (but it's real slow now because connection pooling isn't working). 15 years ago
rstam 63509af97a Minor changes resulting from recent changes to BsonLibrary. 15 years ago
rstam 5066ac577d MongoConnectionPool is no longer a static class and each MongoServer now has its own connection pool. 15 years ago
rstam 50a6f6dee2 Implemented DataSize, Stats, StorageSize, TotalIndexSize, TotalSize and Validate in MongoCollection. 15 years ago
rstam 1a8301c231 Implemented MapReduce in MongoCollection. 15 years ago
rstam 52a3b8df31 Used BsonJavaScript as parameter type where appropriate. Implemented FindAndModify, FindAndRemove and Group in MongoCollection. 15 years ago
rstam 39ff021bfe Added MongoDeleteMessage class and RemoveFlags enum. Implemented Distinct and Remove in MongoCollection. Changed Update in MongoCollection to use UpdateFlags instead of multiple boolean parameters. 15 years ago
rstam 899d4efc24 Added new MongoUpdateMessage class. Implemented Save and Update in MongoCollection. 15 years ago
rstam 7e2b69f557 Added GetLastError to MongoDatabase (but it requires UseDedicatedConnection to be true). Implemented RenameCollection in MongoServer. 15 years ago
rstam 79161a1029 Changed write operations to return a BsonDocument (in safemode they return the result of GetLastError, otherwise they return null). Insert returns an array of GetLastError results in safemode IF multiple batches were required, otherwise it just returns the result of GetLastError. Added UseDedicatedConnection and ReleaseDedicatedConnection to MongoDatabase. 15 years ago
rstam b941188eff Minor changes related to getLastError processing. Implemented RemoveLastDocument and Reset in MongoInsertMessage. 15 years ago
rstam ff67f91d5c Improved and debugged implementation of SafeMode. Reworked how MongoRequestMessage class uses MemoryStream to facilitate AddDocument in MongoInsertMessage (see AsMemoryStream etc...). 15 years ago
rstam a79a6a7f48 Tested and fixed some bugs in Insert with and without safemode. 15 years ago
rstam ec95b13a31 Turned off Nagle and increased socket buffer sizes. Implemented piggy backing of GetLastError command when sending request in safeMode. Implemented MongoInsertMessage and breaking up insert messages into 16MB maximum each. Readjusted the MongoMessage class hierarchy and methods a bit. Implemented Insert in MongoCollection. 15 years ago
rstam 19bd74861d Implemented Clone and Explain in MongoCursor. Slightly changed how queries are wrapped. 15 years ago
rstam c1fc59ad6a Implemented CreateIndex, DropAllIndexes, DropIndex, EnsureIndex, GetIndexes, ResetIndexCache and GetIndexName in MongoCollection. 15 years ago
rstam c3816d967c Implemented Mongo.Hash. Implemented MongoCredentials.ValidatePassword. Implemented MongoDatabase.Adduser, CreateCollection and RemoveUser. 15 years ago
rstam 2d01cd47ff Added MongoCollection.ValidateName. Implemented AddOption, Hint, Max, MaxScan, Min, Snapshot, and Sort in MongoCursor. Added support for wrapped queries to MongoCursor. Added MongoDatabase.ValidateName. 15 years ago
rstam 565ae569cd Added support for specifying SafeMode at server, database, collection and operation levels. MongoCursor is now IDisposable. Continued work on API design by adding skeletons for many new methods. 15 years ago
rstam 4a43a3ea73 Relaxed restriction on uniqueness of MongoServer, MongoDatabase and MongoServer objects. Factory methods will still return existing objects if possible, but it's OK to create new ones. This is motivated by how to most easily handle authentication in a multi threaded environment (like a web server). The easiest approach is to attach credentials to the database object, but that implies that if different threads want to use different credentials for the same database that it must be possible to create multiple instances of MongoDatabase for the same database. 15 years ago
rstam 181040594a Deleted MongoCommandResult. Implemented Limit in MongoCursor. Implemented DropCollection in MongoDatabase. Modified RunCommand to throw an exception when command fails. Implemented DropDatabase in MongoServer. 15 years ago
rstam e1712424e4 Implemented Count in MongoCollection and MongoCursor (cursor version uses skip and limit). 15 years ago
rstam 229e2e06f6 Fixed setting of numberToReturn field in query message (calcuated by looking at both batchSize and limit). Fixes the issue that a command will only return a value if numberToReturn == 1. 15 years ago
rstam f073fcab31 Tested .NET style connection strings. Implemented GetDatabaseNames and GetCollectionNames. 15 years ago
rstam 46c3fe1b5c Worked on the design of the C# API by creating lots of skeleton methods (look for NotImplementedException). Added some new auxiliary classes. 15 years ago
rstam 92b4e1457a Added support for .NET style connection strings as well (subclassed DbConnectionStringBuilder). 15 years ago
rstam 5c95da479c Added factory methods for MongoServer and MongoDatabase. Implemented Equals and GetHashCode for MongoCredentials and MongoServerAddress. 15 years ago
rstam 074bf2f4fe Added support for connection strings and for storing credentials (but authentication is not implemented yet). 15 years ago
rstam eae2883468 Renamed MongoClient to MongoServer because while is is *used* by the client it *represents* the server. 15 years ago
rstam b49339e6d5 Added unit tests for and debugged MongoConnectionStringBuilder. 15 years ago
rstam 5b160b9b42 Forgot to stage some files before previous commit. 15 years ago
rstam 05af608b6a First version of MongoConnectionStringBuilder. 15 years ago
rstam cccde388f3 Initial version of MongoCursor working. 15 years ago
rstam 05c6772755 Added MongoCollection<T> for collections where it is known that all documents are of the same type. 15 years ago
rstam 792168a4a3 Cleanup and consolidation. Avoid extra copy of reply buffer in memory. 15 years ago
rstam 55a44b0d9f Work in progress. Tested MongoCollection.Find(). 15 years ago
Eliot Horowitz 900414238c first commit 15 years ago