Method | Description | |
---|---|---|
Authenticate ( MongoDatabase database, string username, string password ) : |
Handles logging into the specified database
|
|
Clone ( MongoDatabase database, string host ) : |
Clones the current database from the provided host to this server
|
|
CollectionCount ( MongoDatabase database, string collection ) : |
Returns the count of records from the specified collection
|
|
CollectionCount ( MongoDatabase database, string collection, |
Returns the count of records from the specified collection that meet the criteria for the query
|
|
CollectionCount ( MongoDatabase database, string collection, object query ) : |
Returns the count of records from the specified collection that meet the criteria for the query
|
|
CopyDatabase ( MongoDatabase database, string from, string to, string host, int port, string username, string password ) : |
Copies a database from one location to another
|
|
DeleteAllCollectionIndexes ( MongoDatabase database, string collection ) : |
Removes all indexes from the provided collection
|
|
DeleteCollectionIndex ( MongoDatabase database, string collection, string index ) : |
Removes the index for key in the provided collection
|
|
DropCollection ( MongoDatabase database, string collection ) : |
Removes a collection entirely from the database
|
|
DropDatabase ( MongoDatabase database ) : |
Deletes a database from the server
|
|
FSync ( MongoDatabase database, bool async ) : |
Performs the FSync command against the database
|
|
ForceError ( MongoDatabase database ) : |
Forces an error message on the server
|
|
GetAssertInfo ( MongoDatabase database ) : |
Returns assert info for the database ??
|
|
GetBuildInfo ( MongoDatabase database ) : |
Returns build info for the server
|
|
GetCollectionDistinct ( MongoDatabase database, string collection, string key ) : |
Gets the distinct values for the collection and key provided
|
|
GetCollectionStats ( MongoDatabase database, string collection ) : |
Returns details about the provided collection
|
|
GetLastError ( MongoDatabase database ) : GetLastErrorResult |
Gets the most recent error from the database
|
|
GetNonce ( MongoDatabase database ) : |
Loads the 'nonce' value for password hashing
|
|
GetOpLogging ( MongoDatabase database ) : |
Returns OpLogging information for the server
|
|
GetOpTime ( MongoDatabase database ) : |
Returns OpTime for the provided database
|
|
GetPreviousError ( MongoDatabase database ) : |
Returns information about previous errors on the server
|
|
GetServerStatus ( MongoDatabase database ) : |
Returns uptime, lock and memory info for the database
|
|
HashPassword ( string username, string password, string nonce ) : string |
Handles preparing a password to send to the database
|
|
KillCursors ( MongoDatabase database, IEnumerable |
Sends the request to kill existing cursors
|
|
KillCursors ( MongoDatabase database, IEnumerable |
Sends the request to kill existing cursors
|
|
ListDatabases ( MongoDatabase database ) : ListDatabasesResult |
Returns a list of all available databases
|
|
LogOut ( MongoDatabase database ) : void |
Performs a manual log our for a connection
|
|
RepairDatabase ( MongoDatabase database, bool preserveClonedOnFailure, bool backupOriginal ) : |
Attempts to repair the current database
|
|
ResetErrors ( MongoDatabase database ) : |
Causes the Mongo server to shutdown - No response is expected
|
|
RunCommand ( MongoDatabase database, BsonObject parameters ) : |
Executes a command against the database using the provided information
|
|
RunCommand ( MongoDatabase database, BsonObject parameters, bool expectResponse ) : |
Executes a command against the database using the provided information
|
|
RunCommand ( MongoDatabase database, object parameters ) : |
Executes a command against the database using the provided information
|
|
RunCommand ( MongoDatabase database, object parameters, bool expectResponse ) : |
Executes a command against the database using the provided information
|
|
SetProfileLevel ( MongoDatabase database, int level ) : |
Sets and returns the previous profiling level
|
|
SetQueryTraceLevel ( MongoDatabase database, int level ) : |
Sets the level for the Query Trace in the database
|
|
Shutdown ( MongoDatabase database ) : void |
Causes the Mongo server to shutdown - No response is expected
|
Method | Description | |
---|---|---|
_HashString ( string value ) : string |
public static Authenticate ( MongoDatabase database, string username, string password ) : |
||
database | MongoDatabase | |
username | string | |
password | string | |
return |
public static Clone ( MongoDatabase database, string host ) : |
||
database | MongoDatabase | |
host | string | |
return |
public static CollectionCount ( MongoDatabase database, string collection ) : |
||
database | MongoDatabase | |
collection | string | |
return |
public static CollectionCount ( MongoDatabase database, string collection, |
||
database | MongoDatabase | |
collection | string | |
query | ||
return |
public static CollectionCount ( MongoDatabase database, string collection, object query ) : |
||
database | MongoDatabase | |
collection | string | |
query | object | |
return |
public static CopyDatabase ( MongoDatabase database, string from, string to, string host, int port, string username, string password ) : |
||
database | MongoDatabase | |
from | string | |
to | string | |
host | string | |
port | int | |
username | string | |
password | string | |
return |
public static DeleteAllCollectionIndexes ( MongoDatabase database, string collection ) : |
||
database | MongoDatabase | |
collection | string | |
return |
public static DeleteCollectionIndex ( MongoDatabase database, string collection, string index ) : |
||
database | MongoDatabase | |
collection | string | |
index | string | |
return |
public static DropCollection ( MongoDatabase database, string collection ) : |
||
database | MongoDatabase | |
collection | string | |
return |
public static DropDatabase ( MongoDatabase database ) : |
||
database | MongoDatabase | |
return |
public static FSync ( MongoDatabase database, bool async ) : |
||
database | MongoDatabase | |
async | bool | |
return |
public static ForceError ( MongoDatabase database ) : |
||
database | MongoDatabase | |
return |
public static GetAssertInfo ( MongoDatabase database ) : |
||
database | MongoDatabase | |
return |
public static GetBuildInfo ( MongoDatabase database ) : |
||
database | MongoDatabase | |
return |
public static GetCollectionDistinct ( MongoDatabase database, string collection, string key ) : |
||
database | MongoDatabase | |
collection | string | |
key | string | |
return |
public static GetCollectionStats ( MongoDatabase database, string collection ) : |
||
database | MongoDatabase | |
collection | string | |
return |
public static GetLastError ( MongoDatabase database ) : GetLastErrorResult | ||
database | MongoDatabase | |
return | GetLastErrorResult |
public static GetNonce ( MongoDatabase database ) : |
||
database | MongoDatabase | |
return |
public static GetOpLogging ( MongoDatabase database ) : |
||
database | MongoDatabase | |
return |
public static GetOpTime ( MongoDatabase database ) : |
||
database | MongoDatabase | |
return |
public static GetPreviousError ( MongoDatabase database ) : |
||
database | MongoDatabase | |
return |
public static GetServerStatus ( MongoDatabase database ) : |
||
database | MongoDatabase | |
return |
public static HashPassword ( string username, string password, string nonce ) : string | ||
username | string | |
password | string | |
nonce | string | |
return | string |
public static KillCursors ( MongoDatabase database, IEnumerable |
||
database | MongoDatabase | |
cursors | IEnumerable |
|
return | void |
public static KillCursors ( MongoDatabase database, IEnumerable |
||
database | MongoDatabase | |
cursors | IEnumerable |
|
return | void |
public static ListDatabases ( MongoDatabase database ) : ListDatabasesResult | ||
database | MongoDatabase | |
return | ListDatabasesResult |
public static LogOut ( MongoDatabase database ) : void | ||
database | MongoDatabase | |
return | void |
public static RepairDatabase ( MongoDatabase database, bool preserveClonedOnFailure, bool backupOriginal ) : |
||
database | MongoDatabase | |
preserveClonedOnFailure | bool | |
backupOriginal | bool | |
return |
public static ResetErrors ( MongoDatabase database ) : |
||
database | MongoDatabase | |
return |
public static RunCommand ( MongoDatabase database, BsonObject parameters ) : |
||
database | MongoDatabase | |
parameters | BsonObject | |
return |
public static RunCommand ( MongoDatabase database, BsonObject parameters, bool expectResponse ) : |
||
database | MongoDatabase | |
parameters | BsonObject | |
expectResponse | bool | |
return |
public static RunCommand ( MongoDatabase database, object parameters ) : |
||
database | MongoDatabase | |
parameters | object | |
return |
public static RunCommand ( MongoDatabase database, object parameters, bool expectResponse ) : |
||
database | MongoDatabase | |
parameters | object | |
expectResponse | bool | |
return |
public static SetProfileLevel ( MongoDatabase database, int level ) : |
||
database | MongoDatabase | |
level | int | |
return |
public static SetQueryTraceLevel ( MongoDatabase database, int level ) : |
||
database | MongoDatabase | |
level | int | |
return |
public static Shutdown ( MongoDatabase database ) : void | ||
database | MongoDatabase | |
return | void |