db

package
v0.0.0-...-b1f7bc7 Latest Latest
Warning

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

Go to latest
Published: May 22, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const ENVFILE = ".env"

Variables

View Source
var (
	DB *sql.DB
)

Functions

func Connect

func Connect() (err error)

Connect to the PostgreSQL

Types

type User

type User struct {
	ID    int    `json:"id" sql:"id"`
	Name  string `json:"name" sql:"name"`
	Email string `json:"email" sql:"email"`
}

User in DB

Jump to

Keyboard shortcuts

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