-
-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: added mongodb driver support (#116)
Added mongodb driver support for connection to a mongodb database as an adapter handler Changes: - Added `mongodb-adapter` module for connecting to a MongoDB database. - Included 'mongodb' as a supported driver. - Updated driver switch-case to create a new MongoDB handler based on the provided `in.DriverName`. - Added a configuration example for MongoDB connection in the `config/` directory.
- Loading branch information
1 parent
a0bd30b
commit 3874663
Showing
4 changed files
with
61 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"driver": "mongodb", | ||
"connection": "mongodb://username:password@localhost:27017/mydatabase?ssl=true&replicaSet=myReplicaSet&authSource=admin", | ||
"enforcer": "examples/rbac_model.conf" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters