vibe.d beta banner
get vibe.d
0.10.0

Asynchronous I/O that doesn’t get in your way, written in D

Function MongoDatabase.getLastError

Retrieves the last error code (if any) from the database server.

immutable(vibe.db.mongo.connection._MongoErrorDescription) getLastError() @safe;

Exact object format is not documented. MongoErrorDescription signature will be updated upon any issues. Note that this method will execute a query to service collection and thus is far from being "free".

Returns

struct storing data from MongoDB db.getLastErrorObj() object

Authors

Sönke Ludwig

Copyright

© 2012-2014 Sönke Ludwig

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.