db

package
v0.0.0-...-b4d8540 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnectDB

func ConnectDB() *gorm.DB

func CreateCodePaste

func CreateCodePaste(db *gorm.DB, name string, code string, lang string, onlyLink bool)

func GetAllPastes

func GetAllPastes(db *gorm.DB) *gorm.DB

func GetCodePaste

func GetCodePaste(db *gorm.DB, pasteId int) *gorm.DB

Types

type CodePaste

type CodePaste struct {
	gorm.Model
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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