db

package
v0.0.0-...-58cb621 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2021 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDB

func GetDB() *sql.DB

GetDB returns the *sql.DB

Types

type User

type User struct {
	ID       string
	McName   string
	Birthday string
}

User is the database entry of a user

func GetUser

func GetUser(id string) (user User, err error)

GetUser fetches the database entry of id

Jump to

Keyboard shortcuts

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