Versions in this module Expand all Collapse all v0 v0.2.0 Oct 16, 2019 Changes in this version + var ENV_VARS = []string + func ConnectDB(config DBConfig) (*sql.DB, error) + func CreateEmployee(db *sql.DB, employee Employee) (id uint, rows uint, err error) + func IrisHTTPServer(db *sql.DB) *iris.Application + type DBConfig struct + Database string + Host string + Password string + User string + func LoadDBConfig(filepath string) (DBConfig, error) + type Employee struct + Firstname string + ID uint + Lastname string + Password string + Role uint + func GetAllEmployees(db *sql.DB) (employees []Employee, err error)