package
Version:
v0.0.0-...-4ec5d07
Opens a new window with list of versions in this module.
Published: Nov 15, 2021
License: Unlicense
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
NewPostgresDB opens a new postgres connection
UserDAO access users in the DB
func NewUserDAO(db sqlxDB) *UserDAO
NewUserDAO new instance of UserDAO
FindAll returns all the users
type UserModel struct {
ID int64 `db:"id"`
Name string `db:"name"`
}
UserModel DB representation of the user
Source Files
¶
Click to show internal directories.
Click to hide internal directories.