Add Conn() support to all storage drivers. (#451)

* Add DB() support for Redis driver

* Added support for DB() to all drivers

* Fixed typo in README and Lint issue

* Fix lint issue with ristretto db

* Fix lint issue with bbolt db

* Rename DB() to Conn()

* Replace all instances of _DB with _Conn

* Update all the README files

* Return ArangoDB Client instead of DB
This commit is contained in:
Juan Calderon-Perez
2022-08-15 01:58:13 -04:00
committed by GitHub
parent c38c925975
commit 3a8b8d4f71
40 changed files with 138 additions and 8 deletions

View File

@@ -264,3 +264,8 @@ func returnAWSConfig(cfg Config) (aws.Config, error) {
}),
)
}
// Return database client
func (s *Storage) Conn() *awsdynamodb.Client {
return s.db
}