pg

package
v0.0.0-...-903a698 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DbConnect

func DbConnect() *sqlx.DB

Connecting to the db

func ExecFromDB

func ExecFromDB(request string) error

func GenerateUserId

func GenerateUserId(email, password string) (hashId string)

func GetInformationFromDB

func GetInformationFromDB(column, where, table string) (info string)

Getting information from db

func GetInformationFromDBI

func GetInformationFromDBI(column, where, table string) (info int)

func UrlIdGenerator

func UrlIdGenerator(url string, userId int) (link string)

Generating a url id and adding it to the db

Types

This section is empty.

Jump to

Keyboard shortcuts

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