mongoc_database_t * mongoc_client_get_database (mongoc_client_t *client, const char *name) { BSON_ASSERT (client); BSON_ASSERT (name); return _mongoc_database_new(client, name, client->read_prefs, client->write_concern); }
mongoc_database_t * mongoc_client_get_database (mongoc_client_t *client, const char *name) { bson_return_val_if_fail(client, NULL); bson_return_val_if_fail(name, NULL); return _mongoc_database_new(client, name, client->read_prefs, client->write_concern); }
mongoc_database_t * mongoc_database_copy (mongoc_database_t *database) { ENTRY; BSON_ASSERT (database); RETURN(_mongoc_database_new(database->client, database->name, database->read_prefs, database->read_concern, database->write_concern)); }