Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow access to MongoDatabase in MongoConnection #2444

Merged
merged 2 commits into from Jul 1, 2016
Merged

Allow access to MongoDatabase in MongoConnection #2444

merged 2 commits into from Jul 1, 2016

Conversation

@joschi
Copy link
Contributor

@joschi joschi commented Jul 1, 2016

This PR adds a method to MongoConnection which allows using the MongoDatabase interface to access MongoDB instead of the deprecated DB interface.

@joschi joschi added this to the 2.1.0 milestone Jul 1, 2016
@bernd bernd self-assigned this Jul 1, 2016
@@ -18,10 +18,12 @@

import com.mongodb.DB;
import com.mongodb.Mongo;
import com.mongodb.MongoClient;
import com.mongodb.client.MongoDatabase;

public interface MongoConnection {
Mongo connect();

DB getDatabase();

This comment has been minimized.

@bernd

bernd Jul 1, 2016
Member

I think we should mark this as @Deprecated so we can remove it for the next major release.

@bernd
Copy link
Member

@bernd bernd commented Jul 1, 2016

LGTM 👍

@bernd bernd merged commit 87a20b6 into master Jul 1, 2016
4 checks passed
4 checks passed
ci-server-integration Jenkins build graylog2-server-integration-pr 1052 has succeeded
Details
ci-web-linter Jenkins build graylog-pr-linter-check 538 has succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
continuous-integration/travis-ci/push The Travis CI build passed
Details
@bernd bernd deleted the mongo-connection branch Jul 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants