database

package
v0.0.0-...-8d8eef1 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	B types.Book
)

Functions

func CityRateQuery

func CityRateQuery(city string) (int, int, error)

func InsertBook

func InsertBook(title string, author string) error

func InsertTempDateCityNameQuery

func InsertTempDateCityNameQuery(tablename string, temp int, date time.Time, city string, name string) error

func InsertToMailTableWithoutConfirm

func InsertToMailTableWithoutConfirm(email string, hash string, username string, pwdhash string) error

func SelectAllBooks

func SelectAllBooks() (err error, b []types.Book)

func SelectAllConfirmedMail

func SelectAllConfirmedMail() []string

func SelectMail

func SelectMail(email string) []string

func SelectQuote

func SelectQuote() (string, error)

SelectQuote selecting a quote for the daily mail from the database randomly

func SelectStarExampleQuery

func SelectStarExampleQuery()

func SelectUsernameAndPwdhash

func SelectUsernameAndPwdhash(username string) (string, error)

func StartDatabaseUse

func StartDatabaseUse(dbname string) (*sql.DB, error)

func UpdateConfirmData

func UpdateConfirmData(emailhash string) error

Types

type Book

type Book struct {
	Title  string
	Author string
}

Jump to

Keyboard shortcuts

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