Skip to content

Connect to multiple types of databases including MySQL, PostgreSQL, MongoDB, CosmosDB, and Couchbase with a single, easy-to-use interface.

License

Notifications You must be signed in to change notification settings

deepakb/database-hub

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

database-hub

Connect to multiple types of databases including MySQL, PostgreSQL, MongoDB, CosmosDB, and Couchbase with a single, easy-to-use interface.

Installation

To install database-hub, run the following command:

image

Usage

To use database-hub, import the desired database functions and pass the necessary options.

image

Options

MySQL

  • host: The hostname of the MySQL server. (required)
  • user: The username to connect to the MySQL server. (required)
  • password: The password for the user. (required)
  • database: The database to connect to. (required)

PostgreSQL

  • host: The hostname of the PostgreSQL server. (required)
  • user: The username to connect to the PostgreSQL server. (required)
  • password: The password for the user. (required)
  • database: The database to connect to. (required)

MongoDB

  • url: The URL of the MongoDB server. (required)

CosmosDB

  • endpoint: The endpoint URL of the CosmosDB account. (required)
  • auth: An object containing the authentication options. (required)
    • masterKey: The master key for the CosmosDB account. (required)

Couchbase

  • url: The URL of the Couchbase cluster. (required)

License

database-hub is licensed under the MIT License. See the LICENSE file for more information.

About

Connect to multiple types of databases including MySQL, PostgreSQL, MongoDB, CosmosDB, and Couchbase with a single, easy-to-use interface.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published