Documentation ¶
Index ¶
Constants ¶
View Source
const ( POSTGRES = "postgres" MYSQL = "mysql" MONGO = "mongo" )
Variables ¶
This section is empty.
Functions ¶
func ChooseDriver ¶
ChooseDriver The ChooseDriver function is used to retrieve a database driver's connection object based on the given driver name. It takes a string parameter driver, which represents the type of the database driver. The purpose of this function is to provide a convenient way to establish a connection to various types of databases without exposing the underlying implementation details. It encapsulates the logic required to select the appropriate connection method for a specific database driver and returns an instance of the corresponding driver's connection object.
Types ¶
type Mysql ¶
type Mysql struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.