connector

package
v0.0.0-...-fb1ba27 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 7, 2022 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Index

Examples

Constants

View Source
const Atio string = "Atio"
View Source
const Duration string = "Duration"
View Source
const Location string = "Location"

Variables

This section is empty.

Functions

func BuildConfig

func BuildConfig() *mysql.Config

BuildConfig is used to build the Config struct which can be used to connect database. It pulls all the mandatoryFiels and optionalFields from environment variables.

Example
testConfig := BuildConfig()
fmt.Printf("User: %v", testConfig.User)
Output:

User: Vishnu

func GetDb

func GetDb() (*sql.DB, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL