Discover Packages
github.com/ocintnaf/fameforce
pkg
database
package
Version:
v0.0.0-...-a5f9b48
Opens a new window with list of versions in this module.
Published: Jun 14, 2023
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
CloseConnection closes the database connection.
GetDSN returns a data source name string
NewConnection establishes a new database connection with the given config.
type Config struct {
Host string `mapstructure:"host"`
Port uint `mapstructure:"port"`
Name string `mapstructure:"name"`
User string `mapstructure:"user"`
Password string `mapstructure:"password"`
}
Postgres connection config
Source Files
¶
Click to show internal directories.
Click to hide internal directories.