# README
database
É um wrapper do SQLx com o objetivo de entrar uma conexão com banco de dados (MySQL, Postgres ou SQLite) somente lhe indicando o arquivo env com os paramentros de conexão
** MAX_OPEN_CONNS ** Use este parametro no env para alterar o máximo de conexoes simultaneas possíveis
Exemplo
package main
import (
"github.com/eucatur/go-toolbox/database"
)
func main() {
db, err := database.GetByFile("sqlite3-config.json")
if err != nil {
panic(err)
}
var users map[string]string
err = db.Select(&users, `select * from users`)
if err != nil {
panic(err)
}
}
# Functions
No description provided by the author
No description provided by the author
GetByFile Create a database connection through the path of a file.
No description provided by the author
MustGetByFile Create a database connection through the path of a file and generates a panic in case of error.
NewNotifier - creates a new notifier for given PostgreSQL credentials.
No description provided by the author
No description provided by the author