db

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDB

func GetDB() *pg.DB

GetDB will return the active database connection

func Init

func Init()

Init sets up DB connection

Types

type URL added in v0.1.0

type URL struct {
	Key   string `sql:",pk"`
	URL   string
	Alias []string
	Views int `sql:"default:0"`
}

URL ...

Jump to

Keyboard shortcuts

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