Categorygithub.com/facily-tech/go-core/database
modulepackage
0.3.0
Repository: https://github.com/facily-tech/go-core.git
Documentation: pkg.go.dev

# README

Database

Database is a lib to simplify the database connection.

Installation

go get github.com/facily-tech/go-core/database

# Functions

InitDB initializes a new database connection.
InitDBWithPrefix initializes a new database connection with a prefix.
InitMongoDB initializes a new mongo database connection.
InitMongoDBWithPrefix initializes a new mongo database connection with a prefix.

# Constants

DBPrefix is the prefix for all environment variables related to the database.
MySQL is the enum for mysql database.
MySQLDriverName is the name of the mysql driver.
Postgres is the enum for postgres database.
PostgresDriverName is the name of the postgres driver.