Mongodb plugin (#2698)

* WIP on mongodb plugin

* Add mongodb plugin

* Add tests

* Update mongodb.CreateUser() comment

* Update docs

* Add missing docs

* Fix mongodb docs

* Minor comment and test updates

* Fix imports

* Fix dockertest import

* Set c.Initialized at the end, check for empty CreationStmts first on CreateUser

* Remove Initialized check on Connection()

* Add back Initialized check

* Update docs

* Move connProducer and credsProducer into pkg for  mongodb and cassandra

* Chage parseMongoURL to be a private func

* Default to admin if no db is provided in creation_statements

* Update comments and docs
This commit is contained in:
Calvin Leung Huang
2017-05-11 17:38:54 -04:00
committed by GitHub
parent b203d51068
commit a4c652cbb3
20 changed files with 809 additions and 34 deletions

View File

@@ -29,10 +29,10 @@ type Cassandra struct {
// New returns a new Cassandra instance
func New() (interface{}, error) {
connProducer := &connutil.CassandraConnectionProducer{}
connProducer := &cassandraConnectionProducer{}
connProducer.Type = cassandraTypeName
credsProducer := &credsutil.CassandraCredentialsProducer{}
credsProducer := &cassandraCredentialsProducer{}
dbType := &Cassandra{
ConnectionProducer: connProducer,