maria-driver

module
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2021 License: MIT

README

maria-driver

Install

$ go get github.com/innotechdevops/maria-driver

How to use

  • Wtih env
driver := mariadriver.New(mariadriver.ConfigEnv())
  • With config
driver := mariadriver.New(mariadriver.Config{
    User:         os.Getenv("MARIA_USER"),
    Pass:         os.Getenv("MARIA_PASS"),
    Host:         os.Getenv("MARIA_HOST"),
    DatabaseName: os.Getenv("MARIA_DATABASE"),
    Port:         mariadriver.DefaultPort,
    MaxLifetime:  os.Getenv("MARIA_MAX_LIFETIME"),
    MaxIdleConns: os.Getenv("MARIA_MAX_IDLE_CONNS"),
    MaxOpenConns: os.Getenv("MARIA_MAX_OPEN_CONNS"),
})

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

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